-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
34 lines (34 loc) · 1.2 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"import/extensions": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/*.test.tsx", "test/**"] }],
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"indent": ["error", 4],
"react/jsx-indent": ["error", 4],
"max-len": ["error", 180],
"object-curly-newline": ["error", { "ObjectPattern": { "multiline": true }, "ExportDeclaration": { "multiline": true } }],
"prefer-promise-reject-errors": "off",
"react/function-component-definition": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }]
}
}