/
.eslintrc
97 lines (95 loc) · 2.21 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
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
{
"root": true,
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"plugins": [
// "@typescript-eslint/eslint-plugin",
// "react",
"prettier",
"jsx-a11y",
"import",
"fp"
],
"rules": {
"react/jsx-no-bind": "off",
"no-irregular-whitespace": "warn",
"no-trailing-spaces": "warn",
"arrow-parens": ["error", "always"],
"prefer-spread": "error",
"prefer-template": "error",
"no-console": "warn",
"prettier/prettier": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"jsx-a11y/anchor-is-valid": "warn",
"valid-typeof": "off",
"@typescript-eslint/interface-name-prefix": [2, "always"],
"import/no-cycle": [0, "never"],
"import/no-unresolved": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-empty-function": "warn",
// Functional programming errors
"fp/no-arguments": "error",
"fp/no-class": "off",
"fp/no-delete": "error",
"fp/no-events": "error",
"fp/no-get-set": "error",
"fp/no-let": "error",
"fp/no-loops": "error",
"fp/no-mutating-assign": "error",
"fp/no-mutating-methods": "error",
"fp/no-mutation": "off",
"fp/no-nil": "off",
"fp/no-proxy": "error",
"fp/no-rest-parameters": "error",
"fp/no-this": "off",
"fp/no-throw": "error",
"fp/no-unused-expression": "off",
"import/prefer-default-export": "off",
"fp/no-valueof-field": "error"
// "no-var": "error"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
},
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["*.d.ts", "*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/no-unused-vars": [
2,
{
"args": "none"
}
],
"no-unused-vars": "off",
"@typescript-eslint/interface-name-prefix": [0, "never"]
}
}
]
}