@momsfriendlydevco/eslint-config 2.1.3 → 2.1.6

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 +16 -8
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -4,7 +4,7 @@ import pluginUnicorn from 'eslint-plugin-unicorn';
4
4
  import pluginVue from 'eslint-plugin-vue';
5
5
 
6
6
  // Rules shared by both .doop + .vue files
7
- let jsCommonRules = {
7
+ export let JSCommon = {
8
8
  // Generic rules
9
9
  'html-closing-bracket-spacing': ['off'], // Annoying doesn't allow <this-kind-of-thing/>
10
10
  'no-debugger': ['warn'], // Debuggers are fine, just warn
@@ -91,7 +91,7 @@ export default [
91
91
  },
92
92
  rules: {
93
93
  'vue/comment-directive': ['off'], // Screws up block parsing and we don't have <template/> anyway
94
- ...jsCommonRules,
94
+ ...JSCommon,
95
95
  },
96
96
  },
97
97
  // }}}
@@ -100,7 +100,7 @@ export default [
100
100
  {
101
101
  files: ['**/*.js', '**/*.mjs'],
102
102
  rules: {
103
- ...jsCommonRules,
103
+ ...JSCommon,
104
104
  },
105
105
  },
106
106
  // }}}
@@ -155,9 +155,16 @@ export default [
155
155
  selfClosingTag: 'never'
156
156
  }],
157
157
  'vue/html-indent': ['warn', 'tab', {
158
- ignores: [ // Don't enforce indent rules for attributes that get complicated
159
- '[class]',
158
+ ignores: [ // Don't enforce indent rules for attributes that can have indented logic
160
159
  '[v-tooltip]',
160
+
161
+ // NOTE: Annoyingly this doesn't / can't match `[:class]` as that isn't valid esquery
162
+ // I've tried all the following to fix this but none of these work - MC 2025-05-07
163
+ // 'VAttribute[directive=true][key.name.name="class"]',
164
+ // 'VDirective[key.name=class]',
165
+ // 'VDirective[key.name=/class/]',
166
+ // '[/.class/]',
167
+ // NOTE: To fix add `// eslint-disable vue-/html-indent`
161
168
  ],
162
169
  }],
163
170
  'vue/html-self-closing': ['warn', {
@@ -185,10 +192,11 @@ export default [
185
192
  'parent',
186
193
  'functional',
187
194
  ['delimiters', 'comments'],
188
- ['components', 'directives', 'emits', 'filters'],
195
+ 'inject',
196
+ 'provide',
189
197
  'extends',
190
198
  'mixins',
191
- ['provide', 'inject'],
199
+ ['components', 'directives', 'emits', 'filters'],
192
200
  'ROUTER_GUARDS',
193
201
  'layout',
194
202
  'middleware',
@@ -225,7 +233,7 @@ export default [
225
233
  ],
226
234
  }],
227
235
 
228
- ...jsCommonRules,
236
+ ...JSCommon,
229
237
  },
230
238
  },
231
239
  // }}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momsfriendlydevco/eslint-config",
3
3
  "description": "ESLint plugin for @MomsFriendlyDevCo projects",
4
- "version": "2.1.3",
4
+ "version": "2.1.6",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "test": "eslint --config index.js test/data"
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "homepage": "https://github.com/MomsFriendlyDevCo/eslint#readme",
26
26
  "dependencies": {
27
- "eslint-plugin-jsdoc": "^50.6.2",
28
- "eslint-plugin-unicorn": "^56.0.1",
29
- "eslint-plugin-vue": "^9.32.0",
30
- "vue-eslint-parser": "^9.4.3"
27
+ "eslint-plugin-jsdoc": "^50.6.11",
28
+ "eslint-plugin-unicorn": "^59.0.1",
29
+ "eslint-plugin-vue": "^10.1.0",
30
+ "vue-eslint-parser": "^10.1.3"
31
31
  },
32
32
  "peerDependencies": {
33
- "eslint": ">=9.2.0"
33
+ "eslint": "^9.26.0"
34
34
  }
35
35
  }