-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc.cjs
30 lines (30 loc) · 897 Bytes
/
.eslintrc.cjs
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
module.exports = {
'env': {
'browser': true,
'es2021': true
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint'
],
'rules': {
'no-extra-semi': 'error',
'semi': ['error', 'never'],
'comma-dangle': ['error', 'always-multiline'],
'no-var': 'error',
'prefer-const': ['error', { 'destructuring': 'all' }],
'quotes': ['error', 'single'],
'no-duplicate-imports': 'error',
'comma-spacing': 'error',
'array-bracket-spacing': ['error', 'never'],
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxBOF': 0 }],
'object-curly-spacing': ['error', 'always'],
'padded-blocks': ['error', 'never'],
'no-multi-spaces': ['error'],
'space-infix-ops': ['error'],
},
};