From bca66c850e9de01a2a54b9ba86731d4e7cddb055 Mon Sep 17 00:00:00 2001 From: Zack Krida Date: Sun, 20 Feb 2022 21:36:04 -0500 Subject: [PATCH] Add support for NuxtLink and RouterLink --- .eslintrc.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0df7a8f89c..22b877e5fe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -58,9 +58,17 @@ module.exports = { 'vue/no-restricted-syntax': [ 'error', { - selector: 'VElement[name=a]', + selector: 'VElement[name="a"]', message: 'Use the component instead of a raw tag.', }, + { + selector: 'VElement[name="nuxtlink"]', + message: 'Use the component instead of .', + }, + { + selector: 'VElement[name="routerlink"]', + message: 'Use the component instead of .', + }, ], 'unicorn/filename-case': ['error', { case: 'kebabCase' }], },