@spscommerce/eslint-config-typescript 9.0.3 → 9.1.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.
- package/GUIDE.md +5 -3
- package/package.json +2 -2
package/GUIDE.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
### Using Flat Config (ESLint 8.57.1+)
|
|
7
|
+
### Using Flat Config (ESLint 8.57.1+ or ESLint 9)
|
|
8
8
|
|
|
9
|
-
This package provides a flat config export for use with ESLint's new configuration format. The flat config is available alongside the legacy format, allowing you to choose based on your project's needs.
|
|
9
|
+
This package provides a flat config export for use with ESLint's new configuration format. The flat config is available alongside the legacy format, allowing you to choose based on your project's needs. Both ESLint `^8.57.1` and `^9.0.0` are supported.
|
|
10
10
|
|
|
11
11
|
#### Installation
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Install the package and its peer dependencies:
|
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
pnpm add -D @spscommerce/eslint-config-typescript
|
|
17
|
-
pnpm add -D eslint
|
|
17
|
+
pnpm add -D eslint@"^8.57.1 || ^9.0.0" typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin typescript-eslint eslint-plugin-import eslint-import-resolver-typescript @stylistic/eslint-plugin
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
#### Basic Setup
|
|
@@ -207,6 +207,8 @@ If you're migrating from the legacy `.eslintrc.js` format:
|
|
|
207
207
|
|
|
208
208
|
This package's main export provides the legacy `.eslintrc` configuration format. This is the traditional ESLint configuration format that has been widely used.
|
|
209
209
|
|
|
210
|
+
> **Note:** the legacy entry point requires ESLint 8 — the `.eslintrc` format is deprecated in ESLint 9 and removed in ESLint 10. To use ESLint 9, switch to the flat config export above.
|
|
211
|
+
|
|
210
212
|
#### Installation
|
|
211
213
|
|
|
212
214
|
Install the package and its peer dependencies:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/eslint-config-typescript",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "SPS official linter configuration for TypeScript.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
47
47
|
"@typescript-eslint/eslint-plugin": "8.56.1",
|
|
48
48
|
"@typescript-eslint/parser": "8.56.1",
|
|
49
|
-
"eslint": "8.57.1",
|
|
49
|
+
"eslint": "^8.57.1 || ^9.0.0",
|
|
50
50
|
"eslint-import-resolver-typescript": "3.8.3",
|
|
51
51
|
"eslint-plugin-import": "2.32.0",
|
|
52
52
|
"typescript-eslint": "8.56.1"
|