-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
64 lines (64 loc) · 1.92 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"extends": ["airbnb", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "drill4j"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
},
"env": {
"browser": true
},
"root": true,
"ignorePatterns": ["src/utils/*spec.ts", "dist"],
"rules": {
"drill4j/license-header": ["error"],
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"import/prefer-default-export": 0,
"import/extensions": 0,
"no-use-before-define": 0,
"no-unused-expressions": 0,
"import/no-extraneous-dependencies": [
0,
{ "devDependencies": ["**/spec.tsx", "**/spec.ts"] }
],
"@typescript-eslint/indent": [2, 2],
"eofline": 0,
"arrow-parens": 0,
"ordered-imports": 0,
"object-literal-sort-keys": 0,
"no-empty": 2,
"no-unused-expression": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"max-len": ["error", { "code": 140 }],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-empty-function": 0,
"react/jsx-props-no-spreading": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"operator-linebreak": 0,
"implicit-arrow-linebreak": 0,
"jsx-a11y/label-has-associated-control": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-uses-react": 0,
"react/react-in-jsx-scope": 0,
"react/no-unused-prop-types": 0,
"react/require-default-props": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"quotes": [2, "double", { "avoidEscape": true }],
"react/prop-types": 0,
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
},
"globals": {
"JSX": true
}
}