-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
54 lines (54 loc) · 1.53 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
{
"extends": ["kyt/base", "prettier"],
"parser": "espree",
"rules": {
"prettier/prettier": "off"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["kyt/react", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"prettier/prettier": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"react/no-unknown-property": [
2,
{
"ignore": ["jsx", "global"]
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/prop-types": "off",
"no-unused-vars": "off",
"import/extensions": [
"error",
{ "ts": "never", "tsx": "never", "json": "always" }
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true }
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error"
}
}
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}