eslint 9.11.0 → 9.11.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.
@@ -803,7 +803,17 @@ export interface BestPractices extends Linter.RulesRecord {
|
|
803
803
|
* @since 0.5.1
|
804
804
|
* @see https://eslint.org/docs/rules/no-sequences
|
805
805
|
*/
|
806
|
-
"no-sequences": Linter.RuleEntry<
|
806
|
+
"no-sequences": Linter.RuleEntry<
|
807
|
+
[
|
808
|
+
Partial<{
|
809
|
+
/**
|
810
|
+
* @since 7.23.0
|
811
|
+
* @default true
|
812
|
+
*/
|
813
|
+
allowInParentheses: boolean;
|
814
|
+
}>,
|
815
|
+
]
|
816
|
+
>;
|
807
817
|
|
808
818
|
/**
|
809
819
|
* Rule to disallow throwing literals as exceptions.
|
@@ -842,6 +852,11 @@ export interface BestPractices extends Linter.RulesRecord {
|
|
842
852
|
* @default false
|
843
853
|
*/
|
844
854
|
allowTaggedTemplates: boolean;
|
855
|
+
/**
|
856
|
+
* @since 7.20.0
|
857
|
+
* @default false
|
858
|
+
*/
|
859
|
+
enforceForJSX: boolean;
|
845
860
|
}>,
|
846
861
|
]
|
847
862
|
>;
|
@@ -552,7 +552,17 @@ export interface PossibleErrors extends Linter.RulesRecord {
|
|
552
552
|
* @since 3.3.0
|
553
553
|
* @see https://eslint.org/docs/rules/no-unsafe-negation
|
554
554
|
*/
|
555
|
-
"no-unsafe-negation": Linter.RuleEntry<
|
555
|
+
"no-unsafe-negation": Linter.RuleEntry<
|
556
|
+
[
|
557
|
+
Partial<{
|
558
|
+
/**
|
559
|
+
* @since 6.6.0
|
560
|
+
* @default false
|
561
|
+
*/
|
562
|
+
enforceForOrderingRelations: boolean;
|
563
|
+
}>,
|
564
|
+
]
|
565
|
+
>;
|
556
566
|
|
557
567
|
/**
|
558
568
|
* Disallow use of optional chaining in contexts where the `undefined` value is not allowed.
|
@@ -583,7 +593,17 @@ export interface PossibleErrors extends Linter.RulesRecord {
|
|
583
593
|
* @since 5.3.0
|
584
594
|
* @see https://eslint.org/docs/rules/require-atomic-updates
|
585
595
|
*/
|
586
|
-
"require-atomic-updates": Linter.RuleEntry<
|
596
|
+
"require-atomic-updates": Linter.RuleEntry<
|
597
|
+
[
|
598
|
+
Partial<{
|
599
|
+
/**
|
600
|
+
* @since 8.3.0
|
601
|
+
* @default false
|
602
|
+
*/
|
603
|
+
allowProperties: boolean;
|
604
|
+
}>,
|
605
|
+
]
|
606
|
+
>;
|
587
607
|
|
588
608
|
/**
|
589
609
|
* Rule to require calls to `isNaN()` when checking for `NaN`.
|
@@ -1385,10 +1385,35 @@ export interface StylisticIssues extends Linter.RulesRecord {
|
|
1385
1385
|
* @default false
|
1386
1386
|
*/
|
1387
1387
|
allowAfterSuper: boolean;
|
1388
|
+
/**
|
1389
|
+
* @since 6.7.0
|
1390
|
+
* @default false
|
1391
|
+
*/
|
1392
|
+
allowAfterThisConstructor: boolean;
|
1388
1393
|
/**
|
1389
1394
|
* @default false
|
1390
1395
|
*/
|
1391
1396
|
enforceInMethodNames: boolean;
|
1397
|
+
/**
|
1398
|
+
* @since 8.15.0
|
1399
|
+
* @default false
|
1400
|
+
*/
|
1401
|
+
enforceInClassFields: boolean;
|
1402
|
+
/**
|
1403
|
+
* @since 8.31.0
|
1404
|
+
* @default true
|
1405
|
+
*/
|
1406
|
+
allowInArrayDestructuring: boolean;
|
1407
|
+
/**
|
1408
|
+
* @since 8.31.0
|
1409
|
+
* @default true
|
1410
|
+
*/
|
1411
|
+
allowInObjectDestructuring: boolean;
|
1412
|
+
/**
|
1413
|
+
* @since 7.7.0
|
1414
|
+
* @default true
|
1415
|
+
*/
|
1416
|
+
allowFunctionParams: boolean;
|
1392
1417
|
}>,
|
1393
1418
|
]
|
1394
1419
|
>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint",
|
3
|
-
"version": "9.11.
|
3
|
+
"version": "9.11.1",
|
4
4
|
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
|
5
5
|
"description": "An AST-based pattern checker for JavaScript.",
|
6
6
|
"bin": {
|
@@ -85,12 +85,15 @@
|
|
85
85
|
"@eslint-community/eslint-utils": "^4.2.0",
|
86
86
|
"@eslint-community/regexpp": "^4.11.0",
|
87
87
|
"@eslint/config-array": "^0.18.0",
|
88
|
+
"@eslint/core": "^0.6.0",
|
88
89
|
"@eslint/eslintrc": "^3.1.0",
|
89
|
-
"@eslint/js": "9.11.
|
90
|
+
"@eslint/js": "9.11.1",
|
90
91
|
"@eslint/plugin-kit": "^0.2.0",
|
91
92
|
"@humanwhocodes/module-importer": "^1.0.1",
|
92
93
|
"@humanwhocodes/retry": "^0.3.0",
|
93
94
|
"@nodelib/fs.walk": "^1.2.8",
|
95
|
+
"@types/estree": "^1.0.6",
|
96
|
+
"@types/json-schema": "^7.0.15",
|
94
97
|
"ajv": "^6.12.4",
|
95
98
|
"chalk": "^4.0.0",
|
96
99
|
"cross-spawn": "^7.0.2",
|
@@ -120,11 +123,8 @@
|
|
120
123
|
"devDependencies": {
|
121
124
|
"@babel/core": "^7.4.3",
|
122
125
|
"@babel/preset-env": "^7.4.3",
|
123
|
-
"@eslint/core": "^0.6.0",
|
124
126
|
"@eslint/json": "^0.4.0",
|
125
127
|
"@trunkio/launcher": "^1.3.0",
|
126
|
-
"@types/estree": "^1.0.5",
|
127
|
-
"@types/json-schema": "^7.0.15",
|
128
128
|
"@types/node": "^20.11.5",
|
129
129
|
"@typescript-eslint/parser": "^8.4.0",
|
130
130
|
"@wdio/browser-runner": "^9.0.5",
|