forked from npmx-dev/npmx.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
113 lines (113 loc) · 4.01 KB
/
.oxlintrc.json
File metadata and controls
113 lines (113 loc) · 4.01 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
{
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc", "vue", "vitest"],
"jsPlugins": ["@e18e/eslint-plugin", "eslint-plugin-regexp"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"perf": "warn"
},
"rules": {
"no-console": "warn",
"no-await-in-loop": "off",
"unicorn/no-array-sort": "off",
"no-restricted-globals": "error",
"typescript/consistent-type-imports": "error",
"e18e/prefer-array-from-map": "error",
"e18e/prefer-timer-args": "error",
"e18e/prefer-date-now": "error",
"e18e/prefer-regex-test": "error",
"e18e/prefer-array-some": "error",
// RegExp - Possible Errors (most critical)
"regexp/no-contradiction-with-assertion": "error",
"regexp/no-dupe-disjunctions": "error",
"regexp/no-empty-alternative": "error",
"regexp/no-empty-capturing-group": "error",
"regexp/no-empty-character-class": "error",
"regexp/no-empty-group": "error",
"regexp/no-empty-lookarounds-assertion": "error",
"regexp/no-escape-backspace": "error",
"regexp/no-invalid-regexp": "error",
"regexp/no-lazy-ends": "error",
"regexp/no-misleading-capturing-group": "error",
"regexp/no-misleading-unicode-character": "error",
"regexp/no-missing-g-flag": "error",
"regexp/no-optional-assertion": "error",
"regexp/no-potentially-useless-backreference": "error",
"regexp/no-super-linear-backtracking": "error",
"regexp/no-useless-assertions": "error",
"regexp/no-useless-backreference": "error",
"regexp/no-useless-dollar-replacements": "error",
"regexp/strict": "error",
// RegExp - Best Practices
"regexp/confusing-quantifier": "warn",
"regexp/control-character-escape": "error",
"regexp/negation": "error",
"regexp/no-dupe-characters-character-class": "error",
"regexp/no-empty-string-literal": "error",
"regexp/no-extra-lookaround-assertions": "error",
"regexp/no-invisible-character": "error",
"regexp/no-legacy-features": "error",
"regexp/no-non-standard-flag": "error",
"regexp/no-obscure-range": "error",
"regexp/no-octal": "error",
"regexp/no-standalone-backslash": "error",
"regexp/no-trivially-nested-assertion": "error",
"regexp/no-trivially-nested-quantifier": "error",
"regexp/no-unused-capturing-group": "warn",
"regexp/no-useless-character-class": "error",
"regexp/no-useless-flag": "error",
"regexp/no-useless-lazy": "error",
"regexp/no-useless-quantifier": "error",
"regexp/no-useless-range": "error",
"regexp/no-useless-set-operand": "error",
"regexp/no-useless-string-literal": "error",
"regexp/no-useless-two-nums-quantifier": "error",
"regexp/no-zero-quantifier": "error",
"regexp/optimal-lookaround-quantifier": "warn",
"regexp/optimal-quantifier-concatenation": "error",
"regexp/prefer-predefined-assertion": "error",
"regexp/prefer-range": "error",
"regexp/prefer-set-operation": "error",
"regexp/simplify-set-operations": "error",
"regexp/use-ignore-case": "error",
// RegExp - Stylistic Issues (less critical, focused on consistency)
"regexp/match-any": "warn",
"regexp/no-useless-escape": "warn",
"regexp/no-useless-non-capturing-group": "warn",
"regexp/prefer-character-class": "warn",
"regexp/prefer-d": "warn",
"regexp/prefer-plus-quantifier": "warn",
"regexp/prefer-question-quantifier": "warn",
"regexp/prefer-star-quantifier": "warn",
"regexp/prefer-unicode-codepoint-escapes": "warn",
"regexp/prefer-w": "warn",
"regexp/sort-flags": "warn"
},
"overrides": [
{
"files": [
"server/**/*",
"cli/**/*",
"scripts/**/*",
"modules/**/*",
"app/components/OgImage/*"
],
"rules": {
"no-console": "off"
}
}
],
"ignorePatterns": [
".output/**",
".data/**",
".nuxt/**",
".nitro/**",
".cache/**",
"dist/**",
"node_modules/**",
"coverage/**",
"playwright-report/**",
"test-results/**"
]
}