-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
104 lines (96 loc) · 2.7 KB
/
Copy path.oxlintrc.json
File metadata and controls
104 lines (96 loc) · 2.7 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"typescript",
"unicorn",
"oxc",
"import",
"react",
"react-perf",
"jsx-a11y",
"vitest",
"promise",
"node",
"jsdoc"
],
"categories": {
"correctness": "error",
"suspicious": "warn",
"pedantic": "warn",
"style": "warn",
"restriction": "off",
"nursery": "off"
},
"rules": {
"no-console": "warn",
"no-magic-numbers": "off",
"no-ternary": "off",
"no-nested-ternary": "off",
"no-continue": "off",
"sort-keys": "off",
"sort-imports": "off",
"curly": "off",
"func-style": "off",
"yoda": "off",
"init-declarations": "off",
"no-useless-concat": "off",
"max-lines-per-function": "off",
"max-depth": "off",
"max-nested-callbacks": "off",
"max-classes-per-file": "off",
"id-length": "off",
"max-lines": "off",
"max-statements": "off",
"no-inline-comments": "off",
"no-negated-condition": "off",
"import/no-nodejs-modules": "off",
"import/no-cycle": "error",
"import/no-self-import": "error",
"import/no-duplicates": "error",
"import/exports-last": "off",
"import/no-named-export": "off",
"import/prefer-default-export": "off",
"import/group-exports": "off",
"import/no-unassigned-import": "off",
"import/max-dependencies": "off",
"import/consistent-type-specifier-style": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/array-type": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-max-depth": "off",
"react/jsx-props-no-spreading": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-array-sort": "off",
"unicorn/no-null": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/filename-case": "off",
"promise/prefer-await-to-then": "off",
"promise/always-return": "off",
"jest/require-hook": "off",
"vitest/no-importing-vitest-globals": "off",
"vitest/prefer-describe-function-title": "off",
"vitest/valid-title": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-autofocus": "warn",
"jsx-a11y/no-static-element-interactions": "off"
},
"ignorePatterns": [
"dist/**",
"node_modules/**",
"target/**",
"*.gen.ts",
"**/PostHog.astro"
],
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.bench.ts"],
"rules": {
"no-console": "off",
"@typescript-eslint/no-explicit-any": "off",
"unicorn/consistent-function-scoping": "off",
"vitest/no-conditional-expect": "off"
}
}
]
}