Skip to content
Open
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
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
dist/
2 changes: 0 additions & 2 deletions frontend/dist/.gitignore

This file was deleted.

28 changes: 28 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import js from "@eslint/js";
import typescript from "@typescript-eslint/eslint-plugin";
import typescriptParser from "@typescript-eslint/parser";
import { defineConfig, globalIgnores } from "eslint/config";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
Expand Down Expand Up @@ -28,4 +30,30 @@ export default defineConfig([
"simple-import-sort/exports": "error",
},
},
{
files: ["**/*.{ts,tsx}"],
plugins: {
"simple-import-sort": simpleImportSort,
"@typescript-eslint": typescript,
},
extends: [js.configs.recommended, reactHooks.configs["recommended-latest"], reactRefresh.configs.vite],
languageOptions: {
parser: typescriptParser,
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: "latest",
ecmaFeatures: { jsx: true },
sourceType: "module",
project: "./tsconfig.json",
},
},
rules: {
// Disable base rule and use TS-aware rule
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
},
},
]);
Loading
Loading