-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
73 lines (73 loc) · 2.35 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
{
"plugins": ["functional", "react-hooks", "import", "@typescript-eslint"],
"extends": [
"prettier/@typescript-eslint",
"plugin:functional/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"allowImportExportEverywhere": true,
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"globals": {
"navigator": false
},
"rules": {
"camelcase": [0, { "properties": "never", "ignoreDestructuring": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"functional/prefer-readonly-type": 0,
"functional/prefer-type-literal": 0,
"functional/no-return-void": 0,
"functional/functional-parameters": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"functional/no-expression-statement": 0,
"@typescript-eslint/no-unused-vars": 2,
"react/no-unescaped-entities": 0,
"react/display-name": 0,
"import/no-default-export": 2,
"import/no-deprecated": 0,
"import/order": [
"error",
{
"groups": [["external", "builtin"], "internal", ["parent", "sibling", "index"]],
"newlines-between": "always-and-inside-groups"
}
],
"functional/immutable-data": [
2,
{
"ignoreImmediateMutation": true
}
],
"functional/no-conditional-statement": [
2,
{
"allowReturningBranches": "ifExhaustive"
}
],
"functional/no-mixed-type": 0,
"@typescript-eslint/camelcase": 0,
"no-console": "error",
"prefer-arrow-callback": "error",
"no-nested-ternary": "error",
"arrow-body-style": ["error", "as-needed"],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": "error"
},
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"react": {
"pragma": "React",
"version": "detect"
}
}
}