Skip to content

Commit

Permalink
Migrate eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Aug 30, 2024
1 parent 665fe82 commit 5f6e971
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
29 changes: 29 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReact from "eslint-plugin-react";
import tseslint from "typescript-eslint";

export default [
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
},
{
ignores: ["build/", "public/", ".cache/", "styled-system/"],
},
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: "detect",
},
formComponents: ["Form"],
linkComponents: [
{ name: "Link", linkAttribute: "to" },
{ name: "NavLink", linkAttribute: "to" },
],
},
},
];
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,19 @@
"yaml": "^2.3.4"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/markdown-it": "^14.0.0",
"@types/node": "^22.0.0",
"@types/react": "^18.2.21",
"@types/react-test-renderer": "^18.0.7",
"@typescript-eslint/parser": "^8.0.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "9.9.1",
"eslint": "^9.9.1",
"eslint-config-next": "14.2.6",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-chakra-ui": "^0.11.0",
"eslint-plugin-react": "^7.35.0",
"globals": "^15.9.0",
"husky": "^9.0.11",
"jsdom": "^25.0.0",
"lint-staged": "^15.0.0",
Expand All @@ -70,6 +73,7 @@
"stylelint-config-sass-guidelines": "^12.0.0",
"ts-node": "^10.9.2",
"typescript": "5.5.4",
"typescript-eslint": "^8.3.0",
"vitest": "^2.0.0"
},
"packageManager": "bun@1.0.35"
Expand Down

0 comments on commit 5f6e971

Please sign in to comment.