@momsfriendlydevco/eslint-config 2.0.2 → 2.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.
Files changed (2) hide show
  1. package/index.js +12 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -13,16 +13,13 @@ let jsCommonRules = {
13
13
  // JSDoc
14
14
  'jsdoc/check-alignment': ['off'], // Disable the JSDoc parser insisting on correct indents
15
15
  'jsdoc/check-tag-names': ['warn', { // Extend JSDoc allowed tags
16
- definedTags: ['date', 'url'],
16
+ definedTags: ['date', 'slot', 'url'],
17
17
  }],
18
18
  'jsdoc/check-types': ['off'], // Disable the JSDoc parser being fussy about `@param {String}` vs `@param {string}`
19
19
  'jsdoc/no-defaults': ['off'], // Disable the JSDoc parser that complains about optional params as its just silly
20
20
  'jsdoc/no-undefined-types': ['warn', {disableReporting: true}], // Disable the JSDoc parser for "undefined" types which it usually gets wrong. Ask eslint to still mark these as used though
21
21
  'jsdoc/require-returns-description': ['off'], // Disable the JSDoc parse being fussy about return descriptions
22
22
  'jsdoc/tag-lines': ['off'], // Disable the JSDoc parser being fussy about new-line spacing
23
-
24
- // Vue
25
- 'vue/no-v-html': ['off'], // Disable Vue complaining about v-html being used
26
23
  };
27
24
 
28
25
  export default [
@@ -31,6 +28,7 @@ export default [
31
28
  ...pluginJSDoc.configs['flat/recommended'],
32
29
  settings: {
33
30
  jsdoc: {
31
+ // NOTE that some specs - like vue - can add to this config
34
32
  mode: 'jsdoc',
35
33
  tagNamePreference: {
36
34
  // Prefer 'emits' over 'fires' to match Vue terminology {{{
@@ -87,6 +85,14 @@ export default [
87
85
  },
88
86
  },
89
87
  },
88
+ settings: {
89
+ jsdoc: {
90
+ tagNamePreference: {
91
+ // Allow 'prop' in Vue mode to match Vue terminology
92
+ prop: 'prop',
93
+ },
94
+ },
95
+ },
90
96
  rules: {
91
97
  'vue/attributes-order': ['warn', {
92
98
  'order': [
@@ -112,7 +118,7 @@ export default [
112
118
  'vue/html-closing-bracket-spacing': ['warn', {
113
119
  selfClosingTag: 'never'
114
120
  }],
115
- 'vue/html-indent': ['error', 'tab'],
121
+ 'vue/html-indent': ['warn', 'tab'],
116
122
  'vue/html-self-closing': ['warn', {
117
123
  html: {
118
124
  void: 'always',
@@ -129,6 +135,7 @@ export default [
129
135
  allowEmptyLines: true,
130
136
  }],
131
137
  'vue/mustache-interpolation-spacing': ['warn', 'never'],
138
+ 'vue/no-v-html': ['off'], // Disable Vue complaining about v-html being used
132
139
  'vue/order-in-components': ['warn', {
133
140
  'order': [
134
141
  'el',
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.0.2",
4
+ "version": "2.0.4",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "test": "eslint --config index.js test/data"