Files
Rocketplan/config/.eslintrc.json
T

51 lines
1.4 KiB
JSON
Raw Normal View History

2022-11-26 01:23:44 -05:00
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "import"],
"rules": {
"no-shadow": "off",
"no-useless-constructor": "off",
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1],
"no-unused-vars": 2, //Keep this as the files in this folder don't use TypeScript.
"@typescript-eslint/no-unused-vars": "error",
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"max-len": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-associated-control": "off",
"indent": "off",
"no-case-declarations": "off",
"no-restricted-globals": "off",
"implicit-arrow-linebreak": "off",
"import/no-webpack-loader-syntax": "off",
"linebreak-style": "off",
"import/no-unresolved": "off"
}
}