-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
35 lines (35 loc) · 1.12 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
35
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"jest": true
},
"extends": [
"eslint:recommended", // General syntax/logical errors, and some best practices
"plugin:@typescript-eslint/recommended", // Specifically for TypeScript
"plugin:react/recommended", // Specifically for React
"plugin:react-hooks/recommended", // Specifically for React Hooks
"plugin:jsx-a11y/recommended", // Checks for possible a11y issues with JSX
"plugin:jest-dom/recommended", // Common mistakes and best practices for tests using jest-dom
"plugin:testing-library/react", // Testing Library common mistakes and best practices
// NOTE: plugin:prettier/recommended must be listed last!
"plugin:prettier/recommended" // Prettier config, disables all rules conflicting with prettier
],
"rules": {
"react/prop-types": 0,
"semi": 2,
"react/jsx-curly-brace-presence": [1, "never"]
},
"settings": {
"react": {
"version": "detect"
}
}
}