-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy patheslint.config.js
More file actions
112 lines (111 loc) · 4.03 KB
/
eslint.config.js
File metadata and controls
112 lines (111 loc) · 4.03 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
const js = require('@eslint/js');
module.exports = [
{
ignores: ['node_modules/**', 'ee-dist/**', 'static/**']
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'commonjs',
globals: {
// Node.js globals
Buffer: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
console: 'readonly',
exports: 'writable',
global: 'readonly',
module: 'writable',
process: 'readonly',
require: 'readonly',
BigInt: 'readonly',
setImmediate: 'readonly',
clearImmediate: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
AbortController: 'readonly',
AbortSignal: 'readonly',
URL: 'readonly',
URLSearchParams: 'readonly',
structuredClone: 'readonly',
// Test globals
it: 'readonly',
describe: 'readonly',
before: 'readonly',
after: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly'
}
},
files: ['**/*.js'],
rules: {
// Disable rules that conflict with the project's style
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'none' }],
'no-prototype-builtins': 'off',
// Disable all formatting rules (handled by Prettier)
'array-bracket-spacing': 'off',
'arrow-parens': 'off',
'arrow-spacing': 'off',
'block-spacing': 'off',
'brace-style': 'off',
'comma-dangle': 'off',
'comma-spacing': 'off',
'comma-style': 'off',
'computed-property-spacing': 'off',
'dot-location': 'off',
'eol-last': 'off',
'func-call-spacing': 'off',
'function-call-argument-newline': 'off',
'function-paren-newline': 'off',
'generator-star-spacing': 'off',
'implicit-arrow-linebreak': 'off',
indent: 'off',
'jsx-quotes': 'off',
'key-spacing': 'off',
'keyword-spacing': 'off',
'linebreak-style': 'off',
'lines-around-comment': 'off',
'lines-between-class-members': 'off',
'max-len': 'off',
'multiline-ternary': 'off',
'new-parens': 'off',
'newline-per-chained-call': 'off',
'no-extra-parens': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-multi-spaces': 'off',
'no-multiple-empty-lines': 'off',
'no-tabs': 'off',
'no-trailing-spaces': 'off',
'no-whitespace-before-property': 'off',
'nonblock-statement-body-position': 'off',
'object-curly-newline': 'off',
'object-curly-spacing': 'off',
'object-property-newline': 'off',
'one-var-declaration-per-line': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'padding-line-between-statements': 'off',
'quote-props': 'off',
quotes: 'off',
'rest-spread-spacing': 'off',
semi: 'off',
'semi-spacing': 'off',
'semi-style': 'off',
'space-before-blocks': 'off',
'space-before-function-paren': 'off',
'space-in-parens': 'off',
'space-infix-ops': 'off',
'space-unary-ops': 'off',
'switch-colon-spacing': 'off',
'template-curly-spacing': 'off',
'template-tag-spacing': 'off',
'unicode-bom': 'off',
'wrap-iife': 'off',
'wrap-regex': 'off',
'yield-star-spacing': 'off'
}
}
];