Skip to content

Commit 86e8869

Browse files
committed
Add ESLint and related imports for improved code quality checks
1 parent 81b1597 commit 86e8869

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

apps/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@types/react-dom": "^18.3.1",
2525
"@vitejs/plugin-react": "^4.2.1",
2626
"autoprefixer": "^10.4.23",
27+
"eslint": "^9.39.1",
2728
"eslint-plugin-react-hooks": "^7.0.1",
2829
"eslint-plugin-react-refresh": "^0.4.24",
2930
"globals": "^16.5.0",

apps/playground/test-import.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
try {
2+
await import('eslint/config');
3+
console.log('eslint/config imported successfully');
4+
} catch (e) {
5+
console.error('Failed to import eslint/config:', e.message);
6+
}
7+
8+
try {
9+
await import('eslint-plugin-react-hooks');
10+
console.log('eslint-plugin-react-hooks imported successfully');
11+
} catch (e) {
12+
console.error('Failed to import eslint-plugin-react-hooks:', e.message);
13+
}
14+
15+
try {
16+
await import('typescript-eslint');
17+
console.log('typescript-eslint imported successfully');
18+
} catch (e) {
19+
console.error('Failed to import typescript-eslint:', e.message);
20+
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)