-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patheslint.config.mjs
More file actions
50 lines (49 loc) · 1.29 KB
/
eslint.config.mjs
File metadata and controls
50 lines (49 loc) · 1.29 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
import oclif from 'eslint-config-oclif'
export default [
...oclif,
{
ignores: [
'./dist',
'./lib',
'**/*.js',
'workflows-repo/**/*',
],
},
{
files: [
'**/*.ts',
],
languageOptions: {
parserOptions: {
ecmaFeatures: {
modules: true,
},
ecmaVersion: 6,
sourceType: 'module',
},
},
rules: {
'@stylistic/indent': 'warn',
'@stylistic/lines-between-class-members': 'warn',
'@stylistic/object-curly-spacing': 'warn',
'@stylistic/quotes': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'warn',
camelcase: 'off',
'import/namespace': 'warn',
'mocha/no-mocha-arrows': 'warn',
'n/shebang': 'warn',
'node/no-missing-import': 'off',
'perfectionist/sort-imports': 'warn',
'perfectionist/sort-intersection-types': 'warn',
'perfectionist/sort-objects': 'warn',
'prefer-arrow-callback': 'warn',
'unicorn/import-style': 'warn',
'unicorn/no-array-for-each': 'off',
'unicorn/no-useless-undefined': 'warn',
'unicorn/prefer-node-protocol': 'warn',
'unicorn/prefer-number-properties': 'warn',
'unicorn/prefer-string-replace-all': 'warn',
},
},
]