forked from qingstor/qingstor-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (39 loc) · 883 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
root: true,
extends: ['eslint:recommended'],
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
modules: true,
},
},
env: {
browser: true,
node: true,
es6: true,
},
rules: {
'max-len': [1, {code: 150}],
indent: ['error', 2],
'no-multiple-empty-lines': ['error', { max: 1 }],
'eol-last': ['error', 'always'],
'quote-props': ['error', 'as-needed'],
quotes: ['error', 'single'],
semi: 'error',
'semi-spacing': 'error',
'comma-spacing': 'error',
'comma-style': ['error', 'last'],
'prefer-const': 'error',
'no-empty': 'off',
},
globals: {
// globals in tests
it: "readonly",
describe: "readonly",
qingstor_sdk: "readonly",
qingstor_config: "readonly",
qingstor_test_config: "readonly",
}
};