-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
70 lines (67 loc) · 1.98 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
59
60
61
62
63
64
65
66
67
68
69
// module.exports = {
// root: true,
// env: {
// browser: true,
// node: 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.
// 'plugin:vue/essential'
// ],
// // required to lint *.vue files
// plugins: [
// 'vue'
// ],
// // add your custom rules here
// rules: {}
// }
// export default {
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
// parser: 'babel-eslint'
// parser: 'eslint'
"ecmaVersion": 2018,
},
extends: [
"eslint:recommended",
// 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.
"plugin:vue/recommended",
// "plugin:prettier/recommended"
],
// required to lint *.vue files
plugins: [
'vue'
],
"globals": {
"twttr": false, // twitter widgets include is an external source
},
// add your custom rules here
rules: {
"no-unused-vars": "warn",
"vue/no-v-html": "off",
"vue/html-closing-bracket-spacing": "off",
"vue/html-closing-bracket-newline": "off",
"vue/singleline-html-element-content-newline": "off",
"semi": [2, "never"],
"no-console": "off",
"vue/max-attributes-per-line": "off",
"no-empty-pattern": "off", // nuxt plugins require empty objects
// "prettier/prettier": ["error", { "semi": false }]
"vue/require-default-prop": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/html-indent": ["error", 2, {
"ignores": ['style']
}],
"vue/no-side-effects-in-computed-properties": "off", // does weird things with ES6 array operators (phagefutures) BUT might be a bad idea to turn off
}
}