forked from less-mine/jsqrcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (42 loc) · 1.09 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
module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
'browser': true,
'commonjs': true,
'node': true,
},
extends: 'eslint:recommended',
rules: {
'comma-dangle': 'off',
'no-console': 'off',
'no-constant-condition': 'off',
'no-redeclare': 'off',
'no-unused-vars': 'off',
'array-bracket-spacing': 'error',
'block-spacing': 'error',
'brace-style': 'error',
'comma-spacing': 'error',
'comma-style': 'error',
'eol-last': 'error',
'indent': ['error', 2],
'key-spacing': 'error',
'keyword-spacing': 'error',
'linebreak-style': 'error',
'no-array-constructor': 'error',
'no-trailing-spaces': 'error',
'no-unneeded-ternary': 'error',
'object-curly-newline': 'error',
'object-curly-spacing': 'error',
'operator-linebreak': 'error',
'semi-spacing': 'error',
'semi': 'error',
'space-before-blocks': 'error',
'space-before-function-paren': ['error', 'never'],
'space-in-parens': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
},
};