-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
38 lines (38 loc) · 1.05 KB
/
.eslintrc
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
36
37
38
{
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": [
"off"
],
// set as described in TO-DO in Airbnb's rule - as we are using `public class fields` anyway
// @see https://github.com/airbnb/javascript/blob/3fb312f18198364bacc07e61ca58ff89f9f0afa2/packages/eslint-config-airbnb/rules/react.js#L482-L490
"react/state-in-constructor": [
"error",
"never"
],
"react/static-property-placement": [
"error",
"static public field"
],
"react/jsx-props-no-spreading": [
"error",
{
"html": "enforce",
"custom": "ignore",
"exceptions": []
}
],
"no-void": ["error", { "allowAsStatement": true }]
}
}