-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
37 lines (35 loc) · 965 Bytes
/
eslint.config.js
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
34
35
36
37
// @ts-check
import { fixupPluginRules } from "@eslint/compat";
import eslint from "@eslint/js";
import reactPlugin from "eslint-plugin-react";
import pluginReactHooks from "eslint-plugin-react-hooks";
import tailwind from "eslint-plugin-tailwindcss";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
plugins: {
// @ts-expect-error 型が合わない
"react-hooks": fixupPluginRules(pluginReactHooks),
},
// @ts-expect-error 型が合わない
rules: {
...pluginReactHooks.configs.recommended.rules,
},
},
{ ignores: ["dist/", "src/shadcn/"] },
eslint.configs.recommended,
tseslint.configs.recommended,
reactPlugin.configs.flat?.recommended,
reactPlugin.configs.flat?.["jsx-runtime"],
tailwind.configs["flat/recommended"],
{
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
},
],
},
},
);