33import eslint from "@eslint/js" ;
44import tseslint from "typescript-eslint" ;
55import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended" ;
6- import { fileURLToPath } from ' url' ;
7- import path from ' path' ;
6+ import { fileURLToPath } from " url" ;
7+ import path from " path" ;
88
99const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1010
@@ -13,30 +13,30 @@ export default tseslint.config(
1313 tseslint . configs . recommendedTypeChecked ,
1414 eslintPluginPrettierRecommended ,
1515 {
16- languageOptions : {
17- parserOptions : {
18- project : path . resolve ( __dirname , "tsconfig.tests.json" ) ,
19- tsconfigRootDir : __dirname ,
16+ languageOptions : {
17+ parserOptions : {
18+ project : path . resolve ( __dirname , "tsconfig.tests.json" ) ,
19+ tsconfigRootDir : __dirname ,
20+ } ,
21+ } ,
22+ rules : {
23+ "@typescript-eslint/naming-convention" : [
24+ "error" ,
25+ {
26+ selector : "variableLike" ,
27+ format : [ "camelCase" ] ,
28+ } ,
29+ {
30+ selector : "variable" ,
31+ modifiers : [ "const" ] ,
32+ format : [ "camelCase" , "UPPER_CASE" ] ,
33+ } ,
34+ {
35+ selector : "typeLike" ,
36+ format : [ "PascalCase" ] ,
37+ } ,
38+ ] ,
2039 } ,
21- } ,
22- rules : {
23- '@typescript-eslint/naming-convention' : [
24- 'error' ,
25- {
26- selector : 'variableLike' ,
27- format : [ 'camelCase' ] ,
28- } ,
29- {
30- selector : 'variable' ,
31- modifiers : [ 'const' ] ,
32- format : [ 'camelCase' , 'UPPER_CASE' ] ,
33- } ,
34- {
35- selector : 'typeLike' ,
36- format : [ 'PascalCase' ] ,
37- } ,
38- ] ,
39- } ,
4040 } ,
4141 {
4242 ignores : [
0 commit comments