-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (53 loc) · 1.25 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
51
52
53
54
55
56
57
58
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
"parser": "babel-eslint",
"ecmaVersion": 2017,
"sourceType": "module"
},
env: {
"browser": true,
"commonjs": true,
"es6": true
},
extends: [
"vue",
"plugin:vue/recommended",
"airbnb"
],
// required to lint *.vue files
plugins: [
"import",
"vue"
],
// add your custom rules here
rules: {
// allow paren-less arrow functions
"arrow-parens": 0,
// allow async-await
"generator-star-spacing": "off",
"no-mixed-spaces-and-tabs": [0],
"no-tabs": 0,
"skipBlankLines": 0,
"ignoreComments": 0,
"no-trailing-spaces": [2, { "skipBlankLines": true }],
// For sw.js
"quotes": [0, "double"],
"quote-props": 0,
"comma-dangle": 0,
"no-undef": 0,
"no-restricted-globals": 0,
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"operator-linebreak": 0,
"no-console": 0,
"consistent-return": 0,
"import/prefer-default-export": 0,
"no-plusplus": 0,
"import/no-unresolved": 0,
"import/newline-after-import": 0,
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
}
}