Skip to content

Commit 13df3b1

Browse files
committed
add correct deps
1 parent 1779b8a commit 13df3b1

File tree

5 files changed

+847
-19
lines changed

5 files changed

+847
-19
lines changed

eslint.config.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,4 @@ export default [
6767
},
6868

6969
/* 5 - JSX files */
70-
{
71-
files: ['**/*.jsx'],
72-
plugins: { node: nodePlugin, import: importPlugin },
73-
languageOptions: {
74-
ecmaVersion: 'latest',
75-
sourceType: 'module',
76-
globals: { ...nodeGlobals, ...browserGlobals },
77-
parserOptions: { ecmaFeatures: { jsx: true } },
78-
},
79-
rules: {
80-
'node/no-unsupported-features/es-syntax': 'off',
81-
'import/no-unresolved': 'error',
82-
'import/named': 'error',
83-
'import/default': 'error',
84-
'import/no-absolute-path': 'error',
85-
},
86-
},
8770
];

packages/eslint-plugin-react-zero-ui/__tests__/fixtures/next/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { bodyAttributes } from '@zero-ui/attributes';
22
import './globals.css';
33

4-
export default function RootLayout({ children }) {
4+
export default function RootLayout({ children }: { children: React.ReactNode }) {
55
return (
66
<html lang="en">
77
<body

packages/eslint-plugin-react-zero-ui/__tests__/fixtures/next/eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export default [
2626
},
2727
rules: {
2828
'react-zero-ui/require-data-attr': 'error',
29-
// any local overrides…
3029
'@typescript-eslint/no-unused-vars': ['warn'],
3130
'no-console': ['warn', { allow: ['warn', 'error'] }],
3231
},

packages/eslint-plugin-react-zero-ui/__tests__/fixtures/next/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"react-dom": "^18.2.0"
1515
},
1616
"devDependencies": {
17+
"@eslint/eslintrc": "^3.3.1",
1718
"@tailwindcss/postcss": "^4.1.10",
1819
"@types/node": "24.0.0",
1920
"@types/react": "19.1.7",
21+
"eslint": "^9.32.0",
22+
"eslint-config-next": "^15.4.5",
2023
"eslint-plugin-react-zero-ui": "workspace:*",
2124
"postcss": "^8.5.5",
2225
"tailwindcss": "^4.1.10",

0 commit comments

Comments
 (0)