-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (32 loc) · 1.06 KB
/
eslint.config.js
File metadata and controls
33 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import react from "@eslint-react/eslint-plugin";
import js from "@eslint/js";
import pluginQuery from "@tanstack/eslint-plugin-query";
import pluginRouter from "@tanstack/eslint-plugin-router";
import eslintConfigPrettier from "eslint-config-prettier";
import * as reactHooks from "eslint-plugin-react-hooks";
import tseslint from "typescript-eslint";
export default tseslint.config({
ignores: ["dist", ".wrangler", ".vercel", ".netlify", ".output", "build/"],
files: ["**/*.{ts,tsx}"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
...pluginQuery.configs["flat/recommended"],
...pluginRouter.configs["flat/recommended"],
reactHooks.configs.recommended,
react.configs["recommended-type-checked"],
// ...you can add plugins or configs here
],
rules: {
// You can override any rules here
"react-hooks/react-compiler": "warn",
},
});