1
1
// @ts -check
2
2
/* eslint-disable @typescript-eslint/no-unsafe-argument */
3
- import { fixupPluginRules , includeIgnoreFile } from '@eslint/compat' ;
3
+ import { includeIgnoreFile } from '@eslint/compat' ;
4
4
import eslint from '@eslint/js' ;
5
5
import stylistic from '@stylistic/eslint-plugin' ;
6
- import eslintPluginDeprecation from 'eslint-plugin-deprecation' ;
7
6
import eslintPluginJsdoc from 'eslint-plugin-jsdoc' ;
8
7
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' ;
9
8
import eslintPluginUnicorn from 'eslint-plugin-unicorn' ;
@@ -27,6 +26,7 @@ export default tseslint.config(
27
26
'docs/.vitepress/components/shims.d.ts' ,
28
27
'docs/.vitepress/shared/utils/slugify.ts' ,
29
28
'docs/.vitepress/theme/index.ts' ,
29
+ 'eslint.config.js' ,
30
30
] ,
31
31
} ,
32
32
{
@@ -57,7 +57,6 @@ export default tseslint.config(
57
57
'@typescript-eslint' : tseslint . plugin ,
58
58
} ,
59
59
languageOptions : {
60
- parser : tseslint . parser ,
61
60
parserOptions : {
62
61
project : true ,
63
62
warnOnUnsupportedTypeScriptVersion : false ,
@@ -140,29 +139,7 @@ export default tseslint.config(
140
139
} ,
141
140
//#endregion
142
141
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
-
164
142
//#region unicorn
165
- // @ts -expect-error: Ignore for now
166
143
eslintPluginUnicorn . configs [ 'flat/recommended' ] ,
167
144
{
168
145
rules : {
0 commit comments