-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
28 lines (28 loc) · 996 Bytes
/
.eslintrc.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
module.exports = {
parserOptions: {
ecmaVersion: 2021,
ecmaFeatures: { jsx: true },
sourceType: 'script'
},
rules: {
indent: ['error', 2, { 'SwitchCase': 1 }],
quotes: ['error', 'single'],
semi: ['error', 'never'],
'linebreak-style': ['error', 'unix'],
'no-trailing-spaces': ['error'],
'no-multi-spaces': ['error'],
'key-spacing': ['error'],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'space-infix-ops': ['error'],
'arrow-spacing': ['error', { 'before': true, 'after': true }],
'object-curly-spacing': ['error', 'always'],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }],
'no-console': ['error'],
'eqeqeq': ['error', 'always'],
'max-len': ['error', { 'code': 200, 'ignoreStrings': true }],
'keyword-spacing': 'error',
'eol-last': ['error', 'always'],
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'arrow-parens': ['error', 'always'],
},
}