Skip to content

Commit 8f01d29

Browse files
renovate[bot]ST-DDTShinigami92
authored
chore(deps): update dependency typescript-eslint to v8 (#3064)
* chore(deps): update dependency typescript-eslint to v8 * chore: fix lint errors * chore: simplify code * chore: remove eslint-plugin-deprecation --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT <ST-DDT@gmx.de> Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
1 parent c850653 commit 8f01d29

7 files changed

+113
-95
lines changed

eslint.config.js

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// @ts-check
22
/* eslint-disable @typescript-eslint/no-unsafe-argument */
3-
import { fixupPluginRules, includeIgnoreFile } from '@eslint/compat';
3+
import { includeIgnoreFile } from '@eslint/compat';
44
import eslint from '@eslint/js';
55
import stylistic from '@stylistic/eslint-plugin';
6-
import eslintPluginDeprecation from 'eslint-plugin-deprecation';
76
import eslintPluginJsdoc from 'eslint-plugin-jsdoc';
87
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
98
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
@@ -27,6 +26,7 @@ export default tseslint.config(
2726
'docs/.vitepress/components/shims.d.ts',
2827
'docs/.vitepress/shared/utils/slugify.ts',
2928
'docs/.vitepress/theme/index.ts',
29+
'eslint.config.js',
3030
],
3131
},
3232
{
@@ -57,7 +57,6 @@ export default tseslint.config(
5757
'@typescript-eslint': tseslint.plugin,
5858
},
5959
languageOptions: {
60-
parser: tseslint.parser,
6160
parserOptions: {
6261
project: true,
6362
warnOnUnsupportedTypeScriptVersion: false,
@@ -140,29 +139,7 @@ export default tseslint.config(
140139
},
141140
//#endregion
142141

143-
//#region deprecation
144-
{
145-
plugins: {
146-
deprecation:
147-
// https://github.com/gund/eslint-plugin-deprecation/issues/78
148-
// @ts-expect-error: Just eat it!
149-
fixupPluginRules(eslintPluginDeprecation),
150-
},
151-
languageOptions: {
152-
parser: tseslint.parser,
153-
parserOptions: {
154-
project: true,
155-
warnOnUnsupportedTypeScriptVersion: false,
156-
},
157-
},
158-
rules: {
159-
'deprecation/deprecation': 'error',
160-
},
161-
},
162-
//#endregion
163-
164142
//#region unicorn
165-
// @ts-expect-error: Ignore for now
166143
eslintPluginUnicorn.configs['flat/recommended'],
167144
{
168145
rules: {

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
"eslint": "9.9.0",
113113
"eslint-config-prettier": "9.1.0",
114114
"eslint-define-config": "2.1.0",
115-
"eslint-plugin-deprecation": "3.0.0",
116115
"eslint-plugin-jsdoc": "50.2.2",
117116
"eslint-plugin-prettier": "5.2.1",
118117
"eslint-plugin-unicorn": "55.0.0",
@@ -127,7 +126,7 @@
127126
"tsup": "8.2.4",
128127
"tsx": "4.17.0",
129128
"typescript": "5.5.4",
130-
"typescript-eslint": "7.18.0",
129+
"typescript-eslint": "8.3.0",
131130
"validator": "13.12.0",
132131
"vite": "5.4.1",
133132
"vitepress": "1.3.3",

pnpm-lock.yaml

+102-58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/locale-imports.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { keys } from '../src/internal/keys';
55

66
describe.each(keys(allLocales))('locale imports', (locale) => {
77
it(`should be possible to directly require('@faker-js/faker/locale/${locale}')`, () => {
8-
// eslint-disable-next-line @typescript-eslint/no-var-requires, unicorn/prefer-module
8+
// eslint-disable-next-line @typescript-eslint/no-require-imports, unicorn/prefer-module
99
const { faker } = require(`../dist/locale/${locale}.cjs`) as {
1010
faker: Faker;
1111
};

0 commit comments

Comments
 (0)