@@ -4,14 +4,24 @@ parserOptions:
44 ecmaVersion : 2022
55 sourceType : module
66 project :
7- - ./client/jsconfig.json
7+ - ./tsconfig.json
8+ - ./shared/tsconfig.json
9+ - ./client/tsconfig.json
10+ - ./server/tsconfig.json
811
912settings :
1013 node : true
1114
1215extends :
1316 - eslint:recommended
1417 - plugin:import/recommended
18+ - plugin:import/typescript
19+ - plugin:@typescript-eslint/recommended
20+ - plugin:@typescript-eslint/recommended-type-checked
21+ - plugin:@typescript-eslint/strict
22+ - plugin:@typescript-eslint/strict-type-checked
23+ - plugin:@typescript-eslint/stylistic
24+ - plugin:@typescript-eslint/stylistic-type-checked
1525 - plugin:unicorn/recommended
1626 - plugin:sonarjs/recommended
1727
5666 import/no-duplicates :
5767 - error
5868 no-unused-vars :
59- - error
60- - argsIgnorePattern : ^_
61- ignoreRestSiblings : true
69+ - off
6270 sonarjs/cognitive-complexity :
6371 - error
6472 - 18
@@ -68,19 +76,74 @@ rules:
6876 object-curly-spacing :
6977 - error
7078 - always
71- semi :
79+ ' @typescript-eslint/no-unused-vars ' :
80+ - error
81+ - argsIgnorePattern : ^_
82+ ignoreRestSiblings : true
83+ ' @typescript-eslint/lines-between-class-members ' :
84+ - error
85+ ' @typescript-eslint/padding-line-between-statements ' :
86+ - error
87+ - blankLine : never
88+ prev : export
89+ next : export
90+ - blankLine : always
91+ prev :
92+ - const
93+ - class
94+ next : export
95+ - blankLine : always
96+ prev : ' *'
97+ next :
98+ - switch
99+ - class
100+ - function
101+ - if
102+ - return
103+ - try
104+ - interface
105+ - type
106+ ' @typescript-eslint/consistent-type-definitions ' :
107+ - off
108+ ' @typescript-eslint/non-nullable-type-assertion-style ' :
109+ - off
110+ ' @typescript-eslint/no-unnecessary-condition ' :
111+ - off
112+ ' @typescript-eslint/return-await ' :
113+ - error
114+ - always
115+ ' @typescript-eslint/quotes ' :
116+ - error
117+ - single
118+ ' @typescript-eslint/consistent-type-imports ' :
119+ - error
120+ ' @typescript-eslint/consistent-type-exports ' :
121+ - error
122+ ' @typescript-eslint/no-unnecessary-type-assertion ' :
123+ - off
124+ ' @typescript-eslint/explicit-function-return-type ' :
125+ - error
126+ - allowTypedFunctionExpressions : true
127+ ' @typescript-eslint/no-empty-interface ' :
128+ - error
129+ - allowSingleExtends : true
130+ ' @typescript-eslint/explicit-member-accessibility ' :
131+ - error
132+ ' @typescript-eslint/no-misused-promises ' :
133+ - error
134+ - checksVoidReturn : false
135+ ' @typescript-eslint/object-curly-spacing ' :
136+ - error
137+ - always
138+ ' @typescript-eslint/semi ' :
72139 - error
73140 - always
74141
75142overrides :
76143 - files :
77- - project.config.cjs
78- - commitlint.config.cjs
79- - dangerfile.cjs
80- parserOptions :
81- sourceType : commonjs
82- env :
83- node : true
144+ - project.config.ts
145+ - commitlint.config.ts
146+ - dangerfile.ts
84147 rules :
85148 ' import/no-default-export ' :
86149 - off
0 commit comments