-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.13 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
45
46
47
48
49
50
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
},
parserOptions: {
parser: 'babel-eslint',
},
extends: [
'standard',
'prettier',
'prettier/standard',
'plugin:vue/recommended',
],
plugins: ['prettier', 'vue', 'json'],
rules: {
'prettier/prettier': [
1,
{
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
arrowParens: 'avoid',
},
],
'block-scoped-var': 'off',
'complexity': 1,
'default-case': 1,
'eol-last': 'off',
// https://github.com/prettier/eslint-config-prettier#max-len
// 'max-len': ['error', { code: 80, ignoreTrailingComments: true, ignoreUrls: true }],
'no-alert': 1,
'no-console': 1,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 'off',
'no-eval': 2,
'no-script-url': 1,
'no-var': 2,
'no-void': 2,
'prefer-const': 1,
'space-after-keywords': 'off',
'space-return-throw-case': 'off'
},
}