Skip to content

Commit

Permalink
fix: enable pascalCase for vue SFC
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 31, 2023
1 parent 278fcdd commit 7b40bd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const vueCustomRules = {
],
'vue/no-loss-of-precision': 'error',
'vue/no-empty-pattern': 'error',

'unicorn/filename-case': [
'error',
{ cases: { kebabCase: true, pascalCase: true } },
],
}

/** @type {import('eslint-define-config').Rules} */
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["es2019"],
"strict": true,
"esModuleInterop": true,
"moduleResolution": "nodenext",
"moduleResolution": "bundler",
"skipLibCheck": true,
"noUnusedLocals": true,
"types": ["node"],
Expand Down

0 comments on commit 7b40bd8

Please sign in to comment.