40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"jest": true,
|
|
"node": true,
|
|
"webextensions": true,
|
|
"es2020": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 11,
|
|
"sourceType": "module"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"createClass": "createReactClass", // Regex for Component Factory to use,
|
|
// default to "createReactClass"
|
|
"pragma": "React", // Pragma to use, default to "React"
|
|
"version": "detect" // React version. "detect" automatically picks the version you have installed.
|
|
}
|
|
},
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
"rules": {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"react/jsx-uses-react": "off",
|
|
"react/prop-types": ["off"],
|
|
"react/react-in-jsx-scope": "off",
|
|
"no-console": "warn"
|
|
}
|
|
}
|