|
|
@ -5,12 +5,17 @@ |
|
|
|
"browser" : true, |
|
|
|
"browser" : true, |
|
|
|
"webextensions": true |
|
|
|
"webextensions": true |
|
|
|
}, |
|
|
|
}, |
|
|
|
"plugins": ["react"], |
|
|
|
"plugins": [ |
|
|
|
"parser": "babel-eslint", |
|
|
|
"react", |
|
|
|
|
|
|
|
"@typescript-eslint" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"parser": "@typescript-eslint/parser", |
|
|
|
"parserOptions": { |
|
|
|
"parserOptions": { |
|
|
|
"ecmaFeatures": { |
|
|
|
"ecmaFeatures": { |
|
|
|
"jsx": true |
|
|
|
"jsx": true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
"sourceType": "module", |
|
|
|
|
|
|
|
"project": "./tsconfig.json" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"extends": [ "eslint:all", "plugin:react/recommended" ], |
|
|
|
"extends": [ "eslint:all", "plugin:react/recommended" ], |
|
|
|
"rules": { |
|
|
|
"rules": { |
|
|
@ -48,7 +53,7 @@ |
|
|
|
"no-ternary": "off", |
|
|
|
"no-ternary": "off", |
|
|
|
"no-undefined": "off", |
|
|
|
"no-undefined": "off", |
|
|
|
"no-undef-init": "off", |
|
|
|
"no-undef-init": "off", |
|
|
|
"no-unused-vars": ["error", { "varsIgnorePattern": "h" }], |
|
|
|
"no-unused-vars": "off", |
|
|
|
"no-use-before-define": "off", |
|
|
|
"no-use-before-define": "off", |
|
|
|
"no-warning-comments": "off", |
|
|
|
"no-warning-comments": "off", |
|
|
|
"object-curly-newline": ["error", { "consistent": true }], |
|
|
|
"object-curly-newline": ["error", { "consistent": true }], |
|
|
@ -71,6 +76,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
"react/jsx-indent": ["error", 2], |
|
|
|
"react/jsx-indent": ["error", 2], |
|
|
|
"react/prop-types": "off", |
|
|
|
"react/prop-types": "off", |
|
|
|
"react/react-in-jsx-scope": "off" |
|
|
|
"react/react-in-jsx-scope": "off", |
|
|
|
|
|
|
|
"@typescript-eslint/no-unused-vars": "error" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|