no-invalid-model-keys.js 637 B

123456789101112131415161718192021222324
  1. 'use strict'
  2. const baseRule = require('./valid-model-definition')
  3. module.exports = {
  4. // eslint-disable-next-line eslint-plugin/prefer-message-ids
  5. meta: {
  6. ...baseRule.meta,
  7. // eslint-disable-next-line eslint-plugin/meta-property-ordering
  8. type: baseRule.meta.type,
  9. docs: {
  10. description: baseRule.meta.docs.description,
  11. categories: undefined,
  12. url: 'https://eslint.vuejs.org/rules/no-invalid-model-keys.html'
  13. },
  14. deprecated: true,
  15. replacedBy: ['valid-model-definition'],
  16. schema: []
  17. },
  18. /** @param {RuleContext} context */
  19. create(context) {
  20. return baseRule.create(context)
  21. }
  22. }