@configg/oxc 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/lint.ts +1 -0
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ export default defineConfig({
|
|
|
54
54
|
|
|
55
55
|
If your config has its own `jsPlugins`, keep the anti-slop entry in that array. The plugin ships as TypeScript, so run oxlint under Bun (`bunx --bun oxlint`): Node refuses to strip types from files in `node_modules`.
|
|
56
56
|
|
|
57
|
-
Both presets allow up to two classes per file, allow `reduce()`, allow `process.exit()` (CLI scripts and
|
|
57
|
+
Both presets allow up to two classes per file, allow `forEach()` and `reduce()`, allow `process.exit()` (CLI scripts and
|
|
58
58
|
shutdown handlers exit with a status code on purpose) and allow short identifiers (`eslint/id-length` is off). They turn `import/prefer-default-export` off, since named
|
|
59
59
|
exports are the convention (it matters once a config adds the `import` plugin), and `unicorn/number-literal-case`
|
|
60
60
|
off, since oxfmt and Prettier write hex digits in lowercase. `async`/`await` is allowed (`oxc/no-async-await` is
|
package/package.json
CHANGED
package/src/lint.ts
CHANGED
|
@@ -19,6 +19,7 @@ const sharedRules = {
|
|
|
19
19
|
allowNumber: true,
|
|
20
20
|
},
|
|
21
21
|
],
|
|
22
|
+
'unicorn/no-array-for-each': 'off',
|
|
22
23
|
'unicorn/no-array-reduce': 'off',
|
|
23
24
|
'unicorn/no-process-exit': 'off',
|
|
24
25
|
// Oxfmt and Prettier write hex digits in lowercase; this rule wants uppercase and takes no option.
|