File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { type Linter } from "eslint" ;
2
2
3
- import { commonJsFiles , typescriptDeclarationFiles } from "~/files" ;
3
+ import { typescriptDeclarationFiles } from "~/files" ;
4
4
5
5
export const settings : Linter . Config = {
6
6
plugins : [ "@typescript-eslint" ] ,
@@ -101,6 +101,18 @@ export const settings: Linter.Config = {
101
101
leadingUnderscore : "allow" ,
102
102
trailingUnderscore : "forbid" ,
103
103
} ,
104
+ {
105
+ selector : "variable" ,
106
+ filter : {
107
+ regex : "_[^_]+" ,
108
+ match : true ,
109
+ } ,
110
+ format : [ "camelCase" , "PascalCase" , "UPPER_CASE" ] ,
111
+ modifiers : [ "const" ] ,
112
+ prefix : [ "m_" , "M_" ] ,
113
+ leadingUnderscore : "allow" ,
114
+ trailingUnderscore : "forbid" ,
115
+ } ,
104
116
{
105
117
selector : "variable" ,
106
118
format : [ "camelCase" , "PascalCase" , "UPPER_CASE" ] ,
You can’t perform that action at this time.
0 commit comments