eslint 10.0.2 → 10.0.3

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/README.md CHANGED
@@ -43,7 +43,13 @@ ESLint is a tool for identifying and reporting on patterns found in ECMAScript/J
43
43
 
44
44
  ## Installation and Usage
45
45
 
46
- Prerequisites: [Node.js](https://nodejs.org/) (`^20.19.0`, `^22.13.0`, or `>=24`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
46
+ ### Prerequisites
47
+
48
+ To use ESLint, you must have [Node.js](https://nodejs.org/) (`^20.19.0`, `^22.13.0`, or `>=24`) installed and built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
49
+
50
+ If you use ESLint's TypeScript type definitions, TypeScript 5.3 or later is required.
51
+
52
+ ### npm Installation
47
53
 
48
54
  You can install and configure ESLint using this command:
49
55
 
@@ -350,7 +356,7 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
350
356
 
351
357
  <h3>Platinum Sponsors</h3>
352
358
  <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a></p><h3>Gold Sponsors</h3>
353
- <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3>
359
+ <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a></p><h3>Silver Sponsors</h3>
354
360
  <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/d472863/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/2d6c3b6/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
355
361
  <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://opensource.sap.com"><img src="https://avatars.githubusercontent.com/u/2531208" alt="SAP" height="32"></a> <a href="https://www.crawljobs.com/"><img src="https://images.opencollective.com/crawljobs-poland/fa43a17/logo.png" alt="CrawlJobs" height="32"></a> <a href="https://depot.dev"><img src="https://images.opencollective.com/depot/39125a1/logo.png" alt="Depot" height="32"></a> <a href="https://www.n-ix.com/"><img src="https://images.opencollective.com/n-ix-ltd/575a7a5/logo.png" alt="N-iX Ltd" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="TestMu AI Open Source Office (Formerly LambdaTest)" height="32"></a></p>
356
362
  <h3>Technology Sponsors</h3>
@@ -138,7 +138,7 @@ module.exports = {
138
138
 
139
139
  messages: {
140
140
  unnecessaryAssignment:
141
- "This assigned value is not used in subsequent statements.",
141
+ "The value assigned to '{{name}}' is not used in subsequent statements.",
142
142
  },
143
143
  },
144
144
 
@@ -486,6 +486,7 @@ module.exports = {
486
486
  context.report({
487
487
  node: targetAssignment.identifier,
488
488
  messageId: "unnecessaryAssignment",
489
+ data: { name: targetAssignment.identifier.name },
489
490
  });
490
491
  }
491
492
 
@@ -6,8 +6,8 @@
6
6
  /**
7
7
  * Check whether a given character is a combining mark or not.
8
8
  * @param {number} codePoint The character code to check.
9
- * @returns {boolean} `true` if the character belongs to the category, any of `Mc`, `Me`, and `Mn`.
9
+ * @returns {boolean} `true` if the character has the General Category of Combining Mark (M), consisting of `Mc`, `Me`, and `Mn`.
10
10
  */
11
11
  module.exports = function isCombiningCharacter(codePoint) {
12
- return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint));
12
+ return /^\p{M}$/u.test(String.fromCodePoint(codePoint));
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "type": "commonjs",
@@ -108,10 +108,10 @@
108
108
  "dependencies": {
109
109
  "@eslint-community/eslint-utils": "^4.8.0",
110
110
  "@eslint-community/regexpp": "^4.12.2",
111
- "@eslint/config-array": "^0.23.2",
111
+ "@eslint/config-array": "^0.23.3",
112
112
  "@eslint/config-helpers": "^0.5.2",
113
- "@eslint/core": "^1.1.0",
114
- "@eslint/plugin-kit": "^0.6.0",
113
+ "@eslint/core": "^1.1.1",
114
+ "@eslint/plugin-kit": "^0.6.1",
115
115
  "@humanfs/node": "^0.16.6",
116
116
  "@humanwhocodes/module-importer": "^1.0.1",
117
117
  "@humanwhocodes/retry": "^0.4.2",
@@ -120,7 +120,7 @@
120
120
  "cross-spawn": "^7.0.6",
121
121
  "debug": "^4.3.2",
122
122
  "escape-string-regexp": "^4.0.0",
123
- "eslint-scope": "^9.1.1",
123
+ "eslint-scope": "^9.1.2",
124
124
  "eslint-visitor-keys": "^5.0.1",
125
125
  "espree": "^11.1.1",
126
126
  "esquery": "^1.7.0",
@@ -133,7 +133,7 @@
133
133
  "imurmurhash": "^0.1.4",
134
134
  "is-glob": "^4.0.0",
135
135
  "json-stable-stringify-without-jsonify": "^1.0.1",
136
- "minimatch": "^10.2.1",
136
+ "minimatch": "^10.2.4",
137
137
  "natural-compare": "^1.4.0",
138
138
  "optionator": "^0.9.3"
139
139
  },
@@ -143,7 +143,7 @@
143
143
  "@babel/preset-env": "^7.4.3",
144
144
  "@cypress/webpack-preprocessor": "^6.0.2",
145
145
  "@eslint/json": "^0.14.0",
146
- "@eslint/eslintrc": "^3.3.4",
146
+ "@eslint/eslintrc": "^3.3.5",
147
147
  "@trunkio/launcher": "^1.3.4",
148
148
  "@types/esquery": "^1.5.4",
149
149
  "@types/node": "^22.13.14",