-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.oxlintrc.json
More file actions
123 lines (123 loc) · 4.34 KB
/
.oxlintrc.json
File metadata and controls
123 lines (123 loc) · 4.34 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "promise", "unicorn", "node"],
"extends": ["./node_modules/@kazupon/eslint-plugin/oxlint/recommended.json"],
"jsPlugins": ["eslint-plugin-regexp"],
"rules": {
"no-control-regex": "error",
"no-misleading-character-class": "error",
"no-regex-spaces": "error",
"no-invalid-regexp": "off",
"no-useless-backreference": "off",
"no-empty-character-class": "off",
"regexp/confusing-quantifier": "warn",
"regexp/control-character-escape": "error",
"regexp/match-any": "error",
"regexp/negation": "error",
"regexp/no-contradiction-with-assertion": "error",
"regexp/no-dupe-characters-character-class": "error",
"regexp/no-dupe-disjunctions": "error",
"regexp/no-empty-alternative": "warn",
"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-empty-string-literal": "error",
"regexp/no-escape-backspace": "error",
"regexp/no-extra-lookaround-assertions": "error",
"regexp/no-invalid-regexp": "error",
"regexp/no-invisible-character": "error",
"regexp/no-lazy-ends": "warn",
"regexp/no-legacy-features": "error",
"regexp/no-misleading-capturing-group": "error",
"regexp/no-misleading-unicode-character": "error",
"regexp/no-missing-g-flag": "error",
"regexp/no-non-standard-flag": "error",
"regexp/no-obscure-range": "error",
"regexp/no-optional-assertion": "error",
"regexp/no-potentially-useless-backreference": "warn",
"regexp/no-super-linear-backtracking": "error",
"regexp/no-trivially-nested-assertion": "error",
"regexp/no-trivially-nested-quantifier": "error",
"regexp/no-unused-capturing-group": "error",
"regexp/no-useless-assertions": "error",
"regexp/no-useless-backreference": "error",
"regexp/no-useless-character-class": "error",
"regexp/no-useless-dollar-replacements": "error",
"regexp/no-useless-escape": "error",
"regexp/no-useless-flag": "warn",
"regexp/no-useless-lazy": "error",
"regexp/no-useless-non-capturing-group": "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-character-class": "error",
"regexp/prefer-d": "error",
"regexp/prefer-plus-quantifier": "error",
"regexp/prefer-predefined-assertion": "error",
"regexp/prefer-question-quantifier": "error",
"regexp/prefer-range": "error",
"regexp/prefer-set-operation": "error",
"regexp/prefer-star-quantifier": "error",
"regexp/prefer-unicode-codepoint-escapes": "error",
"regexp/prefer-w": "error",
"regexp/simplify-set-operations": "error",
"regexp/sort-flags": "error",
"regexp/strict": "error",
"regexp/use-ignore-case": "error"
},
"overrides": [
{
"files": ["**/*.{test,spec}.{ts,tsx}"],
"plugins": ["vitest"]
},
{
"files": [
"packages/**/test/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"**/bin/*.{js,mjs,cjs}",
"**/fixtures/**.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"**/examples/**.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"**/.vitepress/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"**/scripts/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
],
"rules": {
"@kazupon/enforce-header-comment": "off"
}
},
{
"files": ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
"rules": {
"@kazupon/no-tag-comments": [
"warn",
{
"tags": ["TODO", "FIXME", "BUG"]
}
]
}
}
],
"ignorePatterns": [
"**/lib/**",
"**/dist/**",
".notes",
".slides",
".claude",
".vscode",
"tsconfig.json",
"bench/**",
".oxlintrc.json",
"pnpm-lock.yaml",
"playground/**",
"design/**",
"./packages/docs/**",
"packages/docs/src/.vitepress/**",
"./packages/plugin-*/docs/**/*.md", // NOTE(kazupon): ignore generated docs
"CHANGELOG.md",
".github/FUNDING.yml"
]
}