Skip to content

Commit

Permalink
fix: allow pascalCase for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jul 31, 2023
1 parent 31bbf7f commit f82935b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ export const unicorn = [
'unicorn/explicit-length-check': 'error',
'unicorn/filename-case': [
'error',
{ case: 'kebabCase', ignore: [/^[A-Z]+\..*$/] },
{
cases: { kebabCase: true, pascalCase: true },
ignore: [/^[A-Z]+\..*$/],
},
],
'unicorn/new-for-builtins': 'error',
'unicorn/no-array-callback-reference': 'error',
Expand Down
5 changes: 0 additions & 5 deletions src/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ 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

0 comments on commit f82935b

Please sign in to comment.