@momsfriendlydevco/eslint-config 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.js +9 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,3 +1,10 @@
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-useless-escape': ['off'], // ESlint frequently gets what should and shouldn't be escaped wrong
5
+ 'no-unused-vars': ['warn'], // Dont make unused vars the end of the world
6
+ };
7
+
1
8
  module.exports = {
2
9
  extends: [
3
10
  'plugin:vue/recommended',
@@ -22,8 +29,7 @@ module.exports = {
22
29
  },
23
30
  rules: {
24
31
  'vue/comment-directive': ['off'], // Screws up block parsing and we don't have <template/> anyway
25
- 'no-useless-escape': ['off'], // ESlint frequently gets what should and shouldn't be escaped wrong
26
- 'no-unused-vars': ['warn'],
32
+ ...vueCommonRules,
27
33
  },
28
34
  },
29
35
  // }}}
@@ -111,6 +117,7 @@ module.exports = {
111
117
  ignoreWhenNoAttributes: true,
112
118
  ignores: ['pre', 'textarea', 'div', 'INLINE_ELEMENTS'],
113
119
  }],
120
+ ...vueCommonRules,
114
121
  },
115
122
  },
116
123
  // }}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momsfriendlydevco/eslint-config",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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.10.0"
24
+ "eslint-plugin-vue": "^9.13.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "eslint": "^8.37.0"