@storm-software/eslint 0.126.0 → 0.126.1
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/preset.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
2
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
3
|
-
import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-
|
|
3
|
+
import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-CadFhnVH.js';
|
|
4
4
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
5
5
|
import '@stylistic/eslint-plugin';
|
|
6
6
|
import '@typescript-eslint/parser';
|
package/dist/preset.js
CHANGED
|
@@ -202,15 +202,41 @@ async function stylistic(options = {}) {
|
|
|
202
202
|
"error",
|
|
203
203
|
lineEndings
|
|
204
204
|
],
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
205
|
+
"style/comma-dangle": [
|
|
206
|
+
"error",
|
|
207
|
+
"never"
|
|
208
|
+
],
|
|
209
|
+
"style/comma-style": [
|
|
210
|
+
"error",
|
|
211
|
+
"last"
|
|
212
|
+
],
|
|
213
|
+
"style/quotes": [
|
|
214
|
+
"error",
|
|
215
|
+
quotes
|
|
216
|
+
],
|
|
217
|
+
"style/semi": [
|
|
218
|
+
"error",
|
|
219
|
+
semi ? "always" : "never"
|
|
220
|
+
],
|
|
221
|
+
"style/indent": [
|
|
222
|
+
"error",
|
|
223
|
+
indent,
|
|
224
|
+
{
|
|
225
|
+
SwitchCase: 1
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"style/operator-linebreak": [
|
|
229
|
+
"error",
|
|
230
|
+
"after"
|
|
231
|
+
],
|
|
232
|
+
"style/jsx-indent": [
|
|
233
|
+
"error",
|
|
234
|
+
indent
|
|
235
|
+
],
|
|
236
|
+
"style/jsx-quotes": [
|
|
237
|
+
"error",
|
|
238
|
+
quotes === "single" ? "prefer-single" : "prefer-double"
|
|
239
|
+
],
|
|
214
240
|
...overrides
|
|
215
241
|
}
|
|
216
242
|
}
|
|
@@ -1909,7 +1935,7 @@ async function javascript(options = {}) {
|
|
|
1909
1935
|
}
|
|
1910
1936
|
],
|
|
1911
1937
|
"prefer-const": [
|
|
1912
|
-
|
|
1938
|
+
"error",
|
|
1913
1939
|
{
|
|
1914
1940
|
destructuring: "all",
|
|
1915
1941
|
ignoreReadBeforeAssign: true
|
|
@@ -1926,7 +1952,7 @@ async function javascript(options = {}) {
|
|
|
1926
1952
|
"prefer-spread": "error",
|
|
1927
1953
|
"prefer-template": "error",
|
|
1928
1954
|
"symbol-description": "error",
|
|
1929
|
-
"unused-imports/no-unused-imports":
|
|
1955
|
+
"unused-imports/no-unused-imports": "error",
|
|
1930
1956
|
"unused-imports/no-unused-vars": [
|
|
1931
1957
|
"error",
|
|
1932
1958
|
{
|
|
@@ -3291,7 +3317,9 @@ async function typescript(options = {}) {
|
|
|
3291
3317
|
"error",
|
|
3292
3318
|
{
|
|
3293
3319
|
allowNullableBoolean: true,
|
|
3294
|
-
allowNullableObject: true
|
|
3320
|
+
allowNullableObject: true,
|
|
3321
|
+
allowNullableString: true,
|
|
3322
|
+
allowNullableEnum: true
|
|
3295
3323
|
}
|
|
3296
3324
|
],
|
|
3297
3325
|
"ts/switch-exhaustiveness-check": "error",
|
|
@@ -3347,9 +3375,14 @@ async function typescript(options = {}) {
|
|
|
3347
3375
|
files,
|
|
3348
3376
|
name: "storm/typescript/rules",
|
|
3349
3377
|
rules: {
|
|
3350
|
-
...renameRules(
|
|
3351
|
-
|
|
3352
|
-
|
|
3378
|
+
...renameRules(
|
|
3379
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3380
|
+
pluginTs.configs["eslint-recommended"]?.overrides?.[0]?.rules,
|
|
3381
|
+
{
|
|
3382
|
+
"@typescript-eslint": "ts"
|
|
3383
|
+
}
|
|
3384
|
+
),
|
|
3385
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3353
3386
|
...renameRules(pluginTs.configs.strict?.rules, {
|
|
3354
3387
|
"@typescript-eslint": "ts"
|
|
3355
3388
|
}),
|
|
@@ -3444,6 +3477,7 @@ async function typescript(options = {}) {
|
|
|
3444
3477
|
"ts/no-import-type-side-effects": "error",
|
|
3445
3478
|
"ts/no-invalid-void-type": "off",
|
|
3446
3479
|
"ts/no-non-null-assertion": "off",
|
|
3480
|
+
"ts/no-non-null-asserted-optional-chain": "error",
|
|
3447
3481
|
"ts/no-redeclare": [
|
|
3448
3482
|
"error",
|
|
3449
3483
|
{
|
|
@@ -3887,9 +3921,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
3887
3921
|
}
|
|
3888
3922
|
if (isInEditor) {
|
|
3889
3923
|
composer = composer.disableRulesFix([
|
|
3890
|
-
"
|
|
3891
|
-
"test/no-only-tests",
|
|
3892
|
-
"prefer-const"
|
|
3924
|
+
"test/no-only-tests"
|
|
3893
3925
|
], {
|
|
3894
3926
|
builtinRules: /* @__PURE__ */ __name(() => import([
|
|
3895
3927
|
"eslint",
|
|
@@ -15209,6 +15209,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
15209
15209
|
* Enable stylistic rules.
|
|
15210
15210
|
*
|
|
15211
15211
|
* @see https://eslint.style/
|
|
15212
|
+
*
|
|
15212
15213
|
* @default true
|
|
15213
15214
|
*/
|
|
15214
15215
|
stylistic?: boolean | (StylisticConfig & OptionsOverrides);
|
package/dist/utils/combine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Awaitable } from 'eslint-flat-config-utils';
|
|
2
|
-
import { T as TypedFlatConfigItem } from '../types-
|
|
2
|
+
import { T as TypedFlatConfigItem } from '../types-CadFhnVH.js';
|
|
3
3
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
4
4
|
import '@stylistic/eslint-plugin';
|
|
5
5
|
import '@typescript-eslint/parser';
|
package/package.json
CHANGED