no-setup-props-destructure.js 860 B

123456789101112131415161718192021222324
  1. /**
  2. * @author Yosuke Ota
  3. * See LICENSE file in root directory for full license.
  4. */
  5. 'use strict'
  6. const baseRule = require('./no-setup-props-reactivity-loss')
  7. module.exports = {
  8. // eslint-disable-next-line eslint-plugin/require-meta-schema, eslint-plugin/prefer-message-ids, internal/no-invalid-meta, eslint-plugin/require-meta-type -- inherit schema from base rule
  9. meta: {
  10. ...baseRule.meta,
  11. // eslint-disable-next-line eslint-plugin/require-meta-docs-description, internal/no-invalid-meta-docs-categories, eslint-plugin/meta-property-ordering
  12. docs: {
  13. ...baseRule.meta.docs,
  14. url: 'https://eslint.vuejs.org/rules/no-setup-props-destructure.html'
  15. },
  16. deprecated: true,
  17. replacedBy: ['no-setup-props-reactivity-loss']
  18. },
  19. /** @param {RuleContext} context */
  20. create(context) {
  21. return baseRule.create(context)
  22. }
  23. }