-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
56 lines (55 loc) · 1.44 KB
/
Copy patheslint.config.js
File metadata and controls
56 lines (55 loc) · 1.44 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import path from "node:path";
import { GLOB_MARKDOWN_CODE, zayne } from "@zayne-labs/eslint-config";
export default zayne(
{
type: "lib",
ignores: ["eslint.config.js", "apps/docs/.source/**/*"],
react: {
nextjs: {
overrides: {
"nextjs/no-html-link-for-pages": ["error", "apps/docs"],
},
},
},
typescript: {
tsconfigPath: ["tsconfig.json", "packages/*/tsconfig.json", "apps/*/tsconfig.json"],
// tsconfigPath: ["**/tsconfig.json"],
},
tailwindcssBetter: {
settings: { entryPoint: "apps/docs/tailwind.css" },
},
},
{
files: [`apps/docs/content/docs/${GLOB_MARKDOWN_CODE}`],
rules: {
"eslint-comments/disable-enable-pair": "off",
"unicorn/explicit-length-check": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"react-hooks/hooks": "off",
"react-hooks/rules-of-hooks": "off",
},
},
{
files: ["apps/**/*"],
rules: {
"eslint-comments/require-description": "off",
},
}
).overrides({
"zayne/react/nextjs/recommended": (config) => ({
...config,
ignores: ["apps/docs/content/docs/**/*", "apps/docs/examples/**/*"],
files: ["apps/docs/**/*.{ts,tsx}"],
}),
"zayne/react/nextjs/rules": (config) => ({
...config,
ignores: ["apps/docs/content/docs/**/*", "apps/docs/examples/**/*"],
files: ["apps/docs/**/*.{ts,tsx}"],
}),
"zayne/react/refresh/rules": (config) => ({
...config,
ignores: ["apps/docs/content/docs/**/*"],
files: ["apps/docs/**/*.{ts,tsx}"],
}),
});