-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
128 lines (128 loc) · 3.08 KB
/
Copy path.oxlintrc.json
File metadata and controls
128 lines (128 loc) · 3.08 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"eslint",
"typescript",
"oxc",
"unicorn",
"react",
"react-perf",
"import",
"jsx-a11y",
"promise",
"node",
"vitest"
],
"jsPlugins": [{ "name": "rules", "specifier": "./rules/index.ts" }],
"categories": {
"correctness": "error",
"suspicious": "error",
"perf": "warn"
},
"env": {
"browser": true,
"node": true,
"es2022": true,
"vitest": true
},
"ignorePatterns": [
"dist/**",
"coverage/**",
".nx/cache/**",
".nx/workspace-data/**",
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*",
"**/test-output/**",
"**/db/postgres/generated/**",
"apps/backend/exported/**",
"resources/landing-example/**"
],
"settings": {
"import/internal-regex": "^(@|@license)/",
"react": {
"version": "19"
}
},
"rules": {
"rules/no-json-error-response": "error",
"rules/require-json-generic-type": "error",
"rules/require-route-crumb": "error",
"rules/no-dynamic-import": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-continue": "off",
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": ["draft", "acc"]
}
],
"max-params": ["error", 3],
"no-unused-vars": "error",
"consistent-return": "off",
"typescript/no-explicit-any": "error",
"import/no-default-export": "error",
"import/no-cycle": "off",
"import/group-exports": "off",
"import/max-dependencies": "off",
"import/no-anonymous-default-export": "off",
"import/no-named-export": "off",
"import/no-nodejs-modules": "off",
"import/prefer-default-export": "off",
"sort-imports": "off",
"sort-keys": "off",
"no-magic-numbers": "off",
"id-length": "off",
"func-style": "off",
"max-statements": "off",
"no-ternary": "off",
"react/react-in-jsx-scope": "off",
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn",
"react-perf/jsx-no-new-function-as-prop": "off",
"react-perf/jsx-no-new-object-as-prop": "warn",
"jest/valid-expect": "off"
},
"overrides": [
{
"files": ["apps/backend/src/features/**/modules/**/*.ts"],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["@backend/db/postgres", "@backend/db/postgres/*"],
"message": "Modules must not import DB directly. Use db/queries/ or db/mutations/ functions."
}
]
}
]
}
},
{
"files": ["*.config.*", "vitest.workspace.ts"],
"rules": {
"import/no-default-export": "off"
}
},
{
"files": [
"*.spec.ts",
"*.spec.tsx",
"*.spec.js",
"*.spec.jsx",
"*.test.ts",
"*.test.tsx",
"*.test.js",
"*.test.jsx"
],
"env": {
"vitest": true
},
"rules": {
"max-lines": "off"
}
}
]
}