-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
100 lines (99 loc) · 3.8 KB
/
Copy patheslint.config.js
File metadata and controls
100 lines (99 loc) · 3.8 KB
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
import xo from "eslint-config-xo";
import typescriptEslintParser from "@typescript-eslint/parser";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
...xo(),
{
languageOptions: {
parser: typescriptEslintParser,
},
rules: {
"@stylistic/function-paren-newline": ["off"],
"@stylistic/indent": ["error", 4],
"@stylistic/indent-binary-ops": ["error", 4],
"@stylistic/max-len": ["off"],
"@stylistic/multiline-ternary": ["off"],
"@stylistic/operator-linebreak": ["off"],
"@typescript-eslint/no-misused-promises": ["error", {
checksVoidReturn: false
}],
"@typescript-eslint/no-unsafe-assignment": ["off"],
"@typescript-eslint/no-unsafe-call": ["off"],
"@typescript-eslint/no-unsafe-enum-comparison": ["off"],
"@typescript-eslint/consistent-type-definitions": ["error",
"type"
],
"@typescript-eslint/array-type": ["error", {
default: "array-simple"
}],
"@typescript-eslint/naming-convention": ["error",
{
"selector": "variableLike",
"format": ["camelCase"]
},
{
"selector": "variableLike",
"format": null,
"modifiers": ["unused"]
},
{
"format": ["camelCase", "UPPER_CASE"],
"selector": "variable",
"modifiers": ["const"]
},
{
"format": ["PascalCase"],
"selector": "variable",
"modifiers": ["const"],
"filter": "Validation$|Zod$"
}
],
"@typescript-eslint/prefer-promise-reject-errors": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/strict-boolean-expressions": ["error",
{
"allowString": false,
"allowNumber": false,
"allowNullableObject": false
}
],
"@typescript-eslint/triple-slash-reference": "off",
"capitalized-comments": "off",
"import-x/extensions": "off",
"@stylistic/object-curly-newline": ["error", {
"ImportDeclaration": "never"
}],
"n/file-extension-in-import": "off",
"promise-function-async": "off",
"camelcase": "off",
"default-case": "off",
"import/extensions": "off",
"import/no-unassigned-import": "off",
"no-dupe-class-members": "off",
"no-negated-condition": "off",
"no-redeclare": "off",
"no-unused-vars": "off",
"no-useless-constructor": "off",
"no-void": ["error", {
allowAsStatement: true
}],
"no-warning-comments": "off",
"prefer-promise-reject-errors": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-useless-undefined": ["error", {
checkArguments: false
}],
"unicorn/prefer-top-level-await": "off",
"unicorn/switch-case-braces": "off",
"unicorn/prevent-abbreviations": "off",
}
}
);