File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/eslint-config-standard-with-typescript Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,15 @@ module.exports = defineConfig({
44
44
'@typescript-eslint/no-throw-literal' : 'off' ,
45
45
46
46
'@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
+
47
56
'@typescript-eslint/no-base-to-string' : 'off' ,
48
57
'@typescript-eslint/no-floating-promises' : 'off' ,
49
58
'@typescript-eslint/no-for-in-array' : 'off' ,
You can’t perform that action at this time.
0 commit comments