-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
40 lines (39 loc) · 1 KB
/
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
38
39
40
import eslint from "@eslint/js"
import react from "eslint-plugin-react"
import reactHooks from "eslint-plugin-react-hooks"
import storybook from "eslint-plugin-storybook"
import tailwind from "eslint-plugin-tailwindcss"
import globals from "globals"
import tseslint from "typescript-eslint"
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
...tailwind.configs["flat/recommended"],
...storybook.configs.recommended,
{
ignores: ["dist"],
},
{
files: ["src/**/*.{ts,tsx}"],
languageOptions: {
globals: globals.browser,
},
plugins: {
react,
"react-hooks": reactHooks,
},
rules: {
...react.configs.recommended.rules,
...react.configs["jsx-runtime"].rules,
...reactHooks.configs.recommended.rules,
"react/jsx-no-target-blank": "off",
},
settings: {
react: { version: "detect" },
tailwindcss: {
callees: ["cn", "cva"],
config: "tailwind.config.ts",
},
},
},
)