-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
101 lines (101 loc) · 3.24 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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"extends": ["airbnb-typescript", "prettier", "plugin:@typescript-eslint/recommended"],
"plugins": ["react", "prettier", "react-hooks", "@typescript-eslint"],
"env": {
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"project": "tsconfig.json",
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"import/no-unresolved": [
2,
{
"ignore": ["@textkernel/oneui"]
}
],
"import/prefer-default-export": 0,
"import/no-default-export": 2,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 2,
"prettier/prettier": ["error"],
"react/jsx-filename-extension": 0,
"experimentalDecorators": 0,
"react/jsx-indent": [2, 4],
"react/button-has-type": 0,
"react/prop-types": 0,
"react/no-unused-prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"curly": ["error", "all"],
"comma-dangle": ["error", "only-multiline"],
"@typescript-eslint/comma-dangle": ["error", "only-multiline"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"react/require-default-props": "off"
},
"overrides": [
{
"files": ["scripts/**/*"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["**/__tests__/**/*", "**/__mocks__/**/*"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/class-name-casing": "off"
}
},
{
"files": ["stories/**/*"],
"rules": {
"import/extensions": ["off", "ignorePackages"],
"react/display-name": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/jsx-setDefaultAreaHighlight-newline": "off",
"react-hooks/rules-of-hooks": "off",
"import/no-default-export": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"globals": {
"describe": false,
"it": false,
"expect": false,
"shallow": false,
"mount": false,
"render": false,
"window": true,
"document": true
}
}