-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
31 lines (30 loc) · 1 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
27
28
29
30
31
import globals from 'globals'
import js from '@eslint/js'
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 12,
globals: {
...globals.browser,
...globals.es2020,
...globals.node,
},
sourceType: 'module',
},
rules: {
'brace-style': ['error', 'stroustrup', {'allowSingleLine': true}],
'comma-dangle': ['error', 'always-multiline'],
curly: ['error'],
eqeqeq: ['error', 'always', {null: 'ignore'}],
indent: ['error', 4, {SwitchCase: 1}],
'linebreak-style': ['error', 'unix'],
'no-constant-condition': ['error', {checkLoops: false}],
'no-control-regex': ['off'],
'no-empty': ['error', {allowEmptyCatch: true}],
'prefer-const': ['error', {destructuring: 'all'}],
quotes: ['error', 'single'],
semi: ['error', 'never'],
},
},
]