Skip to content

Commit 7a6b8da

Browse files
authored
chore: replace deprecated stylistic plugin (apify#3383)
## Changes - Replace `@stylistic/eslint-plugin-ts` with `@stylistic/eslint-plugin` in package.json - Update import and plugin reference in eslint.config.mjs ## Why The `@stylistic/eslint-plugin-ts` package has been deprecated. ``` This package is deprecated in favor of the unified @stylistic/eslint-plugin, please consider migrating to the main package ```
1 parent 95c4af4 commit 7a6b8da

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import tsEslint from 'typescript-eslint';
2-
import tsStylistic from '@stylistic/eslint-plugin-ts';
31
import apify from '@apify/eslint-config/ts';
2+
import stylistic from '@stylistic/eslint-plugin';
43
import prettier from 'eslint-config-prettier';
4+
import tsEslint from 'typescript-eslint';
55

66
export default [
77
{
@@ -20,7 +20,7 @@ export default [
2020
{
2121
plugins: {
2222
'@typescript-eslint': tsEslint.plugin,
23-
'@stylistic': tsStylistic,
23+
'@stylistic': stylistic,
2424
},
2525
rules: {
2626
'@typescript-eslint/no-empty-object-type': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@playwright/browser-chromium": "1.58.1",
6464
"@playwright/browser-firefox": "1.58.1",
6565
"@playwright/browser-webkit": "1.58.1",
66-
"@stylistic/eslint-plugin-ts": "^4.2.0",
66+
"@stylistic/eslint-plugin": "^4.2.0",
6767
"@types/content-type": "^1.1.5",
6868
"@types/deep-equal": "^1.0.1",
6969
"@types/domhandler": "^2.4.2",

yarn.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ __metadata:
10661066
"@playwright/browser-chromium": "npm:1.58.1"
10671067
"@playwright/browser-firefox": "npm:1.58.1"
10681068
"@playwright/browser-webkit": "npm:1.58.1"
1069-
"@stylistic/eslint-plugin-ts": "npm:^4.2.0"
1069+
"@stylistic/eslint-plugin": "npm:^4.2.0"
10701070
"@types/content-type": "npm:^1.1.5"
10711071
"@types/deep-equal": "npm:^1.0.1"
10721072
"@types/domhandler": "npm:^2.4.2"
@@ -3078,16 +3078,18 @@ __metadata:
30783078
languageName: node
30793079
linkType: hard
30803080

3081-
"@stylistic/eslint-plugin-ts@npm:^4.2.0":
3081+
"@stylistic/eslint-plugin@npm:^4.2.0":
30823082
version: 4.4.1
3083-
resolution: "@stylistic/eslint-plugin-ts@npm:4.4.1"
3083+
resolution: "@stylistic/eslint-plugin@npm:4.4.1"
30843084
dependencies:
30853085
"@typescript-eslint/utils": "npm:^8.32.1"
30863086
eslint-visitor-keys: "npm:^4.2.0"
30873087
espree: "npm:^10.3.0"
3088+
estraverse: "npm:^5.3.0"
3089+
picomatch: "npm:^4.0.2"
30883090
peerDependencies:
30893091
eslint: ">=9.0.0"
3090-
checksum: 10c0/9b2d88364dc39441666a3963783fdbf2420689e6af88d58556472ee6fd8a6f115f8f42713f0be64db58b03df8c5ebbde2547872cee9372215ec32123f81d33a9
3092+
checksum: 10c0/94160bfc172a3934dd35be87887f43f7e3ffe9d1645096860a4e4c61877bb0fb62eb20a90e50ad74767ee794ed10f334f7165952cf9bcbd8bae6b80dc10c0d62
30913093
languageName: node
30923094
linkType: hard
30933095

@@ -6778,7 +6780,7 @@ __metadata:
67786780
languageName: node
67796781
linkType: hard
67806782

6781-
"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0":
6783+
"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0, estraverse@npm:^5.3.0":
67826784
version: 5.3.0
67836785
resolution: "estraverse@npm:5.3.0"
67846786
checksum: 10c0/1ff9447b96263dec95d6d67431c5e0771eb9776427421260a3e2f0fdd5d6bd4f8e37a7338f5ad2880c9f143450c9b1e4fc2069060724570a49cf9cf0312bd107

0 commit comments

Comments
 (0)