-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy path.oxlintrc.json
More file actions
117 lines (115 loc) · 3.11 KB
/
.oxlintrc.json
File metadata and controls
117 lines (115 loc) · 3.11 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
{
"plugins": [
"import",
"react",
"nextjs",
"promise",
"node",
"react-perf",
"typescript"
],
"categories": {},
"rules": {
"nextjs/no-head-element": "off",
"nextjs/no-html-link-for-pages": "off",
"nextjs/no-img-element": "off",
"typescript/tsconfig-error": "off",
"prefer-const": ["error", { "destructuring": "all" }],
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"sort-imports": [
"error",
{
"allowSeparatedGroups": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"ignoreCase": true
}
],
"typescript/no-floating-promises": "error",
"typescript/no-misused-promises": "error",
"typescript/await-thenable": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-return": "warn",
"typescript/require-await": "warn",
"typescript/restrict-template-expressions": [
"warn",
{ "allowNumber": true, "allowBoolean": true, "allowNullish": true }
],
"typescript/strict-boolean-expressions": [
"error",
{
"allowString": false,
"allowNumber": false,
"allowNullableObject": false,
"allowNullableBoolean": false,
"allowNullableString": true,
"allowNullableNumber": false
}
],
"typescript/prefer-nullish-coalescing": "warn",
"typescript/prefer-optional-chain": "off",
"typescript/no-explicit-any": "warn",
"typescript/consistent-type-imports": "off",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"typescript/unbound-method": "off",
"typescript/no-meaningless-void-operator": "off",
"typescript/no-duplicate-type-constituents": "off"
},
"overrides": [
{
"files": ["apps/docs/app/trees/ClientPage.tsx"],
"rules": {
"typescript/no-unsafe-return": "off",
"typescript/strict-boolean-expressions": "off"
}
}
],
"settings": {
"jsx-a11y": {
"polymorphicPropName": null,
"components": {},
"attributes": {}
},
"react": {
"formComponents": [],
"linkComponents": [],
"version": null,
"componentWrapperFunctions": []
},
"jsdoc": {
"ignorePrivate": false,
"ignoreInternal": false,
"ignoreReplacesDocs": true,
"overrideReplacesDocs": true,
"augmentsExtendsReplacesDocs": false,
"implementsReplacesDocs": false,
"exemptDestructuredRootsFromChecks": false,
"tagNamePreference": {}
},
"vitest": {
"typecheck": false
}
},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": [
"scripts/**",
"**/dist/**",
"{packages,apps}/*/node_modules/**",
"{packages,apps}/*/.next/**",
"{packages,apps}/*/out/**",
"{packages,apps}/*/build/**",
"{packages,apps}/*/next-env.d.ts",
"{packages,apps}/*/.source/**",
"{packages,apps}/*/.vinxi/**",
"{packages,apps}/*/.output/**",
"{packages,apps}/*/.vercel/**",
"packages/storage-elements/blocks/git-platform-sync/**"
]
}