@@ -130,6 +130,8 @@ module.exports = {
130130 "no-useless-return" : [ "error" ] ,
131131
132132 "import/no-default-export" : "error" ,
133+ // TODO currently only works for direct imports (useless for now) https://github.com/benmosher/eslint-plugin-import/issues/1729
134+ // "import/no-deprecated": "error",
133135
134136 "jest/expect-expect" : "off" ,
135137 "jest/consistent-test-it" : [ "error" , { fn : "test" , withinDescribe : "test" } ] ,
@@ -154,31 +156,33 @@ module.exports = {
154156 "@typescript-eslint/no-require-imports" : "off" ,
155157 "@typescript-eslint/no-unnecessary-condition" : "off" ,
156158 "@typescript-eslint/prefer-for-of" : "error" ,
157- // TODO: https://github.com/typescript-eslint/typescript-eslint/issues/1265
158- // "@typescript-eslint/prefer-nullish-coalescing": "error",
159+ "@typescript-eslint/prefer-nullish-coalescing" : "error" ,
159160 "@typescript-eslint/prefer-readonly" : "off" ,
160161 "@typescript-eslint/quotes" : [ "error" , "double" , { avoidEscape : true , allowTemplateLiterals : false } ] ,
161162 "@typescript-eslint/require-array-sort-compare" : "off" ,
162163 "@typescript-eslint/camelcase" : "off" ,
163164
164- // TODO: https://github.com/typescript-eslint/typescript-eslint/issues/1712
165- // "@typescript-eslint/naming-convention": [
166- // "error",
167- // {
168- // selector: "default",
169- // format: ["camelCase"],
170- // leadingUnderscore: "allow",
171- // },
172- // {
173- // selector: "variable",
174- // format: ["camelCase", "UPPER_CASE"],
175- // leadingUnderscore: "allow",
176- // },
177- // {
178- // selector: "typeLike",
179- // format: ["PascalCase"],
180- // },
181- // ],
165+ "@typescript-eslint/naming-convention" : [
166+ "error" ,
167+ {
168+ selector : "default" ,
169+ format : [ "camelCase" ] ,
170+ leadingUnderscore : "allow" ,
171+ } ,
172+ {
173+ selector : "variable" ,
174+ format : [ "camelCase" , "UPPER_CASE" ] ,
175+ leadingUnderscore : "allow" ,
176+ } ,
177+ {
178+ selector : "typeLike" ,
179+ format : [ "PascalCase" ] ,
180+ } ,
181+ {
182+ selector : "enumMember" ,
183+ format : [ "PascalCase" ] ,
184+ } ,
185+ ] ,
182186 } ,
183187 } ,
184188 {
@@ -187,6 +191,13 @@ module.exports = {
187191 "no-restricted-syntax" : [ "error" , "LabeledStatement" , "SequenceExpression" ] ,
188192 "@typescript-eslint/no-throw-literal" : "off" ,
189193 "@typescript-eslint/prefer-optional-chain" : "off" ,
194+ "@typescript-eslint/naming-convention" : "off" ,
195+ } ,
196+ } ,
197+ {
198+ files : "language-extensions/index.d.ts" ,
199+ rules : {
200+ "@typescript-eslint/naming-convention" : "off" ,
190201 } ,
191202 } ,
192203 {
0 commit comments