-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
26 lines (25 loc) · 1.02 KB
/
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
import globals from 'globals';
import pluginJs from '@eslint/js';
export default [
{languageOptions: {globals: {...globals.browser, ...globals.node}},
rules: {
'object-curly-spacing': ['error', 'never'],
'key-spacing': ['error', {'beforeColon': false}],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': ['error', {'before': false}],
'arrow-parens': ['error', 'always'],
'arrow-spacing': 'error',
'no-multi-spaces': 'error',
'no-trailing-spaces': ['error'],
'space-infix-ops': ['error'],
'space-in-parens': ['error', 'never'],
'space-before-function-paren': ['error', 'never'],
'space-before-blocks': ['error', 'always'],
'keyword-spacing': ['error', {'before': true}],
'semi': ['error', 'always'],
'quotes': ['error', 'single'],
'indent': ['error', 4, {'SwitchCase': 1}],
},
},
pluginJs.configs.recommended,
];