You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.4 KiB
74 lines
2.4 KiB
{
|
|
"extends": "eslint:recommended",
|
|
|
|
"rules": {
|
|
"curly": ["error", "all"],
|
|
"dot-location": ["error", "property"],
|
|
"no-alert": ["error"],
|
|
"no-caller": ["error"],
|
|
"no-eval": ["error"],
|
|
"no-extend-native": ["error"],
|
|
"no-extra-bind": ["error"],
|
|
"no-extra-label": ["error"],
|
|
"no-floating-decimal": ["error"],
|
|
"no-implicit-coercion": ["error", {"allow": ["!!"]}],
|
|
"no-implied-eval": ["error"],
|
|
"no-invalid-this": ["error"],
|
|
"no-labels": ["error"],
|
|
"no-lone-blocks": ["error"],
|
|
"no-native-reassign": ["error"],
|
|
"no-new": ["error"],
|
|
"no-new-func": ["error"],
|
|
"no-new-wrappers": ["error"],
|
|
"no-return-assign": ["error"],
|
|
"no-self-compare": ["error"],
|
|
"no-sequences": ["error"],
|
|
"no-throw-literal": ["error"],
|
|
"no-unused-expressions": ["error"],
|
|
"no-useless-call": ["error"],
|
|
"no-with": ["error"],
|
|
"no-unused-vars": ["error", {"args": "none"}],
|
|
"object-curly-spacing": ["error", "never"],
|
|
"radix": ["error", "always"],
|
|
|
|
"array-bracket-spacing": ["error", "never"],
|
|
"brace-style": ["error", "1tbs"],
|
|
"camelcase": ["error"],
|
|
"comma-spacing": ["error", {"before": false, "after": true}],
|
|
"comma-style": ["error", "last"],
|
|
"computed-property-spacing": ["error", "never"],
|
|
"eol-last": ["error"],
|
|
"indent": ["error", 4],
|
|
"key-spacing": [
|
|
"error",
|
|
{"beforeColon": false, "afterColon": true, "mode": "strict"}
|
|
],
|
|
"keyword-spacing": ["error", {"before": true, "after": true}],
|
|
"new-parens": ["error"],
|
|
"no-array-constructor": ["error"],
|
|
"no-continue": ["error"],
|
|
"no-lonely-if": ["error"],
|
|
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1}],
|
|
"no-new-object": ["error"],
|
|
"no-spaced-func": ["error"],
|
|
"no-trailing-spaces": ["error", {"skipBlankLines": true}],
|
|
"no-whitespace-before-property": ["error"],
|
|
"one-var": ["error", "never"],
|
|
"semi": ["error", "always"],
|
|
"semi-spacing": ["error", {"before": false}],
|
|
"space-before-function-paren": ["error", "never"],
|
|
"space-in-parens": ["error", "never"],
|
|
"space-infix-ops": ["error"],
|
|
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
|
|
"spaced-comment": ["error", "always"]
|
|
},
|
|
|
|
"globals": {
|
|
"Buffer": false,
|
|
"console": true,
|
|
"exports": true,
|
|
"module": true,
|
|
"require": false,
|
|
"Uint8Array": false
|
|
}
|
|
}
|
|
|