@rebeccastevens/eslint-config 3.9.6 → 3.9.7
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +47 -20
- package/dist/index.d.ts +47 -20
- package/dist/index.js +1 -1
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
3
3
|
|
|
4
|
+
## [3.9.7](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v3.9.6...v3.9.7) (2026-03-08)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* replace unicorn/no-array-push-push with unicorn/prefer-single-call ([8095c31](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/8095c310d364a6dfc4694423093c26b810c68892))
|
|
10
|
+
|
|
4
11
|
## [3.9.6](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v3.9.5...v3.9.6) (2026-03-02)
|
|
5
12
|
|
|
6
13
|
|
package/dist/index.cjs
CHANGED
|
@@ -3264,7 +3264,6 @@ async function unicorn() {
|
|
|
3264
3264
|
// "unicorn/no-anonymous-default-export": "error", // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2302
|
|
3265
3265
|
"unicorn/no-array-for-each": "error",
|
|
3266
3266
|
"unicorn/no-array-method-this-argument": "error",
|
|
3267
|
-
"unicorn/no-array-push-push": "error",
|
|
3268
3267
|
"unicorn/no-await-expression-member": "error",
|
|
3269
3268
|
// "unicorn/no-await-in-promise-methods": "error", // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2302
|
|
3270
3269
|
"unicorn/no-console-spaces": "error",
|
|
@@ -3337,6 +3336,7 @@ async function unicorn() {
|
|
|
3337
3336
|
"unicorn/prefer-regexp-test": "error",
|
|
3338
3337
|
"unicorn/prefer-set-has": "error",
|
|
3339
3338
|
"unicorn/prefer-set-size": "error",
|
|
3339
|
+
"unicorn/prefer-single-call": "error",
|
|
3340
3340
|
"unicorn/prefer-spread": "error",
|
|
3341
3341
|
"unicorn/prefer-string-replace-all": "error",
|
|
3342
3342
|
"unicorn/prefer-string-slice": "error",
|
package/dist/index.d.cts
CHANGED
|
@@ -1331,106 +1331,106 @@ interface RuleOptions {
|
|
|
1331
1331
|
"format/prettier"?: Linter.RuleEntry<FormatPrettier>;
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Enforce functional parameters.
|
|
1334
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1334
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/functional-parameters.md
|
|
1335
1335
|
*/
|
|
1336
1336
|
"functional/functional-parameters"?: Linter.RuleEntry<FunctionalFunctionalParameters>;
|
|
1337
1337
|
/**
|
|
1338
1338
|
* Enforce treating data as immutable.
|
|
1339
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1339
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/immutable-data.md
|
|
1340
1340
|
*/
|
|
1341
1341
|
"functional/immutable-data"?: Linter.RuleEntry<FunctionalImmutableData>;
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Disallow inheritance in classes.
|
|
1344
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1344
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-class-inheritance.md
|
|
1345
1345
|
*/
|
|
1346
1346
|
"functional/no-class-inheritance"?: Linter.RuleEntry<FunctionalNoClassInheritance>;
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Disallow classes.
|
|
1349
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1349
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-classes.md
|
|
1350
1350
|
*/
|
|
1351
1351
|
"functional/no-classes"?: Linter.RuleEntry<FunctionalNoClasses>;
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Disallow conditional statements.
|
|
1354
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1354
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-conditional-statements.md
|
|
1355
1355
|
*/
|
|
1356
1356
|
"functional/no-conditional-statements"?: Linter.RuleEntry<FunctionalNoConditionalStatements>;
|
|
1357
1357
|
/**
|
|
1358
1358
|
* Disallow expression statements.
|
|
1359
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1359
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-expression-statements.md
|
|
1360
1360
|
*/
|
|
1361
1361
|
"functional/no-expression-statements"?: Linter.RuleEntry<FunctionalNoExpressionStatements>;
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Disallow mutable variables.
|
|
1364
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1364
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-let.md
|
|
1365
1365
|
*/
|
|
1366
1366
|
"functional/no-let"?: Linter.RuleEntry<FunctionalNoLet>;
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Disallow imperative loops.
|
|
1369
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1369
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-loop-statements.md
|
|
1370
1370
|
*/
|
|
1371
1371
|
"functional/no-loop-statements"?: Linter.RuleEntry<[
|
|
1372
1372
|
]>;
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Restrict types so that only members of the same kind are allowed in them.
|
|
1375
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1375
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-mixed-types.md
|
|
1376
1376
|
*/
|
|
1377
1377
|
"functional/no-mixed-types"?: Linter.RuleEntry<FunctionalNoMixedTypes>;
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Disallow rejecting promises.
|
|
1380
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1380
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-promise-reject.md
|
|
1381
1381
|
*/
|
|
1382
1382
|
"functional/no-promise-reject"?: Linter.RuleEntry<[
|
|
1383
1383
|
]>;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Disallow functions that don't return anything.
|
|
1386
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1386
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-return-void.md
|
|
1387
1387
|
*/
|
|
1388
1388
|
"functional/no-return-void"?: Linter.RuleEntry<FunctionalNoReturnVoid>;
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Disallow this access.
|
|
1391
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1391
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-this-expressions.md
|
|
1392
1392
|
*/
|
|
1393
1393
|
"functional/no-this-expressions"?: Linter.RuleEntry<[
|
|
1394
1394
|
]>;
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Disallow throwing exceptions.
|
|
1397
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1397
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-throw-statements.md
|
|
1398
1398
|
*/
|
|
1399
1399
|
"functional/no-throw-statements"?: Linter.RuleEntry<FunctionalNoThrowStatements>;
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Disallow try-catch[-finally] and try-finally patterns.
|
|
1402
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1402
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-try-statements.md
|
|
1403
1403
|
*/
|
|
1404
1404
|
"functional/no-try-statements"?: Linter.RuleEntry<FunctionalNoTryStatements>;
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Require function parameters to be typed as certain immutability
|
|
1407
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1407
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-immutable-types.md
|
|
1408
1408
|
*/
|
|
1409
1409
|
"functional/prefer-immutable-types"?: Linter.RuleEntry<FunctionalPreferImmutableTypes>;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Prefer property signatures over method signatures.
|
|
1412
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1412
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-property-signatures.md
|
|
1413
1413
|
*/
|
|
1414
1414
|
"functional/prefer-property-signatures"?: Linter.RuleEntry<FunctionalPreferPropertySignatures>;
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Prefer readonly types over mutable types.
|
|
1417
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1417
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-readonly-type.md
|
|
1418
1418
|
* @deprecated
|
|
1419
1419
|
*/
|
|
1420
1420
|
"functional/prefer-readonly-type"?: Linter.RuleEntry<FunctionalPreferReadonlyType>;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Replaces `x => f(x)` with just `f`.
|
|
1423
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1423
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-tacit.md
|
|
1424
1424
|
*/
|
|
1425
1425
|
"functional/prefer-tacit"?: Linter.RuleEntry<FunctionalPreferTacit>;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Require consistently using either `readonly` keywords or `Readonly<T>`
|
|
1428
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1428
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/readonly-type.md
|
|
1429
1429
|
*/
|
|
1430
1430
|
"functional/readonly-type"?: Linter.RuleEntry<FunctionalReadonlyType>;
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Enforce the immutability of types based on patterns.
|
|
1433
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1433
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/type-declaration-immutability.md
|
|
1434
1434
|
*/
|
|
1435
1435
|
"functional/type-declaration-immutability"?: Linter.RuleEntry<FunctionalTypeDeclarationImmutability>;
|
|
1436
1436
|
/**
|
|
@@ -5753,11 +5753,21 @@ interface RuleOptions {
|
|
|
5753
5753
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5754
5754
|
*/
|
|
5755
5755
|
"toml/indent"?: Linter.RuleEntry<TomlIndent>;
|
|
5756
|
+
/**
|
|
5757
|
+
* enforce linebreaks after opening and before closing braces
|
|
5758
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5759
|
+
*/
|
|
5760
|
+
"toml/inline-table-curly-newline"?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
5756
5761
|
/**
|
|
5757
5762
|
* enforce consistent spacing inside braces
|
|
5758
5763
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5759
5764
|
*/
|
|
5760
5765
|
"toml/inline-table-curly-spacing"?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
5766
|
+
/**
|
|
5767
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5768
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5769
|
+
*/
|
|
5770
|
+
"toml/inline-table-key-value-newline"?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
5761
5771
|
/**
|
|
5762
5772
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5763
5773
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -13137,6 +13147,7 @@ type JsoncObjectCurlySpacing = [
|
|
|
13137
13147
|
{
|
|
13138
13148
|
arraysInObjects?: boolean;
|
|
13139
13149
|
objectsInObjects?: boolean;
|
|
13150
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
13140
13151
|
}
|
|
13141
13152
|
];
|
|
13142
13153
|
type JsoncObjectPropertyNewline = [
|
|
@@ -16346,6 +16357,14 @@ type TomlIndent = [
|
|
|
16346
16357
|
keyValuePairs?: number;
|
|
16347
16358
|
}
|
|
16348
16359
|
];
|
|
16360
|
+
type TomlInlineTableCurlyNewline = [
|
|
16361
|
+
] | [
|
|
16362
|
+
(("always" | "never") | {
|
|
16363
|
+
multiline?: boolean;
|
|
16364
|
+
minProperties?: number;
|
|
16365
|
+
consistent?: boolean;
|
|
16366
|
+
})
|
|
16367
|
+
];
|
|
16349
16368
|
type TomlInlineTableCurlySpacing = [
|
|
16350
16369
|
] | [
|
|
16351
16370
|
("always" | "never")
|
|
@@ -16354,6 +16373,13 @@ type TomlInlineTableCurlySpacing = [
|
|
|
16354
16373
|
{
|
|
16355
16374
|
arraysInObjects?: boolean;
|
|
16356
16375
|
objectsInObjects?: boolean;
|
|
16376
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
16377
|
+
}
|
|
16378
|
+
];
|
|
16379
|
+
type TomlInlineTableKeyValueNewline = [
|
|
16380
|
+
] | [
|
|
16381
|
+
{
|
|
16382
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
16357
16383
|
}
|
|
16358
16384
|
];
|
|
16359
16385
|
type TomlKeySpacing = [
|
|
@@ -18583,6 +18609,7 @@ type YmlFlowMappingCurlySpacing = [
|
|
|
18583
18609
|
{
|
|
18584
18610
|
arraysInObjects?: boolean;
|
|
18585
18611
|
objectsInObjects?: boolean;
|
|
18612
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
18586
18613
|
}
|
|
18587
18614
|
];
|
|
18588
18615
|
type YmlFlowSequenceBracketNewline = [
|
package/dist/index.d.ts
CHANGED
|
@@ -1331,106 +1331,106 @@ interface RuleOptions {
|
|
|
1331
1331
|
"format/prettier"?: Linter.RuleEntry<FormatPrettier>;
|
|
1332
1332
|
/**
|
|
1333
1333
|
* Enforce functional parameters.
|
|
1334
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1334
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/functional-parameters.md
|
|
1335
1335
|
*/
|
|
1336
1336
|
"functional/functional-parameters"?: Linter.RuleEntry<FunctionalFunctionalParameters>;
|
|
1337
1337
|
/**
|
|
1338
1338
|
* Enforce treating data as immutable.
|
|
1339
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1339
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/immutable-data.md
|
|
1340
1340
|
*/
|
|
1341
1341
|
"functional/immutable-data"?: Linter.RuleEntry<FunctionalImmutableData>;
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Disallow inheritance in classes.
|
|
1344
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1344
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-class-inheritance.md
|
|
1345
1345
|
*/
|
|
1346
1346
|
"functional/no-class-inheritance"?: Linter.RuleEntry<FunctionalNoClassInheritance>;
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Disallow classes.
|
|
1349
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1349
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-classes.md
|
|
1350
1350
|
*/
|
|
1351
1351
|
"functional/no-classes"?: Linter.RuleEntry<FunctionalNoClasses>;
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Disallow conditional statements.
|
|
1354
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1354
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-conditional-statements.md
|
|
1355
1355
|
*/
|
|
1356
1356
|
"functional/no-conditional-statements"?: Linter.RuleEntry<FunctionalNoConditionalStatements>;
|
|
1357
1357
|
/**
|
|
1358
1358
|
* Disallow expression statements.
|
|
1359
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1359
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-expression-statements.md
|
|
1360
1360
|
*/
|
|
1361
1361
|
"functional/no-expression-statements"?: Linter.RuleEntry<FunctionalNoExpressionStatements>;
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Disallow mutable variables.
|
|
1364
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1364
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-let.md
|
|
1365
1365
|
*/
|
|
1366
1366
|
"functional/no-let"?: Linter.RuleEntry<FunctionalNoLet>;
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Disallow imperative loops.
|
|
1369
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1369
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-loop-statements.md
|
|
1370
1370
|
*/
|
|
1371
1371
|
"functional/no-loop-statements"?: Linter.RuleEntry<[
|
|
1372
1372
|
]>;
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Restrict types so that only members of the same kind are allowed in them.
|
|
1375
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1375
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-mixed-types.md
|
|
1376
1376
|
*/
|
|
1377
1377
|
"functional/no-mixed-types"?: Linter.RuleEntry<FunctionalNoMixedTypes>;
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Disallow rejecting promises.
|
|
1380
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1380
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-promise-reject.md
|
|
1381
1381
|
*/
|
|
1382
1382
|
"functional/no-promise-reject"?: Linter.RuleEntry<[
|
|
1383
1383
|
]>;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Disallow functions that don't return anything.
|
|
1386
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1386
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-return-void.md
|
|
1387
1387
|
*/
|
|
1388
1388
|
"functional/no-return-void"?: Linter.RuleEntry<FunctionalNoReturnVoid>;
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Disallow this access.
|
|
1391
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1391
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-this-expressions.md
|
|
1392
1392
|
*/
|
|
1393
1393
|
"functional/no-this-expressions"?: Linter.RuleEntry<[
|
|
1394
1394
|
]>;
|
|
1395
1395
|
/**
|
|
1396
1396
|
* Disallow throwing exceptions.
|
|
1397
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1397
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-throw-statements.md
|
|
1398
1398
|
*/
|
|
1399
1399
|
"functional/no-throw-statements"?: Linter.RuleEntry<FunctionalNoThrowStatements>;
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Disallow try-catch[-finally] and try-finally patterns.
|
|
1402
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1402
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/no-try-statements.md
|
|
1403
1403
|
*/
|
|
1404
1404
|
"functional/no-try-statements"?: Linter.RuleEntry<FunctionalNoTryStatements>;
|
|
1405
1405
|
/**
|
|
1406
1406
|
* Require function parameters to be typed as certain immutability
|
|
1407
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1407
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-immutable-types.md
|
|
1408
1408
|
*/
|
|
1409
1409
|
"functional/prefer-immutable-types"?: Linter.RuleEntry<FunctionalPreferImmutableTypes>;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Prefer property signatures over method signatures.
|
|
1412
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1412
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-property-signatures.md
|
|
1413
1413
|
*/
|
|
1414
1414
|
"functional/prefer-property-signatures"?: Linter.RuleEntry<FunctionalPreferPropertySignatures>;
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Prefer readonly types over mutable types.
|
|
1417
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1417
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-readonly-type.md
|
|
1418
1418
|
* @deprecated
|
|
1419
1419
|
*/
|
|
1420
1420
|
"functional/prefer-readonly-type"?: Linter.RuleEntry<FunctionalPreferReadonlyType>;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Replaces `x => f(x)` with just `f`.
|
|
1423
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1423
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/prefer-tacit.md
|
|
1424
1424
|
*/
|
|
1425
1425
|
"functional/prefer-tacit"?: Linter.RuleEntry<FunctionalPreferTacit>;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Require consistently using either `readonly` keywords or `Readonly<T>`
|
|
1428
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1428
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/readonly-type.md
|
|
1429
1429
|
*/
|
|
1430
1430
|
"functional/readonly-type"?: Linter.RuleEntry<FunctionalReadonlyType>;
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Enforce the immutability of types based on patterns.
|
|
1433
|
-
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.
|
|
1433
|
+
* @see https://github.com/eslint-functional/eslint-plugin-functional/blob/v9.0.4/docs/rules/type-declaration-immutability.md
|
|
1434
1434
|
*/
|
|
1435
1435
|
"functional/type-declaration-immutability"?: Linter.RuleEntry<FunctionalTypeDeclarationImmutability>;
|
|
1436
1436
|
/**
|
|
@@ -5753,11 +5753,21 @@ interface RuleOptions {
|
|
|
5753
5753
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5754
5754
|
*/
|
|
5755
5755
|
"toml/indent"?: Linter.RuleEntry<TomlIndent>;
|
|
5756
|
+
/**
|
|
5757
|
+
* enforce linebreaks after opening and before closing braces
|
|
5758
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5759
|
+
*/
|
|
5760
|
+
"toml/inline-table-curly-newline"?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
5756
5761
|
/**
|
|
5757
5762
|
* enforce consistent spacing inside braces
|
|
5758
5763
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5759
5764
|
*/
|
|
5760
5765
|
"toml/inline-table-curly-spacing"?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
5766
|
+
/**
|
|
5767
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5768
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5769
|
+
*/
|
|
5770
|
+
"toml/inline-table-key-value-newline"?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
5761
5771
|
/**
|
|
5762
5772
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5763
5773
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -13137,6 +13147,7 @@ type JsoncObjectCurlySpacing = [
|
|
|
13137
13147
|
{
|
|
13138
13148
|
arraysInObjects?: boolean;
|
|
13139
13149
|
objectsInObjects?: boolean;
|
|
13150
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
13140
13151
|
}
|
|
13141
13152
|
];
|
|
13142
13153
|
type JsoncObjectPropertyNewline = [
|
|
@@ -16346,6 +16357,14 @@ type TomlIndent = [
|
|
|
16346
16357
|
keyValuePairs?: number;
|
|
16347
16358
|
}
|
|
16348
16359
|
];
|
|
16360
|
+
type TomlInlineTableCurlyNewline = [
|
|
16361
|
+
] | [
|
|
16362
|
+
(("always" | "never") | {
|
|
16363
|
+
multiline?: boolean;
|
|
16364
|
+
minProperties?: number;
|
|
16365
|
+
consistent?: boolean;
|
|
16366
|
+
})
|
|
16367
|
+
];
|
|
16349
16368
|
type TomlInlineTableCurlySpacing = [
|
|
16350
16369
|
] | [
|
|
16351
16370
|
("always" | "never")
|
|
@@ -16354,6 +16373,13 @@ type TomlInlineTableCurlySpacing = [
|
|
|
16354
16373
|
{
|
|
16355
16374
|
arraysInObjects?: boolean;
|
|
16356
16375
|
objectsInObjects?: boolean;
|
|
16376
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
16377
|
+
}
|
|
16378
|
+
];
|
|
16379
|
+
type TomlInlineTableKeyValueNewline = [
|
|
16380
|
+
] | [
|
|
16381
|
+
{
|
|
16382
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
16357
16383
|
}
|
|
16358
16384
|
];
|
|
16359
16385
|
type TomlKeySpacing = [
|
|
@@ -18583,6 +18609,7 @@ type YmlFlowMappingCurlySpacing = [
|
|
|
18583
18609
|
{
|
|
18584
18610
|
arraysInObjects?: boolean;
|
|
18585
18611
|
objectsInObjects?: boolean;
|
|
18612
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
18586
18613
|
}
|
|
18587
18614
|
];
|
|
18588
18615
|
type YmlFlowSequenceBracketNewline = [
|
package/dist/index.js
CHANGED
|
@@ -3242,7 +3242,6 @@ async function unicorn() {
|
|
|
3242
3242
|
// "unicorn/no-anonymous-default-export": "error", // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2302
|
|
3243
3243
|
"unicorn/no-array-for-each": "error",
|
|
3244
3244
|
"unicorn/no-array-method-this-argument": "error",
|
|
3245
|
-
"unicorn/no-array-push-push": "error",
|
|
3246
3245
|
"unicorn/no-await-expression-member": "error",
|
|
3247
3246
|
// "unicorn/no-await-in-promise-methods": "error", // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2302
|
|
3248
3247
|
"unicorn/no-console-spaces": "error",
|
|
@@ -3315,6 +3314,7 @@ async function unicorn() {
|
|
|
3315
3314
|
"unicorn/prefer-regexp-test": "error",
|
|
3316
3315
|
"unicorn/prefer-set-has": "error",
|
|
3317
3316
|
"unicorn/prefer-set-size": "error",
|
|
3317
|
+
"unicorn/prefer-single-call": "error",
|
|
3318
3318
|
"unicorn/prefer-spread": "error",
|
|
3319
3319
|
"unicorn/prefer-string-replace-all": "error",
|
|
3320
3320
|
"unicorn/prefer-string-slice": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.7",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -79,34 +79,34 @@
|
|
|
79
79
|
"@eslint-react/eslint-plugin": "2.13.0",
|
|
80
80
|
"@eslint/compat": "2.0.2",
|
|
81
81
|
"@eslint/markdown": "7.5.1",
|
|
82
|
-
"@intlify/eslint-plugin-vue-i18n": "4.
|
|
82
|
+
"@intlify/eslint-plugin-vue-i18n": "4.3.0",
|
|
83
83
|
"@rollup/plugin-typescript": "12.3.0",
|
|
84
84
|
"@stylistic/eslint-plugin": "5.9.0",
|
|
85
85
|
"@stylistic/eslint-plugin-migrate": "4.4.1",
|
|
86
86
|
"@types/eslint": "9.6.1",
|
|
87
|
-
"@types/node": "25.3.
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "8.56.
|
|
89
|
-
"@typescript-eslint/parser": "8.56.
|
|
90
|
-
"@typescript-eslint/utils": "8.56.
|
|
91
|
-
"@unocss/eslint-plugin": "66.6.
|
|
87
|
+
"@types/node": "25.3.3",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
89
|
+
"@typescript-eslint/parser": "8.56.1",
|
|
90
|
+
"@typescript-eslint/utils": "8.56.1",
|
|
91
|
+
"@unocss/eslint-plugin": "66.6.3",
|
|
92
92
|
"@vitest/eslint-plugin": "1.6.9",
|
|
93
93
|
"baseline-browser-mapping": "2.10.0",
|
|
94
94
|
"commitizen": "4.3.1",
|
|
95
|
-
"cspell": "9.
|
|
95
|
+
"cspell": "9.7.0",
|
|
96
96
|
"cz-conventional-changelog": "3.3.0",
|
|
97
|
-
"eslint": "
|
|
97
|
+
"eslint": "10.0.2",
|
|
98
98
|
"eslint-config-prettier": "10.1.8",
|
|
99
99
|
"eslint-flat-config-utils": "3.0.1",
|
|
100
100
|
"eslint-formatting-reporter": "0.0.0",
|
|
101
101
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
102
102
|
"eslint-merge-processors": "2.0.0",
|
|
103
|
-
"eslint-plugin-better-tailwindcss": "4.3.
|
|
103
|
+
"eslint-plugin-better-tailwindcss": "4.3.1",
|
|
104
104
|
"eslint-plugin-format": "2.0.1",
|
|
105
|
-
"eslint-plugin-functional": "9.0.
|
|
105
|
+
"eslint-plugin-functional": "9.0.4",
|
|
106
106
|
"eslint-plugin-i18next": "6.1.3",
|
|
107
107
|
"eslint-plugin-import-x": "4.16.1",
|
|
108
|
-
"eslint-plugin-jsdoc": "62.7.
|
|
109
|
-
"eslint-plugin-jsonc": "3.
|
|
108
|
+
"eslint-plugin-jsdoc": "62.7.1",
|
|
109
|
+
"eslint-plugin-jsonc": "3.1.1",
|
|
110
110
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
111
111
|
"eslint-plugin-n": "17.24.0",
|
|
112
112
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
@@ -114,23 +114,23 @@
|
|
|
114
114
|
"eslint-plugin-prettier": "5.5.5",
|
|
115
115
|
"eslint-plugin-promise": "7.2.1",
|
|
116
116
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
117
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
117
|
+
"eslint-plugin-react-refresh": "0.5.2",
|
|
118
118
|
"eslint-plugin-regexp": "3.0.0",
|
|
119
119
|
"eslint-plugin-sonarjs": "4.0.0",
|
|
120
|
-
"eslint-plugin-toml": "1.
|
|
120
|
+
"eslint-plugin-toml": "1.3.0",
|
|
121
121
|
"eslint-plugin-unicorn": "63.0.0",
|
|
122
122
|
"eslint-plugin-vue": "10.8.0",
|
|
123
|
-
"eslint-plugin-yml": "3.
|
|
123
|
+
"eslint-plugin-yml": "3.3.0",
|
|
124
124
|
"eslint-processor-vue-blocks": "2.0.0",
|
|
125
125
|
"eslint-typegen": "2.3.1",
|
|
126
126
|
"husky": "9.1.7",
|
|
127
127
|
"jiti": "2.6.1",
|
|
128
128
|
"jsonc-eslint-parser": "3.1.0",
|
|
129
129
|
"knip": "5.85.0",
|
|
130
|
-
"lint-staged": "16.
|
|
130
|
+
"lint-staged": "16.3.1",
|
|
131
131
|
"markdownlint-cli2": "0.21.0",
|
|
132
132
|
"prettier": "3.8.1",
|
|
133
|
-
"publint": "0.3.
|
|
133
|
+
"publint": "0.3.18",
|
|
134
134
|
"rimraf": "6.1.3",
|
|
135
135
|
"rollup": "4.59.0",
|
|
136
136
|
"rollup-plugin-deassert": "1.3.0",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"optional": true
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
|
-
"packageManager": "pnpm@10.30.
|
|
315
|
+
"packageManager": "pnpm@10.30.3",
|
|
316
316
|
"engines": {
|
|
317
317
|
"node": ">=20.0.0"
|
|
318
318
|
},
|