@@ -71,19 +71,21 @@ const p11tGroups = {
7171} ;
7272
7373const enableTypeCheckedRules = {
74- ...tseslint . configs . strictTypeCheckedOnly . map ( x => x . rules ) . reduce ( ( a , b ) => ( { ...a , ...b } ) , { } ) ,
74+ ...tseslint . configs . strictTypeCheckedOnly
75+ . map ( x => x . rules )
76+ . reduce ( ( a , b ) => ( { ...a , ...b } ) , { } ) ,
7577 ...eslintPluginSafeTypeScript . configs . recommended . rules ,
7678 "@susisu/safe-typescript/no-unsafe-object-property-check" : "off" ,
7779 "@susisu/safe-typescript/no-unsafe-object-property-overwrite" : "off" ,
7880 "@typescript-eslint/consistent-type-exports" : "error" ,
79- "@typescript-eslint/strict-boolean-expressions" : [ "warn " , {
81+ "@typescript-eslint/strict-boolean-expressions" : [ "error " , {
8082 allowAny : false ,
8183 allowNullableBoolean : true ,
8284 allowNullableEnum : false ,
83- allowNullableNumber : false ,
84- allowNullableObject : true ,
85+ allowNullableNumber : true ,
86+ allowNullableObject : false ,
8587 allowNullableString : false ,
86- allowNumber : false ,
88+ allowNumber : true ,
8789 allowString : false ,
8890 } ] ,
8991} as const ;
@@ -150,11 +152,11 @@ export default tseslint.config(
150152 files : [ ...GLOB_JS , ...GLOB_TS ] ,
151153 rules : {
152154 curly : "warn" ,
153- eqeqeq : [ "error" , "always " ] ,
155+ eqeqeq : [ "error" , "smart " ] ,
154156 "no-console" : "error" ,
155157 "no-else-return" : "error" ,
156158 "no-fallthrough" : [ "error" , { commentPattern : ".*intentional fallthrough.*" } ] ,
157- "no-implicit-coercion" : [ "warn" , { allow : [ "!!" ] } ] ,
159+ "no-implicit-coercion" : "error" ,
158160 "no-mixed-operators" : "warn" ,
159161 "no-process-exit" : "error" ,
160162 "no-undef" : "off" ,
@@ -256,6 +258,7 @@ export default tseslint.config(
256258 "eslint-plugin/require-meta-docs-url" : "off" ,
257259 // Part: local rules
258260 "local/avoid-multiline-template-expression" : "warn" ,
261+ "local/prefer-eqeq-nullish-comparison" : "warn" ,
259262 } ,
260263 settings : {
261264 "import-x/parsers" : {
0 commit comments