@eslinted/defaults 17.3.2 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +20 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +20 -4
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/ts/index.d.ts +20 -4
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +20 -4
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +20 -4
- package/dist/rules/ts/ts.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/ts/ts.ts +21 -5
package/dist/index.d.ts
CHANGED
|
@@ -674,6 +674,7 @@ declare const _default: {
|
|
|
674
674
|
readonly "ts/no-misused-promises": import("./rules/state.js").State.ON;
|
|
675
675
|
readonly "ts/no-misused-spread": import("./rules/state.js").State.ON;
|
|
676
676
|
readonly "ts/no-mixed-enums": import("./rules/state.js").State.ON;
|
|
677
|
+
readonly "ts/no-namespace": import("./rules/state.js").State.ON;
|
|
677
678
|
readonly "ts/no-non-null-asserted-nullish-coalescing": import("./rules/state.js").State.ON;
|
|
678
679
|
readonly "ts/no-non-null-asserted-optional-chain": import("./rules/state.js").State.ON;
|
|
679
680
|
readonly "ts/no-redundant-type-constituents": import("./rules/state.js").State.ON;
|
|
@@ -718,8 +719,22 @@ declare const _default: {
|
|
|
718
719
|
readonly "ts/prefer-function-type": import("./rules/state.js").State.ON;
|
|
719
720
|
readonly "ts/prefer-includes": import("./rules/state.js").State.ON;
|
|
720
721
|
readonly "ts/prefer-namespace-keyword": import("./rules/state.js").State.ON;
|
|
721
|
-
readonly "ts/prefer-nullish-coalescing":
|
|
722
|
-
|
|
722
|
+
readonly "ts/prefer-nullish-coalescing": readonly [
|
|
723
|
+
import("./rules/state.js").State.ON,
|
|
724
|
+
{
|
|
725
|
+
readonly ignoreMixedLogicalExpressions: true;
|
|
726
|
+
readonly ignorePrimitives: true;
|
|
727
|
+
}
|
|
728
|
+
];
|
|
729
|
+
readonly "ts/prefer-optional-chain": readonly [
|
|
730
|
+
import("./rules/state.js").State.ON,
|
|
731
|
+
{
|
|
732
|
+
readonly checkBigInt: false;
|
|
733
|
+
readonly checkBoolean: false;
|
|
734
|
+
readonly checkNumber: false;
|
|
735
|
+
readonly checkString: false;
|
|
736
|
+
}
|
|
737
|
+
];
|
|
723
738
|
readonly "ts/prefer-readonly": import("./rules/state.js").State.ON;
|
|
724
739
|
readonly "ts/prefer-reduce-type-parameter": import("./rules/state.js").State.ON;
|
|
725
740
|
readonly "ts/prefer-regexp-exec": import("./rules/state.js").State.ON;
|
|
@@ -750,8 +765,9 @@ declare const _default: {
|
|
|
750
765
|
readonly "ts/strict-boolean-expressions": readonly [
|
|
751
766
|
import("./rules/state.js").State.ON,
|
|
752
767
|
{
|
|
753
|
-
readonly
|
|
754
|
-
readonly
|
|
768
|
+
readonly allowNullableBoolean: true;
|
|
769
|
+
readonly allowNullableNumber: true;
|
|
770
|
+
readonly allowNullableString: true;
|
|
755
771
|
}
|
|
756
772
|
];
|
|
757
773
|
readonly "ts/switch-exhaustiveness-check": readonly [
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -656,6 +656,7 @@ declare const _default: {
|
|
|
656
656
|
readonly "ts/no-misused-promises": import("./state.js").State.ON;
|
|
657
657
|
readonly "ts/no-misused-spread": import("./state.js").State.ON;
|
|
658
658
|
readonly "ts/no-mixed-enums": import("./state.js").State.ON;
|
|
659
|
+
readonly "ts/no-namespace": import("./state.js").State.ON;
|
|
659
660
|
readonly "ts/no-non-null-asserted-nullish-coalescing": import("./state.js").State.ON;
|
|
660
661
|
readonly "ts/no-non-null-asserted-optional-chain": import("./state.js").State.ON;
|
|
661
662
|
readonly "ts/no-redundant-type-constituents": import("./state.js").State.ON;
|
|
@@ -700,8 +701,22 @@ declare const _default: {
|
|
|
700
701
|
readonly "ts/prefer-function-type": import("./state.js").State.ON;
|
|
701
702
|
readonly "ts/prefer-includes": import("./state.js").State.ON;
|
|
702
703
|
readonly "ts/prefer-namespace-keyword": import("./state.js").State.ON;
|
|
703
|
-
readonly "ts/prefer-nullish-coalescing":
|
|
704
|
-
|
|
704
|
+
readonly "ts/prefer-nullish-coalescing": readonly [
|
|
705
|
+
import("./state.js").State.ON,
|
|
706
|
+
{
|
|
707
|
+
readonly ignoreMixedLogicalExpressions: true;
|
|
708
|
+
readonly ignorePrimitives: true;
|
|
709
|
+
}
|
|
710
|
+
];
|
|
711
|
+
readonly "ts/prefer-optional-chain": readonly [
|
|
712
|
+
import("./state.js").State.ON,
|
|
713
|
+
{
|
|
714
|
+
readonly checkBigInt: false;
|
|
715
|
+
readonly checkBoolean: false;
|
|
716
|
+
readonly checkNumber: false;
|
|
717
|
+
readonly checkString: false;
|
|
718
|
+
}
|
|
719
|
+
];
|
|
705
720
|
readonly "ts/prefer-readonly": import("./state.js").State.ON;
|
|
706
721
|
readonly "ts/prefer-reduce-type-parameter": import("./state.js").State.ON;
|
|
707
722
|
readonly "ts/prefer-regexp-exec": import("./state.js").State.ON;
|
|
@@ -732,8 +747,9 @@ declare const _default: {
|
|
|
732
747
|
readonly "ts/strict-boolean-expressions": readonly [
|
|
733
748
|
import("./state.js").State.ON,
|
|
734
749
|
{
|
|
735
|
-
readonly
|
|
736
|
-
readonly
|
|
750
|
+
readonly allowNullableBoolean: true;
|
|
751
|
+
readonly allowNullableNumber: true;
|
|
752
|
+
readonly allowNullableString: true;
|
|
737
753
|
}
|
|
738
754
|
];
|
|
739
755
|
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wBAWE"}
|
package/dist/rules/ts/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ declare const _default: ({
|
|
|
93
93
|
readonly "ts/no-misused-promises": import("../state.js").State.ON;
|
|
94
94
|
readonly "ts/no-misused-spread": import("../state.js").State.ON;
|
|
95
95
|
readonly "ts/no-mixed-enums": import("../state.js").State.ON;
|
|
96
|
+
readonly "ts/no-namespace": import("../state.js").State.ON;
|
|
96
97
|
readonly "ts/no-non-null-asserted-nullish-coalescing": import("../state.js").State.ON;
|
|
97
98
|
readonly "ts/no-non-null-asserted-optional-chain": import("../state.js").State.ON;
|
|
98
99
|
readonly "ts/no-redundant-type-constituents": import("../state.js").State.ON;
|
|
@@ -137,8 +138,22 @@ declare const _default: ({
|
|
|
137
138
|
readonly "ts/prefer-function-type": import("../state.js").State.ON;
|
|
138
139
|
readonly "ts/prefer-includes": import("../state.js").State.ON;
|
|
139
140
|
readonly "ts/prefer-namespace-keyword": import("../state.js").State.ON;
|
|
140
|
-
readonly "ts/prefer-nullish-coalescing":
|
|
141
|
-
|
|
141
|
+
readonly "ts/prefer-nullish-coalescing": readonly [
|
|
142
|
+
import("../state.js").State.ON,
|
|
143
|
+
{
|
|
144
|
+
readonly ignoreMixedLogicalExpressions: true;
|
|
145
|
+
readonly ignorePrimitives: true;
|
|
146
|
+
}
|
|
147
|
+
];
|
|
148
|
+
readonly "ts/prefer-optional-chain": readonly [
|
|
149
|
+
import("../state.js").State.ON,
|
|
150
|
+
{
|
|
151
|
+
readonly checkBigInt: false;
|
|
152
|
+
readonly checkBoolean: false;
|
|
153
|
+
readonly checkNumber: false;
|
|
154
|
+
readonly checkString: false;
|
|
155
|
+
}
|
|
156
|
+
];
|
|
142
157
|
readonly "ts/prefer-readonly": import("../state.js").State.ON;
|
|
143
158
|
readonly "ts/prefer-reduce-type-parameter": import("../state.js").State.ON;
|
|
144
159
|
readonly "ts/prefer-regexp-exec": import("../state.js").State.ON;
|
|
@@ -169,8 +184,9 @@ declare const _default: ({
|
|
|
169
184
|
readonly "ts/strict-boolean-expressions": readonly [
|
|
170
185
|
import("../state.js").State.ON,
|
|
171
186
|
{
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
187
|
+
readonly allowNullableBoolean: true;
|
|
188
|
+
readonly allowNullableNumber: true;
|
|
189
|
+
readonly allowNullableString: true;
|
|
174
190
|
}
|
|
175
191
|
];
|
|
176
192
|
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/ts/ts.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ declare const _default: {
|
|
|
72
72
|
readonly "ts/no-misused-promises": State.ON;
|
|
73
73
|
readonly "ts/no-misused-spread": State.ON;
|
|
74
74
|
readonly "ts/no-mixed-enums": State.ON;
|
|
75
|
+
readonly "ts/no-namespace": State.ON;
|
|
75
76
|
readonly "ts/no-non-null-asserted-nullish-coalescing": State.ON;
|
|
76
77
|
readonly "ts/no-non-null-asserted-optional-chain": State.ON;
|
|
77
78
|
readonly "ts/no-redundant-type-constituents": State.ON;
|
|
@@ -116,8 +117,22 @@ declare const _default: {
|
|
|
116
117
|
readonly "ts/prefer-function-type": State.ON;
|
|
117
118
|
readonly "ts/prefer-includes": State.ON;
|
|
118
119
|
readonly "ts/prefer-namespace-keyword": State.ON;
|
|
119
|
-
readonly "ts/prefer-nullish-coalescing":
|
|
120
|
-
|
|
120
|
+
readonly "ts/prefer-nullish-coalescing": readonly [
|
|
121
|
+
State.ON,
|
|
122
|
+
{
|
|
123
|
+
readonly ignoreMixedLogicalExpressions: true;
|
|
124
|
+
readonly ignorePrimitives: true;
|
|
125
|
+
}
|
|
126
|
+
];
|
|
127
|
+
readonly "ts/prefer-optional-chain": readonly [
|
|
128
|
+
State.ON,
|
|
129
|
+
{
|
|
130
|
+
readonly checkBigInt: false;
|
|
131
|
+
readonly checkBoolean: false;
|
|
132
|
+
readonly checkNumber: false;
|
|
133
|
+
readonly checkString: false;
|
|
134
|
+
}
|
|
135
|
+
];
|
|
121
136
|
readonly "ts/prefer-readonly": State.ON;
|
|
122
137
|
readonly "ts/prefer-reduce-type-parameter": State.ON;
|
|
123
138
|
readonly "ts/prefer-regexp-exec": State.ON;
|
|
@@ -148,8 +163,9 @@ declare const _default: {
|
|
|
148
163
|
readonly "ts/strict-boolean-expressions": readonly [
|
|
149
164
|
State.ON,
|
|
150
165
|
{
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
166
|
+
readonly allowNullableBoolean: true;
|
|
167
|
+
readonly allowNullableNumber: true;
|
|
168
|
+
readonly allowNullableString: true;
|
|
153
169
|
}
|
|
154
170
|
];
|
|
155
171
|
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBA4ME"}
|
package/dist/rules/ts/ts.js
CHANGED
|
@@ -71,6 +71,7 @@ export default {
|
|
|
71
71
|
"ts/no-misused-promises": 2,
|
|
72
72
|
"ts/no-misused-spread": 2,
|
|
73
73
|
"ts/no-mixed-enums": 2,
|
|
74
|
+
"ts/no-namespace": 2,
|
|
74
75
|
"ts/no-non-null-asserted-nullish-coalescing": 2,
|
|
75
76
|
"ts/no-non-null-asserted-optional-chain": 2,
|
|
76
77
|
"ts/no-redundant-type-constituents": 2,
|
|
@@ -115,8 +116,22 @@ export default {
|
|
|
115
116
|
"ts/prefer-function-type": 2,
|
|
116
117
|
"ts/prefer-includes": 2,
|
|
117
118
|
"ts/prefer-namespace-keyword": 2,
|
|
118
|
-
"ts/prefer-nullish-coalescing":
|
|
119
|
-
|
|
119
|
+
"ts/prefer-nullish-coalescing": [
|
|
120
|
+
2,
|
|
121
|
+
{
|
|
122
|
+
ignoreMixedLogicalExpressions: true,
|
|
123
|
+
ignorePrimitives: true,
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
"ts/prefer-optional-chain": [
|
|
127
|
+
2,
|
|
128
|
+
{
|
|
129
|
+
checkBigInt: false,
|
|
130
|
+
checkBoolean: false,
|
|
131
|
+
checkNumber: false,
|
|
132
|
+
checkString: false,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
120
135
|
"ts/prefer-readonly": 2,
|
|
121
136
|
"ts/prefer-reduce-type-parameter": 2,
|
|
122
137
|
"ts/prefer-regexp-exec": 2,
|
|
@@ -147,8 +162,9 @@ export default {
|
|
|
147
162
|
"ts/strict-boolean-expressions": [
|
|
148
163
|
2,
|
|
149
164
|
{
|
|
150
|
-
|
|
151
|
-
|
|
165
|
+
allowNullableBoolean: true,
|
|
166
|
+
allowNullableNumber: true,
|
|
167
|
+
allowNullableString: true,
|
|
152
168
|
},
|
|
153
169
|
],
|
|
154
170
|
"ts/switch-exhaustiveness-check": [
|
package/dist/rules/ts/ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,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BAA+B,EAAE;;YAE/B;gBACE,oBAAoB,EAAE,IAAI;gBAC1B,mBAAmB,EAAE,IAAI;gBACzB,mBAAmB,EAAE,IAAI;aAC1B;SACF;QACD,gCAAgC,EAAE;;YAEhC;gBACE,yBAAyB,EAAE,IAAI;gBAC/B,kCAAkC,EAAE,IAAI;aACzC;SACF;QAGD,mBAAmB,EAAE;;YAEnB;gBACE,YAAY,EAAE,IAAI;aACnB;SACF;QAED,2CAA2C,GAAU;KAC7C;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "17.
|
|
6
|
+
"version": "17.4.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/ts/ts.ts
CHANGED
|
@@ -83,7 +83,7 @@ export default {
|
|
|
83
83
|
"ts/no-misused-promises": State.ON,
|
|
84
84
|
"ts/no-misused-spread": State.ON,
|
|
85
85
|
"ts/no-mixed-enums": State.ON,
|
|
86
|
-
|
|
86
|
+
"ts/no-namespace": State.ON,
|
|
87
87
|
"ts/no-non-null-asserted-nullish-coalescing": State.ON,
|
|
88
88
|
"ts/no-non-null-asserted-optional-chain": State.ON,
|
|
89
89
|
// "ts/no-non-null-assertion": State.OFF /* preference */,
|
|
@@ -134,8 +134,23 @@ export default {
|
|
|
134
134
|
"ts/prefer-includes": State.ON,
|
|
135
135
|
// "ts/prefer-literal-enum-member": State.OFF /* preference - idk why this would be considering, maybe we should ban all variable scopes */,
|
|
136
136
|
"ts/prefer-namespace-keyword": State.ON,
|
|
137
|
-
"ts/prefer-nullish-coalescing":
|
|
138
|
-
|
|
137
|
+
"ts/prefer-nullish-coalescing": [
|
|
138
|
+
State.ON,
|
|
139
|
+
{
|
|
140
|
+
ignoreMixedLogicalExpressions: true,
|
|
141
|
+
ignorePrimitives: true,
|
|
142
|
+
|
|
143
|
+
},
|
|
144
|
+
] /* requires tsconfig: strictNullChecks */,
|
|
145
|
+
"ts/prefer-optional-chain": [
|
|
146
|
+
State.ON,
|
|
147
|
+
{
|
|
148
|
+
checkBigInt: false,
|
|
149
|
+
checkBoolean: false,
|
|
150
|
+
checkNumber: false,
|
|
151
|
+
checkString: false,
|
|
152
|
+
},
|
|
153
|
+
],
|
|
139
154
|
"ts/prefer-readonly": State.ON,
|
|
140
155
|
// "ts/prefer-readonly-parameter-types": State.OFF /* preference - WAY too restrictive */,
|
|
141
156
|
"ts/prefer-reduce-type-parameter": State.ON,
|
|
@@ -167,8 +182,9 @@ export default {
|
|
|
167
182
|
"ts/strict-boolean-expressions": [
|
|
168
183
|
State.ON,
|
|
169
184
|
{
|
|
170
|
-
|
|
171
|
-
|
|
185
|
+
allowNullableBoolean: true,
|
|
186
|
+
allowNullableNumber: true,
|
|
187
|
+
allowNullableString: true,
|
|
172
188
|
},
|
|
173
189
|
], /* requires tsconfig: strictNullChecks */
|
|
174
190
|
"ts/switch-exhaustiveness-check": [
|