-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (38 loc) · 1.04 KB
/
eslint.config.js
File metadata and controls
39 lines (38 loc) · 1.04 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
// eslint.config.js - Minimal ESLint config for ResTrack
export default [
{
ignores: [
'node_modules/**',
'dist/**',
'build/**',
'**/*.min.js',
],
},
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
document: 'readonly',
window: 'readonly',
htmx: 'readonly',
fetch: 'readonly',
console: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
confirm: 'readonly',
bootstrap: 'readonly',
// Add project-specific globals only if needed
},
},
rules: {
'no-undef': 'error',
'no-unused-vars': 'warn',
'no-unreachable': 'error',
'no-console': 'warn',
},
},
];