-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy patheslint.config.mjs
65 lines (63 loc) · 2.04 KB
/
eslint.config.mjs
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
import {includeIgnoreFile} from '@eslint/compat'
import oclif from 'eslint-config-oclif'
import prettier from 'eslint-config-prettier'
import path from 'node:path'
import {fileURLToPath} from 'node:url'
const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '.gitignore')
export default [
includeIgnoreFile(gitignorePath),
...oclif,
prettier,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-require-imports': 'off',
'import/no-named-as-default-member': 'off',
'no-useless-constructor': 'off',
'perfectionist/sort-intersection-types': 'off',
'perfectionist/sort-object-types': 'off',
'perfectionist/sort-union-types': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/prefer-module': 'off',
},
},
{
files: ['test/**/*'],
rules: {
'@stylistic/lines-between-class-members': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-empty-function': 'off',
'max-lines': 'off',
'mocha/max-top-level-suites': ['warn', {limit: 8}],
'no-import-assign': 'off',
'perfectionist/sort-classes': 'off',
'perfectionist/sort-objects': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
'unicorn/no-static-only-class': 'off',
'unicorn/no-useless-undefined': 'off',
},
},
{
files: ['test/integration/*'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'mocha/no-nested-tests': 'off',
'mocha/no-sibling-hooks': 'off',
'mocha/no-top-level-hooks': 'off',
'unicorn/prefer-object-from-entries': 'off',
'unicorn/prefer-top-level-await': 'off',
},
},
{
files: ['test/module-loader/fixtures/**/*'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
camelcase: 'off',
'no-undef': 'off',
'unicorn/filename-case': 'off',
},
},
]