-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.eslintrc
95 lines (95 loc) · 2.27 KB
/
.eslintrc
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:vue/recommended",
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
"indent": ["error", 2, {
"SwitchCase": 1
}],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"prefer-template": "warn",
"arrow-parens": ["error", "as-needed"],
"max-len": "off",
"consistent-return": "off",
"no-param-reassign": ["error", {
"props": false
}],
"no-return-assign": ["error", "except-parens"],
"linebreak-style": "off",
"quote-props": ["warn", "consistent-as-needed"],
"no-tabs": ["error", {
"allowIndentationTabs": true
}],
"no-use-before-define": ["error", {
"functions": false
}],
"no-unused-vars": ["warn", {
"vars": "local",
"args": "none"
}],
"no-await-in-loop": "off",
"no-shadow": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-console": "off",
"no-alert": "off",
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true
}],
"no-bitwise": ["error", {
"allow": ["~", "&=", "|=", "<<"]
}],
"default-case": "off",
"vue/script-indent": ["error", 2, {
"baseIndent": 1,
"switchCase": 1
}],
"vue/html-indent": ["error", 2],
"vue/max-attributes-per-line": "off",
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "never",
"component": "never"
}
}],
"vue/singleline-html-element-content-newline": "off",
"vue/comma-dangle": "error",
"vue/no-v-html": "off",
"vue/require-default-prop": "off",
"vue/require-prop-types": "off",
"vue/return-in-computed-property": "off",
"vue/no-use-v-if-with-v-for": "off",
"vue/attribute-hyphenation": ["error", "never"]
},
"overrides": [{
"files": ["*.vue"],
"rules": {
"indent": "off"
}
}]
}