forked from typescript-exercises/typescript-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
106 lines (104 loc) · 2.79 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
98
99
100
101
102
103
104
105
106
{
"extends": [
"eslint-config-react-app",
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"plugins": ["react-app", "react", "@typescript-eslint", "prettier", "import"],
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react/no-unescaped-entities": "off",
"react/jsx-curly-brace-presence": [
"error",
{
"props": "never",
"children": "never"
}
],
"react/jsx-boolean-value": "error",
"react/jsx-key": "off",
"react-hooks/rules-of-hooks": "off",
"prettier/prettier": ["error", {"singleQuote": true}],
"no-irregular-whitespace": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "util",
"message": "This is NodeJS library, don't use it"
},
{
"name": "path",
"message": "This is NodeJS library, don't use it"
}
],
"patterns": ["fp-ts/es6/*"]
}
],
"no-duplicate-imports": ["error", {"includeExports": true}],
"arrow-body-style": ["warn", "as-needed"],
"id-blacklist": ["error", "_", "x"],
"no-restricted-globals": ["error", "name", "toString", "pending"],
"prefer-template": "error",
"import/no-relative-parent-imports": "error",
"import/order": ["error", {
"groups": ["builtin", "external", "internal", "sibling"],
"pathGroups": [
{
"pattern": "{components,containers,exercises,lib,observables,operators}/**",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"]
}
}
},
"parser": "@typescript-eslint/parser"
}