Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency eslint to v9 #415

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "8.57.0",
"eslint-config-next": "14.2.7",
"eslint": "^9.9.1",
"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
1 change: 1 addition & 0 deletions src/components/date.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { DateString } from "./date";
import React from "react";
import { render } from "../../utils/react-test";

it("renders correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/footer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { Footer } from "./footer";
import React from "react";
import { render } from "../../utils/react-test";

it("renders correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { Header } from "./header";
import React from "react";
import { render } from "../../utils/react-test";

it("renders correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/navigation.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { Navigation } from "./navigation";
import React from "react";
import { render } from "../../utils/react-test";

it("renders correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/prev-next-link.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { PrevNextLink } from "./prev-next-link";
import React from "react";
import { render } from "../../utils/react-test";

it("renders both prev and next correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/questions.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { expect, it } from "vitest";
import { Questions } from "./questions";
import React from "react";
import { render } from "../../utils/react-test";

it("renders correctly", () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/sns-link.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect, it } from "vitest";
import React from "react";
import { SNSLink } from "./sns-link";
import { render } from "../../utils/react-test";

Expand Down
1 change: 1 addition & 0 deletions src/components/title.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Subtitle, Title } from "./title";
import { expect, it } from "vitest";
import React from "react";
import { render } from "../../utils/react-test";

it("renders title correctly", () => {
Expand Down
Loading