-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.16 KB
/
.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
29
30
31
32
33
34
35
36
module.exports = {
env: {
browser: false,
commonjs: true,
es2021: false
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 5,
sourceType: 'module',
requireConfigFile: false
},
parser: '@babel/eslint-parser',
rules: {
'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }],
'comma-dangle': ['error', 'only-multiline'],
'dot-location': ['error', 'property'],
'dot-notation': ['error', { 'allowKeywords': false }],
'indent': ['error', 4],
'keyword-spacing': ['error', { before: true, after: true }],
'linebreak-style': ['error', 'windows'],
'no-control-regex': 0,
'no-irregular-whitespace': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': 'error',
'no-redeclare': 0,
'no-return-assign': ['error', 'always'],
'no-trailing-spaces': 'error',
'no-undef': 0,
'no-unused-vars': 0,
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'space-infix-ops': 'error',
}
};