diff --git a/.eslintrc.js b/.eslintrc.js index 04b047e881..0df7a8f89c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -50,6 +50,18 @@ module.exports = { 'warn', { required: { some: ['nesting', 'id'] } }, ], + /** + * Custom rule to disallow raw `` tag usage. + * Learn more about vue-eslint-parser's AST syntax: + * https://github.com/vuejs/vue-eslint-parser/blob/master/docs/ast.md + */ + 'vue/no-restricted-syntax': [ + 'error', + { + selector: 'VElement[name=a]', + message: 'Use the component instead of a raw tag.', + }, + ], 'unicorn/filename-case': ['error', { case: 'kebabCase' }], }, settings: {