-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (38 loc) 路 825 Bytes
/
Copy patheslint.config.js
File metadata and controls
39 lines (38 loc) 路 825 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
import js from '@eslint/js';
import globals from 'globals';
import importPlugin from 'eslint-plugin-import';
export default [
{
ignores: [
'build/**',
'node_modules/**',
'*.min.js',
'*.config.js',
],
},
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.browser,
},
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: {
import: importPlugin,
},
rules: {
strict: ['error', 'global'],
'no-extra-boolean-cast': 'off',
'no-use-before-define': 'error',
'no-unused-vars': 'error',
'no-undef': 'error',
'no-console': 'off',
'no-prototype-builtins': 'off',
'import/no-unresolved': 'error',
'import/no-duplicates': 'error',
},
},
];