-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
93 lines (85 loc) · 2.01 KB
/
Copy patheslint.config.js
File metadata and controls
93 lines (85 loc) · 2.01 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
/**
* ESLint Configuration for GrooveAgent
* Flat config format (ESLint 9.x compatible)
*/
import js from '@eslint/js';
export default [
// Base recommended rules
js.configs.recommended,
// Global ignores
{
ignores: [
'node_modules/**',
'src/node/node_modules/**',
'dist/**',
'build/**',
'coverage/**',
'.cursor/**',
'.bmad/**'
]
},
// JavaScript files configuration
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
globals: {
// Node.js globals
console: 'readonly',
process: 'readonly',
module: 'readonly',
require: 'readonly',
exports: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
Buffer: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
setInterval: 'readonly',
clearInterval: 'readonly',
// Jest globals
describe: 'readonly',
test: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
jest: 'readonly'
}
},
rules: {
// Error prevention
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
],
'no-undef': 'error',
'no-console': 'off', // We use console for logging
// Code quality
eqeqeq: ['error', 'always'],
'no-var': 'error',
'prefer-const': 'error',
// Style (enforced by Prettier, but good to have)
semi: ['error', 'always'],
quotes: ['error', 'single', { avoidEscape: true }],
// Best practices
'no-eval': 'error',
'no-implied-eval': 'error',
'no-new-func': 'error',
'no-return-await': 'error',
'require-await': 'error'
}
},
// Test files
{
files: ['tests/**/*.js'],
languageOptions: {
sourceType: 'module'
}
}
];