oxlint-config-awesomeness 4.2.0 → 4.3.0

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.
Files changed (3) hide show
  1. package/README.md +1 -15
  2. package/index.js +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Opinionated Oxlint config for software houses that want all their apps to feel the same.
4
4
 
5
- **454 rules** across **15 plugins**. Built for full-stack TypeScript monorepos with React, Next.js, Hono, Prisma, and more.
5
+ **453 rules** across **15 plugins**. Built for full-stack TypeScript monorepos with React, Next.js, Hono, Prisma, and more.
6
6
 
7
7
  ## Installation
8
8
 
@@ -2307,20 +2307,6 @@ with (obj) {
2307
2307
  obj.foo = 1;
2308
2308
  ```
2309
2309
 
2310
- ### one-var
2311
-
2312
- Require one declaration per variable; never comma-combine declarations.
2313
-
2314
- ```js
2315
- // bad
2316
- const a = 1,
2317
- b = 2;
2318
-
2319
- // good
2320
- const a = 1;
2321
- const b = 2;
2322
- ```
2323
-
2324
2310
  ### operator-assignment
2325
2311
 
2326
2312
  Require shorthand operators where possible.
package/index.js CHANGED
@@ -278,10 +278,10 @@ const config = defineConfig({
278
278
  "eslint/require-unicode-regexp": ["error", { requireFlag: "v" }],
279
279
  // Block `@nocommit` markers from reaching main — a hard stop for WIP code.
280
280
  "no-warning-comments": ["error", { terms: ["@nocommit"] }],
281
- // New in oxlint 1.78 under `style`, where its upstream default ("always")
282
- // demands comma-combined declarations. Pin to "never": one declaration per
283
- // variable, matching how the fleet already writes.
284
- "one-var": ["error", "never"],
281
+ // Lives in `style`, which we bulk-enable, so it needs an explicit "off" —
282
+ // deleting this line would restore the upstream default ("always"), which
283
+ // demands comma-combined declarations.
284
+ "one-var": "off",
285
285
  // Restriction — core eslint (cherry-picked from the 90 rules in `restriction`)
286
286
  // Always use braces — prevents the dangling-else bug and ambiguous single-line bodies.
287
287
  curly: "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-config-awesomeness",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Oxlint config with sensible defaults.",
5
5
  "keywords": [
6
6
  "autofix",