|
|
@ -14,36 +14,33 @@ |
|
|
|
"extends": [ "eslint:all" ], |
|
|
|
"extends": [ "eslint:all" ], |
|
|
|
"rules": { |
|
|
|
"rules": { |
|
|
|
"array-bracket-newline": ["error", { "multiline": true }], |
|
|
|
"array-bracket-newline": ["error", { "multiline": true }], |
|
|
|
"arrow-body-style": "off", |
|
|
|
|
|
|
|
"array-element-newline": "off", |
|
|
|
"array-element-newline": "off", |
|
|
|
|
|
|
|
"arrow-body-style": "off", |
|
|
|
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], |
|
|
|
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }], |
|
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
|
|
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
|
|
|
|
|
|
|
"capitalized-comments": "off", |
|
|
|
"comma-dangle": "off", |
|
|
|
"comma-dangle": "off", |
|
|
|
"consistent-return": "off", |
|
|
|
"consistent-return": "off", |
|
|
|
"default-case": "off", |
|
|
|
"default-case": "off", |
|
|
|
|
|
|
|
"function-paren-newline": "off", |
|
|
|
"id-length": "off", |
|
|
|
"id-length": "off", |
|
|
|
"indent": ["error", 2], |
|
|
|
"indent": ["error", 2], |
|
|
|
"function-paren-newline": "off", |
|
|
|
|
|
|
|
"max-statements": ["error", 15], |
|
|
|
"max-statements": ["error", 15], |
|
|
|
"multiline-ternary": "off", |
|
|
|
"multiline-ternary": "off", |
|
|
|
"newline-after-var": "off", |
|
|
|
"newline-after-var": "off", |
|
|
|
"newline-before-return": "off", |
|
|
|
"newline-before-return": "off", |
|
|
|
"no-magic-numbers": "off", |
|
|
|
|
|
|
|
"no-bitwise": "off", |
|
|
|
"no-bitwise": "off", |
|
|
|
"no-use-before-define": "off", |
|
|
|
|
|
|
|
"no-warning-comments": "off", |
|
|
|
|
|
|
|
"no-console": ["error", { "allow": ["warn", "error"] }], |
|
|
|
"no-console": ["error", { "allow": ["warn", "error"] }], |
|
|
|
"no-empty-function": "off", |
|
|
|
"no-empty-function": "off", |
|
|
|
|
|
|
|
"no-magic-numbers": "off", |
|
|
|
"no-mixed-operators": "off", |
|
|
|
"no-mixed-operators": "off", |
|
|
|
"no-plusplus": "off", |
|
|
|
"no-plusplus": "off", |
|
|
|
"capitalized-comments": "off", |
|
|
|
|
|
|
|
"no-ternary": "off", |
|
|
|
"no-ternary": "off", |
|
|
|
"no-undefined": "off", |
|
|
|
"no-undefined": "off", |
|
|
|
"object-curly-spacing": [ |
|
|
|
"no-use-before-define": "off", |
|
|
|
"error", |
|
|
|
"no-warning-comments": "off", |
|
|
|
"always", { "arraysInObjects": false, "objectsInObjects": false } |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"object-curly-newline": ["error", { "consistent": true }], |
|
|
|
"object-curly-newline": ["error", { "consistent": true }], |
|
|
|
|
|
|
|
"object-curly-spacing": ["error", "always", { "arraysInObjects": false, "objectsInObjects": false }], |
|
|
|
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], |
|
|
|
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }], |
|
|
|
"object-shorthand": "off", |
|
|
|
"object-shorthand": "off", |
|
|
|
"one-var": "off", |
|
|
|
"one-var": "off", |
|
|
@ -51,8 +48,8 @@ |
|
|
|
"prefer-const": "off", |
|
|
|
"prefer-const": "off", |
|
|
|
"prefer-destructuring": ["error", { "AssignmentExpression": {"array": false}}], |
|
|
|
"prefer-destructuring": ["error", { "AssignmentExpression": {"array": false}}], |
|
|
|
"prefer-template": "off", |
|
|
|
"prefer-template": "off", |
|
|
|
"quotes": ["error", "single", { "allowTemplateLiterals": true }], |
|
|
|
|
|
|
|
"quote-props": "off", |
|
|
|
"quote-props": "off", |
|
|
|
|
|
|
|
"quotes": ["error", "single", { "allowTemplateLiterals": true }], |
|
|
|
"require-jsdoc": "off", |
|
|
|
"require-jsdoc": "off", |
|
|
|
"sort-imports": "off", |
|
|
|
"sort-imports": "off", |
|
|
|
"sort-keys": "off", |
|
|
|
"sort-keys": "off", |
|
|
|