Skip to content
Open
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
34 changes: 9 additions & 25 deletions apps/web/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import { FlatCompat } from "@eslint/eslintrc";
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import nextTypescript from "eslint-config-next/typescript";
import perfectionist from "eslint-plugin-perfectionist";
import unusedImports from "eslint-plugin-unused-imports";
import { dirname } from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
...nextCoreWebVitals,
...nextTypescript,
{ ignores: [".next/**"] },
{
plugins: {
Expand Down Expand Up @@ -308,20 +301,7 @@ const eslintConfig = [
"perfectionist/sort-union-types": [
"warn",
{
groups: [
"conditional",
"function",
"import",
["intersection", "union"],
"named",
"operator",
"object",
"keyword",
"literal",
"tuple",
"nullish",
"unknown",
],
groups: ["intersection", "union", "object", "keyword", "literal", "nullish", "unknown"],
type: "natural",
},
],
Expand All @@ -331,6 +311,10 @@ const eslintConfig = [
type: "natural",
},
],
"react-hooks/immutability": "warn",
"react-hooks/purity": "warn",
"react-hooks/refs": "warn",
"react-hooks/set-state-in-effect": "warn",
"react/jsx-sort-props": "off",
"sort-imports": "off",

Expand Down