-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.19 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
39
40
41
42
43
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.eslint.json"
},
"rules": {
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-use-before-define": ["error"],
"import/extensions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"no-use-before-define": "off",
"react/prop-types": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }]
},
"plugins": ["@typescript-eslint", "import", "react"],
"extends": [
"airbnb",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended"
],
"ignorePatterns": ["src/stories", "**/*.test.js"],
"settings": {
"import/resolver": {
"webpack": {
"moduleDirectory": ["src", "types"],
"extensions": [".ts"]
}
},
"react": {
"version": "16.9.0"
}
}
}