Skip to content

Commit

Permalink
Make eslint test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadxali committed Nov 19, 2024
1 parent de8f1c5 commit 6a5d291
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/react-ts/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import config from "../../lib/react.js";

export default config;
export default [
...config,
{
ignores: ["eslint.config.js"],
},
];
3 changes: 3 additions & 0 deletions tests/react-ts/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useState } from "react";

import reactLogo from "./assets/react.svg";

import viteLogo from "/vite.svg";
import "./App.css";

Expand Down Expand Up @@ -36,4 +38,5 @@ function App() {
);
}

// eslint-disable-next-line import/no-default-export
export default App;
1 change: 1 addition & 0 deletions tests/react-ts/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";

import "./index.css";
import App from "./App.tsx";

Expand Down
3 changes: 2 additions & 1 deletion tests/react-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

// https://vite.dev/config/
// eslint-disable-next-line import/no-default-export
export default defineConfig({
plugins: [react()],
});

0 comments on commit 6a5d291

Please sign in to comment.