|
|
@ -5,13 +5,14 @@ |
|
|
|
"browser" : true, |
|
|
|
"browser" : true, |
|
|
|
"webextensions": true |
|
|
|
"webextensions": true |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
"plugins": ["react"], |
|
|
|
"parser": "babel-eslint", |
|
|
|
"parser": "babel-eslint", |
|
|
|
"parserOptions": { |
|
|
|
"parserOptions": { |
|
|
|
"ecmaFeatures": { |
|
|
|
"ecmaFeatures": { |
|
|
|
"jsx": true |
|
|
|
"jsx": true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
"extends": [ "eslint:all" ], |
|
|
|
"extends": [ "eslint:all", "plugin:react/recommended" ], |
|
|
|
"rules": { |
|
|
|
"rules": { |
|
|
|
"array-bracket-newline": ["error", { "multiline": true }], |
|
|
|
"array-bracket-newline": ["error", { "multiline": true }], |
|
|
|
"array-element-newline": "off", |
|
|
|
"array-element-newline": "off", |
|
|
@ -27,6 +28,7 @@ |
|
|
|
"function-paren-newline": "off", |
|
|
|
"function-paren-newline": "off", |
|
|
|
"id-length": "off", |
|
|
|
"id-length": "off", |
|
|
|
"indent": ["error", 2], |
|
|
|
"indent": ["error", 2], |
|
|
|
|
|
|
|
"jsx-quotes": ["error", "prefer-single"], |
|
|
|
"max-statements": ["error", 15], |
|
|
|
"max-statements": ["error", 15], |
|
|
|
"multiline-ternary": "off", |
|
|
|
"multiline-ternary": "off", |
|
|
|
"newline-after-var": "off", |
|
|
|
"newline-after-var": "off", |
|
|
@ -56,6 +58,9 @@ |
|
|
|
"sort-imports": "off", |
|
|
|
"sort-imports": "off", |
|
|
|
"sort-keys": "off", |
|
|
|
"sort-keys": "off", |
|
|
|
"sort-vars": "off", |
|
|
|
"sort-vars": "off", |
|
|
|
"space-before-function-paren": ["error", "never"] |
|
|
|
"space-before-function-paren": ["error", "never"], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"react/jsx-indent": ["error", 2], |
|
|
|
|
|
|
|
"react/prop-types": "off", |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|