Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 0 additions & 5 deletions frontend/.eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions frontend/.eslintrc.cjs

This file was deleted.

65 changes: 65 additions & 0 deletions frontend/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
const { defineConfig, globalIgnores } = require("eslint/config");

const tsParser = require("@typescript-eslint/parser");
const react = require("eslint-plugin-react");
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
const globals = require("globals");
const js = require("@eslint/js");

const { FlatCompat } = require("@eslint/eslintrc");

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = defineConfig([
{
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",

parserOptions: {
project: "./tsconfig.json",
},

globals: {
...globals.browser,
...globals.jest,
},
},

plugins: {
react,
"@typescript-eslint": typescriptEslint,
},

extends: compat.extends(
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
),

rules: {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
},

settings: {
react: {
version: "detect",
},
},
},
globalIgnores(["**/eslint.config.cjs"]),
globalIgnores([
"**/node_modules/",
"**/dist/",
"**/eslint.config.cjs",
"**/env.d.ts",
"**/vite.config.ts",
]),
]);
Loading
Loading