-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
31 lines (30 loc) · 925 Bytes
/
eslint.config.js
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
import globals from 'globals';
import pluginJs from '@eslint/js';
export default [
{
ignores: [
'coverage/',
'node_modules/',
'test/fixtures/minified/main.bundle.*',
],
},
{languageOptions: {globals: globals.node}},
pluginJs.configs.recommended,
{
rules: {
'comma-dangle': ['error', 'always-multiline'],
'default-param-last': ['error'],
'eol-last': ['error', 'always'],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'quote-props': ['error', 'as-needed'],
semi: ['error', 'always'],
'sort-imports': ['error', {}],
quotes: ['error', 'single'],
},
},
];