Commit 52ea978
authored
refactor(linter): update comments, improve tests, add variant All to LintFilterKind (#10259)
I split this PR into easily reviewable commits. While working on this
PR, I noticed two possible follow up changes:
`LintFilterKind::Rule` and `LintFilterKind::Generic` behave exactly the
same in `ConfigStoreBuilder::with_filter` because `LintFilterKind::Rule`
never actually uses or checks for the plugin it stores. Should I include
the check for plugin?
The proposed fifth `LintFilterKind` isn't implemented yet (see: `//
TODO: plugin + category? e.g -A react:correctness)`). Should I add it?1 parent 9aaba69 commit 52ea978
File tree
2 files changed
+21
-28
lines changed- crates/oxc_linter/src
- config
- options
2 files changed
+21
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
252 | 249 | | |
253 | 250 | | |
254 | 251 | | |
255 | 252 | | |
256 | 253 | | |
257 | 254 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
268 | 258 | | |
269 | 259 | | |
270 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | | - | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | | - | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | | - | |
256 | | - | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
| 260 | + | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
260 | 263 | | |
261 | 264 | | |
262 | 265 | | |
| |||
0 commit comments