@@ -3,7 +3,7 @@ import { includeIgnoreFile } from '@eslint/compat'
3
3
import js from '@eslint/js'
4
4
// @ts -expect-error -- no types
5
5
import eslintPluginNext from '@next/eslint-plugin-next'
6
- import type { Linter } from 'eslint'
6
+ // import type { Linter } from 'eslint'
7
7
// @ts -expect-error -- no types
8
8
import eslintConfigPrettier from 'eslint-config-prettier'
9
9
import eslintPluginImport from 'eslint-plugin-import-x'
@@ -13,24 +13,24 @@ import * as eslintPluginReactCompiler from 'eslint-plugin-react-compiler'
13
13
// @ts -expect-error -- no types
14
14
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
15
15
import eslintPluginSonarJs from 'eslint-plugin-sonarjs'
16
- // @ts -expect-error -- no types
17
- import eslintPluginTailwindCss from 'eslint-plugin-tailwindcss'
16
+ // import eslintPluginTailwindCss from 'eslint-plugin-tailwindcss'
18
17
// @ts -expect-error -- no types
19
18
import eslintPluginTsSortKeys from 'eslint-plugin-typescript-sort-keys'
20
19
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
21
20
import tseslint from 'typescript-eslint'
22
21
import type { Config } from 'typescript-eslint'
23
22
24
- const TAILWIND_CONFIG = {
25
- extends : [ eslintPluginTailwindCss . configs [ 'flat/recommended' ] ] ,
26
- rules : {
27
- 'tailwindcss/classnames-order' : 'off' , // conflicts with prettier-plugin-tailwindcss
28
- 'tailwindcss/enforces-negative-arbitrary-values' : 'error' ,
29
- 'tailwindcss/enforces-shorthand' : 'error' ,
30
- 'tailwindcss/migration-from-tailwind-2' : 'error' ,
31
- 'tailwindcss/no-custom-classname' : 'error'
32
- } satisfies Linter . RulesRecord
33
- }
23
+ // TODO: Enable once `eslint-plugin-tailwindcss` will support Tailwind CSS v4
24
+ // const TAILWIND_CONFIG = {
25
+ // extends: [eslintPluginTailwindCss.configs['flat/recommended']],
26
+ // rules: {
27
+ // 'tailwindcss/classnames-order': 'off', // conflicts with prettier-plugin-tailwindcss
28
+ // 'tailwindcss/enforces-negative-arbitrary-values': 'error',
29
+ // 'tailwindcss/enforces-shorthand': 'error',
30
+ // 'tailwindcss/migration-from-tailwind-2': 'error',
31
+ // 'tailwindcss/no-custom-classname': 'error'
32
+ // } satisfies Linter.RulesRecord
33
+ // }
34
34
35
35
const REACT_COMPILER_RESTRICT = {
36
36
name : 'react' ,
@@ -201,7 +201,7 @@ const config: Config = tseslint.config(
201
201
} ,
202
202
// ⚙️ nextra-theme-docs
203
203
{
204
- ...TAILWIND_CONFIG ,
204
+ // ...TAILWIND_CONFIG,
205
205
files : [ 'packages/nextra-theme-docs/**' ] ,
206
206
settings : {
207
207
tailwindcss : {
@@ -217,7 +217,7 @@ const config: Config = tseslint.config(
217
217
}
218
218
} ,
219
219
rules : {
220
- ...TAILWIND_CONFIG . rules ,
220
+ // ...TAILWIND_CONFIG.rules,
221
221
'no-restricted-imports' : [
222
222
'error' ,
223
223
{ name : 'next/link' , message : 'Use `<Anchor>` instead' } ,
@@ -229,10 +229,10 @@ const config: Config = tseslint.config(
229
229
} ,
230
230
// ⚙️ nextra-theme-blog
231
231
{
232
- ...TAILWIND_CONFIG ,
232
+ // ...TAILWIND_CONFIG,
233
233
files : [ 'packages/nextra-theme-blog/**' ] ,
234
234
rules : {
235
- ...TAILWIND_CONFIG . rules ,
235
+ // ...TAILWIND_CONFIG.rules,
236
236
'no-restricted-imports' : [
237
237
'error' ,
238
238
{
@@ -252,7 +252,7 @@ const config: Config = tseslint.config(
252
252
} ,
253
253
// ⚙️ nextra
254
254
{
255
- ...TAILWIND_CONFIG ,
255
+ // ...TAILWIND_CONFIG,
256
256
files : [ 'packages/nextra/**' ] ,
257
257
settings : {
258
258
tailwindcss : {
@@ -267,15 +267,15 @@ const config: Config = tseslint.config(
267
267
}
268
268
} ,
269
269
rules : {
270
- ...TAILWIND_CONFIG . rules ,
270
+ // ...TAILWIND_CONFIG.rules,
271
271
'import/extensions' : [ 'error' , 'ignorePackages' ] ,
272
272
// False positive due Tailwind CSS v4
273
273
'tailwindcss/no-custom-classname' : 'off'
274
274
}
275
275
} ,
276
276
// ⚙️ Docs
277
277
{
278
- ...TAILWIND_CONFIG ,
278
+ // ...TAILWIND_CONFIG,
279
279
files : [ 'docs/**' ] ,
280
280
settings : {
281
281
tailwindcss : {
@@ -307,7 +307,7 @@ const config: Config = tseslint.config(
307
307
} ,
308
308
// ⚙️ SWR-site example
309
309
{
310
- ...TAILWIND_CONFIG ,
310
+ // ...TAILWIND_CONFIG,
311
311
files : [ 'examples/swr-site/**' ] ,
312
312
settings : {
313
313
tailwindcss : {
0 commit comments