-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
96 lines (95 loc) · 3.41 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"ignorePatterns": "next.config.js",
"plugins": ["functional", "@typescript-eslint"],
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:eslint-comments/recommended"
],
"rules": {
"no-const-assign": "error",
"no-param-reassign": "error",
"prefer-const": "error",
"no-var": "error",
"import/no-anonymous-default-export": "error",
"import/dynamic-import-chunkname": "error",
"import/order": ["error", { "newlines-between": "always", "alphabetize": { "order": "asc" } }],
"import/no-duplicates": "error",
"import/no-cycle": "error",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.ts",
"**/*.spec.ts",
"**/cypress/**/*.*",
"**/jest-setup.ts",
"**/jest-utils.ts",
"**/jest-setup.tsx",
"**/jest-utils.tsx",
"**/next-env.d.ts",
"**/global.d.ts"
]
}
],
"functional/no-let": [
"error",
{
"allowLocalMutation": true,
"ignorePattern": "^mutable"
}
],
"functional/prefer-readonly-type": "error",
"functional/no-this-expression": "error",
"functional/no-loop-statement": "error",
"require-await": "error",
"@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "never" }],
"@typescript-eslint/restrict-template-expressions": ["error", { "allowNullish": true }],
"eslint-comments/require-description": ["error", { "ignore": ["eslint-enable"] }],
"import/no-default-export": "error",
"import/no-unresolved": "off",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-unused-vars": "off"
},
"overrides": [
{
"files": ["**/*.test.*", "**/*.spec.*"],
"env": { "jest": true },
"rules": {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}