Skip to content

Commit

Permalink
➕️ ESLint
Browse files Browse the repository at this point in the history
see
- https://nextjs.org/learn/dashboard-app/improving-accessibility#using-the-eslint-accessibility-plugin-in-nextjs
- work around for "Failed to load config "next/typescript" to extend from. " 👉 vercel/next-learn#838
  • Loading branch information
jun68ykt committed Aug 22, 2024
1 parent 3199782 commit 6c323cc
Show file tree
Hide file tree
Showing 3 changed files with 2,187 additions and 23 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@heroicons/react": "^2.1.4",
Expand All @@ -27,6 +28,10 @@
"@types/node": "20.14.8",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.6",
"prettier": "^3.3.3"
},
"engines": {
Expand Down
Loading

0 comments on commit 6c323cc

Please sign in to comment.