@@ -138,6 +138,43 @@ export default defineConfig([
138138 '@typescript-eslint/ban-ts-comment' : 'error' ,
139139 '@typescript-eslint/consistent-type-definitions' : [ 'error' , 'type' ] ,
140140 '@typescript-eslint/explicit-module-boundary-types' : 'error' ,
141+
142+ '@typescript-eslint/naming-convention' : [
143+ 'error' ,
144+ {
145+ selector : 'default' ,
146+ format : [ 'camelCase' ] ,
147+ leadingUnderscore : 'allowSingleOrDouble' ,
148+ trailingUnderscore : 'allowSingleOrDouble' ,
149+ filter : {
150+ regex : '^(_|Component)$' ,
151+ match : false ,
152+ } ,
153+ } ,
154+ {
155+ selector : 'import' ,
156+ format : [ 'camelCase' , 'PascalCase' ] ,
157+ } ,
158+ {
159+ selector : 'variable' ,
160+ format : [ 'camelCase' , 'PascalCase' , 'UPPER_CASE' ] ,
161+ leadingUnderscore : 'allow' ,
162+ trailingUnderscore : 'allow' ,
163+ } ,
164+ {
165+ selector : [ 'typeLike' , 'enumMember' ] ,
166+ format : [ 'PascalCase' ] ,
167+ } ,
168+ {
169+ selector : 'typeProperty' ,
170+ format : [ 'camelCase' , 'snake_case' , 'PascalCase' ] ,
171+ } ,
172+ {
173+ selector : [ 'objectLiteralProperty' , 'objectLiteralMethod' ] ,
174+ format : null ,
175+ } ,
176+ ] ,
177+
141178 '@typescript-eslint/no-empty-function' : 'error' ,
142179 '@typescript-eslint/no-explicit-any' : 'error' ,
143180 '@typescript-eslint/no-unnecessary-condition' : 'error' ,
0 commit comments