-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy patheslint.config.js
More file actions
43 lines (42 loc) · 785 Bytes
/
Copy patheslint.config.js
File metadata and controls
43 lines (42 loc) · 785 Bytes
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
import js from '@eslint/js';
import globals from 'globals';
export default [
{
ignores: [
'backtest/**',
'build/**',
'demo/build/**',
'demo/public/**',
'dist/**',
'node_modules/**'
]
},
js.configs.recommended,
{
rules: {
curly: ['error', 'multi-line'],
eqeqeq: ['error', 'smart'],
'no-shadow': 'error',
'no-var': 'error',
'prefer-const': 'error'
}
},
{
ignores: ['demo/**'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: globals.node
}
},
{
// Browser environment for demo files
files: ['demo/**/*.js'],
languageOptions: {
globals: {
...globals.browser,
LZString: 'readonly'
}
}
}
];