-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
86 lines (86 loc) · 2.52 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
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
{
"extends": [
"eslint:recommended",
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier"
],
"plugins": ["unused-imports"],
"env": {
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json",
"./packages/*/tsconfig.json",
"./playground/*/tsconfig.json"
]
},
"settings": {
"import/resolver": {
"typescript": true
}
},
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-unnecessary-condition": [
"error",
{ "allowConstantLoopConditions": true }
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"no-constant-condition": ["error", { "checkLoops": false }],
"unicorn/no-array-callback-reference": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/filename-case": "off",
"unicorn/no-useless-undefined": ["error", { "checkArguments": false }],
"unused-imports/no-unused-imports": "error",
"import/order": [2, { "alphabetize": { "order": "asc" } }],
"import/no-default-export": "error"
},
"overrides": [
{
"files": [
"./**/excss.config.ts",
"./**/vite.config.ts",
"./**/vitest.config.ts",
"./**/next.config.mjs",
"./**/webpack.config.mjs",
"./packages/excss/src/compiler.ts",
"./packages/excss/src/plugins/vite.ts",
"./packages/excss/src/plugins/next.ts",
"./packages/excss/src/plugins/webpack/**",
"./playground/next/src/app/**/{page,layout,loading,error,template,head}.tsx",
"./playground/next/src/pages/**"
],
"rules": {
"import/no-default-export": "off",
"import/prefer-default-export": "error"
}
},
{
"files": ["./**/*.{js,cjs}"],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"unicorn/prefer-module": "off"
}
}
]
}