-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.eslintrc.js
44 lines (40 loc) · 1.47 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
37
38
39
40
41
42
43
44
module.exports = {
'env': {
'node': true,
'es6': true
},
'extends': [
'plugin:jsdoc/recommended',
'plugin:@typescript-eslint/recommended',
],
'parserOptions': {
'sourceType': 'module',
'ecmaVersion': 2020,
},
'settings': { 'jsdoc': { 'mode': 'typescript' } },
'plugins': ['jsdoc', '@typescript-eslint'],
'rules': {
'indent': ['error', 4, { 'SwitchCase': 1 }],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'func-call-spacing': ['error', 'never'],
'rest-spread-spacing': ['error', 'never'],
'newline-after-var': ['error', 'always'],
'lines-around-directive': ['error', 'never'],
'spaced-comment': ['error', 'always'],
'no-multiple-empty-lines': ['error', { 'max': 1 }],
'array-bracket-newline': ['error', { 'multiline': true }],
'array-bracket-spacing': ['error', 'never'],
'object-property-newline': ['error', { 'allowAllPropertiesOnSameLine': true }],
'object-curly-spacing': ['error', 'always'],
'object-curly-newline': [
'error', {
'ObjectExpression': { 'minProperties': 3, 'multiline': true },
'ObjectPattern': { 'multiline': true, },
'ImportDeclaration': 'never',
'ExportDeclaration': { 'multiline': true, 'minProperties': 3 }
}
]
}
};