11import cspellPlugin from '@cspell/eslint-plugin' ;
22import eslint from '@eslint/js' ;
3- // @ts -expect-error eslint-plugin-next doesn't come with TypeScript definitions
43import nextPlugin from '@next/eslint-plugin-next' ;
54import stylistic from '@stylistic/eslint-plugin' ;
65import eslintConfigPrettier from 'eslint-config-prettier' ;
@@ -31,12 +30,7 @@ export default tsEslint.config(
3130 } ,
3231 {
3332 // config with just ignores is the replacement for `.eslintignore`
34- ignores : [
35- '**/node_modules/**' ,
36- '**/public/**' ,
37- '**/.next/**' ,
38- '.github/scripts/**' ,
39- ] ,
33+ ignores : [ '**/node_modules/**' , '**/public/**' , '**/.next/**' , '.github/scripts/**' ] ,
4034 } ,
4135
4236 // extends ...
@@ -53,22 +47,15 @@ export default tsEslint.config(
5347 warnOnUnsupportedTypeScriptVersion : false ,
5448 } ,
5549 } ,
50+ // @ts -expect-error https://github.com/vercel/next.js/issues/81695
5651 rules : {
5752 // spellchecker
5853 '@cspell/spellchecker' : [
5954 'warn' ,
6055 {
6156 cspell : {
6257 language : 'en' ,
63- dictionaries : [
64- 'typescript' ,
65- 'node' ,
66- 'html' ,
67- 'css' ,
68- 'bash' ,
69- 'npm' ,
70- 'pnpm' ,
71- ] ,
58+ dictionaries : [ 'typescript' , 'node' , 'html' , 'css' , 'bash' , 'npm' , 'pnpm' ] ,
7259 } ,
7360 } ,
7461 ] ,
@@ -91,8 +78,7 @@ export default tsEslint.config(
9178 'error' ,
9279 {
9380 selector : "TSPropertySignature[key.name='children']" ,
94- message :
95- 'Please use PropsWithChildren<T> instead of defining children manually' ,
81+ message : 'Please use PropsWithChildren<T> instead of defining children manually' ,
9682 } ,
9783 ] ,
9884 'consistent-return' : 'warn' ,
@@ -109,10 +95,7 @@ export default tsEslint.config(
10995 // React
11096 'react/no-unescaped-entities' : 'off' ,
11197 'react/self-closing-comp' : [ 'error' , { component : true , html : true } ] ,
112- 'react/jsx-curly-brace-presence' : [
113- 'error' ,
114- { props : 'never' , children : 'never' } ,
115- ] ,
98+ 'react/jsx-curly-brace-presence' : [ 'error' , { props : 'never' , children : 'never' } ] ,
11699 'react/jsx-no-target-blank' : 'warn' ,
117100 'react/jsx-sort-props' : [
118101 'error' ,
0 commit comments