@momsfriendlydevco/eslint-config 2.0.2 → 2.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.
- package/index.js +10 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -13,7 +13,7 @@ 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
|
|
@@ -31,6 +31,7 @@ export default [
|
|
|
31
31
|
...pluginJSDoc.configs['flat/recommended'],
|
|
32
32
|
settings: {
|
|
33
33
|
jsdoc: {
|
|
34
|
+
// NOTE that some specs - like vue - can add to this config
|
|
34
35
|
mode: 'jsdoc',
|
|
35
36
|
tagNamePreference: {
|
|
36
37
|
// Prefer 'emits' over 'fires' to match Vue terminology {{{
|
|
@@ -87,6 +88,14 @@ export default [
|
|
|
87
88
|
},
|
|
88
89
|
},
|
|
89
90
|
},
|
|
91
|
+
settings: {
|
|
92
|
+
jsdoc: {
|
|
93
|
+
tagNamePreference: {
|
|
94
|
+
// Allow 'prop' in Vue mode to match Vue terminology
|
|
95
|
+
prop: 'prop',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
90
99
|
rules: {
|
|
91
100
|
'vue/attributes-order': ['warn', {
|
|
92
101
|
'order': [
|
package/package.json
CHANGED