-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
26 lines (25 loc) · 771 Bytes
/
Copy patheslint.config.js
File metadata and controls
26 lines (25 loc) · 771 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
import globals from 'globals';
import js from '@eslint/js';
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
...globals.es2021
}
},
rules: {
'no-unused-vars': ['error', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }],
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'debug'] }],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'prefer-const': 'error'
}
},
{
ignores: ['node_modules/**', 'dist/**', 'coverage/**', 'test/index.html']
}
];