eslint 9.27.0 → 9.28.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.
@@ -619,7 +619,7 @@ export interface ESLintRules extends Linter.RulesRecord {
619
619
  * @see https://eslint.org/docs/latest/rules/curly
620
620
  */
621
621
  curly: Linter.RuleEntry<
622
- ["all" | "multi" | "multi-line" | "multi-or-nest" | "consistent"]
622
+ ["all"] | ["multi" | "multi-line" | "multi-or-nest", "consistent"?]
623
623
  >;
624
624
 
625
625
  /**
@@ -807,6 +807,10 @@ export interface ESLintRules extends Linter.RulesRecord {
807
807
  * @default false
808
808
  */
809
809
  allowArrowFunctions: boolean;
810
+ /**
811
+ * @default false
812
+ */
813
+ allowTypeAnnotation: boolean;
810
814
  overrides: {
811
815
  namedExports: "declaration" | "expression" | "ignore";
812
816
  };
@@ -2854,6 +2858,22 @@ export interface ESLintRules extends Linter.RulesRecord {
2854
2858
  * @default false
2855
2859
  */
2856
2860
  detectObjects: boolean;
2861
+ /**
2862
+ * @default false
2863
+ */
2864
+ ignoreEnums: boolean;
2865
+ /**
2866
+ * @default false
2867
+ */
2868
+ ignoreNumericLiteralTypes: boolean;
2869
+ /**
2870
+ * @default false
2871
+ */
2872
+ ignoreReadonlyClassProperties: boolean;
2873
+ /**
2874
+ * @default false
2875
+ */
2876
+ ignoreTypeIndexes: boolean;
2857
2877
  }>,
2858
2878
  ]
2859
2879
  >;
@@ -3562,13 +3582,26 @@ export interface ESLintRules extends Linter.RulesRecord {
3562
3582
  /**
3563
3583
  * @default 'functions'
3564
3584
  */
3565
- hoist: "functions" | "all" | "never";
3585
+ hoist:
3586
+ | "functions"
3587
+ | "all"
3588
+ | "never"
3589
+ | "types"
3590
+ | "functions-and-types";
3566
3591
  allow: string[];
3567
3592
  /**
3568
3593
  * @since 8.10.0
3569
3594
  * @default false
3570
3595
  */
3571
3596
  ignoreOnInitialization: boolean;
3597
+ /**
3598
+ * @default true
3599
+ */
3600
+ ignoreTypeValueShadow: boolean;
3601
+ /**
3602
+ * @default true
3603
+ */
3604
+ ignoreFunctionTypeParameterNameValueShadow: boolean;
3572
3605
  }>,
3573
3606
  ]
3574
3607
  >;
@@ -4057,6 +4090,18 @@ export interface ESLintRules extends Linter.RulesRecord {
4057
4090
  * @default false
4058
4091
  */
4059
4092
  allowNamedExports: boolean;
4093
+ /**
4094
+ * @default true
4095
+ */
4096
+ enums: boolean;
4097
+ /**
4098
+ * @default true
4099
+ */
4100
+ typedefs: boolean;
4101
+ /**
4102
+ * @default true
4103
+ */
4104
+ ignoreTypeReferences: boolean;
4060
4105
  }>
4061
4106
  | "nofunc",
4062
4107
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "9.27.0",
3
+ "version": "9.28.0",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "type": "commonjs",
@@ -110,7 +110,7 @@
110
110
  "@eslint/config-helpers": "^0.2.1",
111
111
  "@eslint/core": "^0.14.0",
112
112
  "@eslint/eslintrc": "^3.3.1",
113
- "@eslint/js": "9.27.0",
113
+ "@eslint/js": "9.28.0",
114
114
  "@eslint/plugin-kit": "^0.3.1",
115
115
  "@humanfs/node": "^0.16.6",
116
116
  "@humanwhocodes/module-importer": "^1.0.1",
@@ -170,10 +170,12 @@
170
170
  "fast-glob": "^3.2.11",
171
171
  "fs-teardown": "^0.1.3",
172
172
  "glob": "^10.0.0",
173
- "globals": "^15.0.0",
173
+ "globals": "^16.2.0",
174
174
  "got": "^11.8.3",
175
175
  "gray-matter": "^4.0.3",
176
- "jiti": "^2.1.0",
176
+ "jiti": "^2.2.0",
177
+ "jiti-v2.0": "npm:jiti@2.0.x",
178
+ "jiti-v2.1": "npm:jiti@2.1.x",
177
179
  "knip": "^5.32.0",
178
180
  "lint-staged": "^11.0.0",
179
181
  "load-perf": "^0.2.0",
@@ -195,7 +197,7 @@
195
197
  "recast": "^0.23.0",
196
198
  "regenerator-runtime": "^0.14.0",
197
199
  "semver": "^7.5.3",
198
- "shelljs": "^0.9.0",
200
+ "shelljs": "^0.10.0",
199
201
  "sinon": "^11.0.0",
200
202
  "typescript": "^5.3.3",
201
203
  "webpack": "^5.23.0",