generated from TheHaymaker/a11y-ts-eslint-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
29 lines (29 loc) · 871 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "jsx-a11y"],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"indent": "off",
"semi": [2, "never"],
"arrow-body-style": ["error", "as-needed"],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/consistent-type-assertions": 0,
"react/prop-types": [0],
"react/jsx-closing-bracket-location": "error",
"react/jsx-max-props-per-line": ["error", { "maximum": 1, "when": "always" }],
"react/jsx-curly-newline": ["error", { "multiline": "consistent", "singleline": "consistent" }]
}
}