Skip to content

Commit 2594f4b

Browse files
committed
feat!: re-enable camelcase rule for <script lang="tsx"> blocks
1 parent fcec978 commit 2594f4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/eslint-config-standard-with-typescript/allow-tsx-in-vue.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ module.exports = defineConfig({
4444
'@typescript-eslint/no-throw-literal': 'off',
4545

4646
'@typescript-eslint/naming-convention': 'off',
47+
// camelcase is quite permissive that it only disallows underscores in the middle of names.
48+
// https://eslint.org/docs/latest/rules/id-match might be a better replacement for this rule,
49+
// but I'm not sure if it works well with TypeScript syntax.
50+
camelcase: ['error', {
51+
allow: ['^UNSAFE_'],
52+
properties: 'never',
53+
ignoreGlobals: true
54+
}],
55+
4756
'@typescript-eslint/no-base-to-string': 'off',
4857
'@typescript-eslint/no-floating-promises': 'off',
4958
'@typescript-eslint/no-for-in-array': 'off',

0 commit comments

Comments
 (0)