-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy patheslint.config.mjs
74 lines (73 loc) · 1.75 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
66
67
68
69
70
71
72
73
74
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginNode from 'eslint-plugin-n';
export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
{
plugins: {
n: eslintPluginNode,
},
},
{
ignores: [
'**/*.json',
'**/*.jsx',
'**/*.md',
'**/*.mjs',
'**/*.tsx',
'**/*.yml',
'**/node_modules',
'.git/',
'.swc',
'.vscode',
'app',
'docs',
'helm',
'site',
'sandbox/ches-mock/build',
'sandbox/keycloak-provision/build',
'sandbox/m365mock/build',
'sandbox/mnt',
'sandbox/nats-provision/build',
'terraform',
],
},
{
files: ['*.js', '*.ts'],
},
{
languageOptions: {
globals: {
process: 'readonly',
console: 'readonly',
},
},
},
{
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'no-await-in-loop': 'off',
'no-console': 'off',
'no-continue': 'off',
'no-else-return': 'error',
'no-empty': 'off',
'no-loop-func': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-underscore-dangle': 'off',
'no-unneeded-ternary': 'error',
'no-warning-comments': 'off',
'prefer-destructuring': 'off',
'sort-imports': 'off',
'spaced-comment': ['error', 'always', { markers: ['/'] }],
},
},
];