-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 873 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
module.exports = {
root: true,
env: {
es6: true,
node: true,
browser: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'eslint:recommended',
'plugin:vue/essential'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
"indent": ["error", "tab", {"SwitchCase": 1}],
"quotes": ["warn", "single", {"avoidEscape": true}],
"semi": ["error", "never"],
"no-console": "off",
"no-unused-vars": "warn",
"no-cond-assign": "off",
"space-before-function-paren": ["error", "always"],
"space-before-blocks": ["error", "always"],
"keyword-spacing": ["error", {"before": true, "after": true}]
}
}