chore(lint): Disable various rules that are not desired

This commit is contained in:
Ed Lee 2018-01-19 11:56:41 -08:00
Родитель 53bf35dac0
Коммит 2b4a63047b
1 изменённых файлов: 16 добавлений и 4 удалений

Просмотреть файл

@ -53,11 +53,14 @@ module.exports = {
"array-bracket-newline": [2, "consistent"],
"array-bracket-spacing": [2, "never"],
"array-callback-return": 2,
"array-element-newline": 0,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "as-needed"],
"block-scoped-var": 2,
"callback-return": 0,
"camelcase": 0,
"capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": [2, "never"],
"consistent-this": [2, "use-bind"],
"curly": [2, "all"],
@ -68,6 +71,7 @@ module.exports = {
"func-name-matching": 2,
"func-names": 0,
"func-style": 0,
"function-paren-newline": 0,
"getter-return": 2,
"global-require": 0,
"guard-for-in": 2,
@ -75,10 +79,13 @@ module.exports = {
"id-blacklist": 0,
"id-length": 0,
"id-match": 0,
"implicit-arrow-linebreak": 0,
// XXX Switch back to indent once mozilla-central has decided what it is using.
"indent": 0,
"indent-legacy": ["error", 2, {"SwitchCase": 1}],
"init-declarations": 0,
"jsx-quotes": [2, "prefer-double"],
"line-comment-position": 0,
"lines-around-comment": ["error", {
"allowClassStart": true,
"allowObjectStart": true,
@ -92,6 +99,7 @@ module.exports = {
"max-params": [2, 6],
"max-statements": [2, 50],
"max-statements-per-line": [2, {"max": 2}],
"multiline-comment-style": 0,
"multiline-ternary": 0,
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"new-parens": 2,
@ -99,6 +107,7 @@ module.exports = {
"newline-before-return": 0,
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 3}],
"no-alert": 2,
"no-await-in-loop": 0,
"no-bitwise": 0,
"no-buffer-constructor": 2,
"no-catch-shadow": 2,
@ -138,10 +147,11 @@ module.exports = {
"no-process-exit": 2,
"no-proto": 2,
"no-prototype-builtins": 2,
"no-restricted-globals": 2,
"no-restricted-imports": 2,
"no-restricted-modules": 2,
"no-restricted-syntax": 2,
"no-restricted-globals": 0,
"no-restricted-imports": 0,
"no-restricted-modules": 0,
"no-restricted-properties": 0,
"no-restricted-syntax": 0,
"no-return-assign": [2, "except-parens"],
"no-script-url": 2,
"no-sequences": 2,
@ -172,6 +182,7 @@ module.exports = {
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
"padding-line-between-statements": 0,
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"prefer-const": 0, // TODO: Change to `1`?
"prefer-destructuring": [2, {"AssignmentExpression": {"array": true}, "VariableDeclarator": {"array": true, "object": true}}],
@ -188,6 +199,7 @@ module.exports = {
"semi-spacing": [2, {"before": false, "after": true}],
"semi-style": 2,
"sort-imports": [2, {"ignoreCase": true}],
"sort-keys": 0,
"sort-vars": 2,
"space-in-parens": [2, "never"],
"strict": 0,