forked from likec4/likec4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
102 lines (102 loc) · 2.71 KB
/
.oxlintrc.json
File metadata and controls
102 lines (102 loc) · 2.71 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"es2024": true
},
"plugins": [
"eslint",
"typescript",
"unicorn",
"react",
"react-perf",
"oxc",
"import",
"node",
"vitest"
],
"ignorePatterns": [
"packages/create-likec4/",
"packages/icons/",
"apps/docs/",
"styled-system/styles/",
"examples/"
],
"rules": {
"max-dependencies": "off",
"max-lines-per-function": "off",
"no-optional-chaining": "off",
"no-undefined": "off",
"no-inline-comments": "off",
"no-named-as-default-member": "off",
"no-accumulating-spread": "error",
"no-array-reverse": "off",
"no-await-in-loop": "off",
"no-commonjs": "error",
// TODO: Enable these rules later
"no-cycle": "off",
"import/consistent-type-specifier-style": "off",
// "import/consistent-type-specifier-style": [
// "warn",
// {
// "prefer-top-level": true
// }
// ],
"import/first": [
"warn",
{
"absolute-first": true
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "type-fest",
"allowTypeImports": true
},
{
"name": "."
}
]
}
],
"react_perf/jsx-no-jsx-as-prop": "warn",
"promise/no-new-statics": "error",
"react/exhaustive-deps": "warn",
"no-unused-expressions": "off",
"typescript/no-base-to-string": "error",
"typescript/no-import-type-side-effects": "error",
"typescript/require-array-sort-compare": "off",
"typescript/restrict-template-expressions": "off",
"typescript/no-duplicate-type-constituents": "off",
"typescript/no-misused-spread": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/unbound-method": "off",
"typescript/explicit-function-return-type": "off",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-unnecessary-type-arguments": "off",
"typescript/no-redundant-type-constituents": "off"
},
"overrides": [
{
"files": [
"**/*.spec.ts",
"**/*.test-d.ts",
"**/*.spec.tsx",
"**/__*/**"
],
"rules": {
"import/consistent-type-specifier-style": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unnecessary-type-assertion": "off",
"typescript/no-unnecessary-template-expression": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-type-assertion": "off",
"typescript/no-non-null-assertion": "off",
"typescript/no-non-null-asserted-optional-chain": "off",
"no-unused-vars": "off"
}
}
]
}