Skip to content

Commit

Permalink
feat(vue): add slot-name-casing rule to force camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jiang committed Dec 3, 2024
1 parent 23d085a commit 01a6284
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ export async function react(options: OptionsReact = {}): Promise<TypedFlatConfig
'jsx-a11y': await interopDefault(import('eslint-plugin-jsx-a11y')),
},
...enableFastRefresh && {
// @ts-expect-error - no dts file available
'react-refresh': await interopDefault(import('eslint-plugin-react-refresh')),
},
},
Expand Down
1 change: 1 addition & 0 deletions src/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function vueRules(eslintPlugin: any, options: OptionsVue): TypedFlatConfigItem['
'vue/valid-define-options': 'error',
'vue/no-unused-emit-declarations': 'error',
'vue/prefer-use-template-ref': 'error',
'vue/slot-name-casing': ['error', 'camelCase'],

// Extension Rules
'vue/camelcase': [
Expand Down

0 comments on commit 01a6284

Please sign in to comment.