@momsfriendlydevco/eslint-config 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +17 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
// Rules shared by both .doop + .vue files
|
|
2
|
+
let vueCommonRules = {
|
|
3
|
+
'html-closing-bracket-spacing': ['off'], // Annoying doesn't allow <this-kind-of-thing/>
|
|
4
|
+
'no-debugger': ['warn'], // Debuggers are fine, just warn
|
|
5
|
+
'no-useless-escape': ['off'], // ESlint frequently gets what should and shouldn't be escaped wrong
|
|
6
|
+
'no-unused-vars': ['warn'], // Dont make unused vars the end of the world
|
|
7
|
+
};
|
|
8
|
+
|
|
1
9
|
module.exports = {
|
|
2
10
|
extends: [
|
|
3
11
|
'plugin:vue/recommended',
|
|
@@ -22,8 +30,7 @@ module.exports = {
|
|
|
22
30
|
},
|
|
23
31
|
rules: {
|
|
24
32
|
'vue/comment-directive': ['off'], // Screws up block parsing and we don't have <template/> anyway
|
|
25
|
-
|
|
26
|
-
'no-unused-vars': ['warn'],
|
|
33
|
+
...vueCommonRules,
|
|
27
34
|
},
|
|
28
35
|
},
|
|
29
36
|
// }}}
|
|
@@ -62,6 +69,13 @@ module.exports = {
|
|
|
62
69
|
selfClosingTag: 'never'
|
|
63
70
|
}],
|
|
64
71
|
'vue/html-indent': ['error', 'tab'],
|
|
72
|
+
'vue/html-self-closing': ['warn', {
|
|
73
|
+
html: {
|
|
74
|
+
void: 'always',
|
|
75
|
+
normal: 'any',
|
|
76
|
+
component: 'always',
|
|
77
|
+
},
|
|
78
|
+
}],
|
|
65
79
|
'vue/max-attributes-per-line': ['warn', {
|
|
66
80
|
singleline: 4,
|
|
67
81
|
multiline: 1,
|
|
@@ -111,6 +125,7 @@ module.exports = {
|
|
|
111
125
|
ignoreWhenNoAttributes: true,
|
|
112
126
|
ignores: ['pre', 'textarea', 'div', 'INLINE_ELEMENTS'],
|
|
113
127
|
}],
|
|
128
|
+
...vueCommonRules,
|
|
114
129
|
},
|
|
115
130
|
},
|
|
116
131
|
// }}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momsfriendlydevco/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "ESLint plugin for @MomsFriendlyDevCo projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/MomsFriendlyDevCo/eslint#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"eslint-plugin-vue": "^9.
|
|
24
|
+
"eslint-plugin-vue": "^9.13.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"eslint": "^8.37.0"
|