@shrpne/eslint-plugin-vue-extra 0.1.2 → 0.1.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 CHANGED
@@ -23,8 +23,8 @@ Object.assign(plugin.configs, {
23
23
  },
24
24
  rules: {
25
25
  'vue/require-default-prop': 'off',
26
- 'vue-extra/no-falsy-default-with-optional-prop': 'error',
27
- 'no-boolean-default-false': 'error',
26
+ 'vue-extra/no-falsy-default-with-optional-prop': ['error', { disallow: ['undefined'] }],
27
+ 'vue-extra/no-boolean-default-false': 'error',
28
28
  'vue-extra/no-empty-defaults': 'error',
29
29
  },
30
30
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shrpne/eslint-plugin-vue-extra",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Extra ESLint rules for Vue projects",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -283,7 +283,7 @@ const rule = {
283
283
  ],
284
284
  messages: {
285
285
  disallowedDefault:
286
- 'Optional prop "{{name}}" must not be defaulted to {{value}}.',
286
+ 'Optional prop "{{name}}" should not be defaulted to {{value}}. It\'s considered redundant.',
287
287
  requiresTypeInfo:
288
288
  '@shrpne/vue-extra/no-falsy-default-with-optional-prop requires type information. Configure @typescript-eslint/parser with parserOptions.project.',
289
289
  },