-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.56 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
{
"env": {
"es6": true
},
"extends": [
"plugin:react/recommended",
"prettier",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": ["react", "@typescript-eslint", "functional", "import"],
"rules": {
"functional/no-let": [
"error",
{ "allowLocalMutation": true, "ignorePattern": "^mutable" }
],
"functional/no-loop-statement": "error",
"functional/no-this-expression": "error",
"functional/prefer-readonly-type": "error",
"import/dynamic-import-chunkname": "error",
"import/no-anonymous-default-export": "error",
"import/no-cycle": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize": { "order": "asc" },
"groups": ["builtin", "external", "parent", "sibling", "index", "type"]
}
],
"no-const-assign": "error",
"no-param-reassign": "error",
"no-unused-vars": "off",
"no-var": "error",
"prefer-const": "error",
"require-await": "error"
},
"settings": {
"react": {
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "tsconfig.json"
}
}
}
}