Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida committed Feb 21, 2022
1 parent 69e096f commit ccf15b7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,26 @@ module.exports = {
'warn',
{ required: { some: ['nesting', 'id'] } },
],
/**
* Custom rule to disallow raw `<a></a>` 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 <VLink> component instead of a raw <a> tag.',
},
{
selector: 'VElement[name="nuxtlink"]',
message: 'Use the <VLink> component instead of <NuxtLink>.',
},
{
selector: 'VElement[name="routerlink"]',
message: 'Use the <VLink> component instead of <RouterLink>.',
},
],
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
},
settings: {
Expand Down

0 comments on commit ccf15b7

Please sign in to comment.