Skip to content

Commit

Permalink
add next eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nahtnam committed Nov 25, 2024
1 parent 0fd0c27 commit 5830f92
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
22 changes: 17 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import neostandard, { resolveIgnoresFromGitignore } from "neostandard";
import nextPlugin from "@next/eslint-plugin-next";

export default neostandard({
ignores: resolveIgnoresFromGitignore(),
ts: true,
noStyle: true,
});
export default [
...neostandard({
ignores: resolveIgnoresFromGitignore(),
ts: true,
noStyle: true,
}),
{
plugins: {
"@next/next": nextPlugin,
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs["core-web-vitals"].rules,
},
},
];
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"tailwind-merge": "^2.5.2"
},
"devDependencies": {
"@next/eslint-plugin-next": "^15.0.3",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
Expand Down
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5830f92

Please sign in to comment.