generated from BiscuitTin/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.ts
52 lines (51 loc) · 1.17 KB
/
eslint.config.ts
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
import config from '@biscuittin/eslint-config'
export default config(
{
typescript: {
allowDefaultProject: [
'commitlint.config.mjs',
'lint-staged.config.js',
'packages/eslint-plugin-format/src/workers/*.js',
],
},
node: {
extraFiles: ['packages/eslint-config/src/**/*.ts'],
},
},
{
files: ['.vscode/*.json'],
rules: {
'jsonc/no-comments': 'off',
},
},
{
files: ['packages/eslint-config/src/**/*.ts'],
rules: {
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': ['error', {
allowList: { env: true, Env: true, tsconfigRootDir: true },
}],
},
},
{
files: [
'packages/eslint-config/src/utils/get-package-json.ts',
'packages/eslint-config/src/utils/load-local-file.ts',
'packages/eslint-parser-plain/src/index.ts',
],
rules: {
'unicorn/no-null': 'off',
},
},
{
files: [
'vitest.workspace.ts',
'packages/*/tests/**/*.spec.ts',
],
rules: {
'unicorn/no-null': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'import/no-relative-packages': 'off',
},
},
)