@timber-js/oxlint-plugin 0.1.0 → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ DONTFUCKINGUSE LICENSE
2
+
3
+ Copyright (c) 2025 Daniel Saewitz
4
+
5
+ This software may not be used, copied, modified, merged, published,
6
+ distributed, sublicensed, or sold by anyone other than the copyright holder.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
package/README.md CHANGED
@@ -8,13 +8,27 @@ The plugin adds to a general config such as `@switz/lint-config` and does not re
8
8
  pnpm add -D @timber-js/oxlint-plugin
9
9
  ```
10
10
 
11
+ Then extend the recommended preset, which loads the plugin and turns on every rule:
12
+
13
+ ```json
14
+ {
15
+ "extends": [
16
+ "./node_modules/@switz/lint-config/oxlint.json",
17
+ "./node_modules/@timber-js/oxlint-plugin/recommended.json"
18
+ ]
19
+ }
20
+ ```
21
+
22
+ oxlint does not turn on a plugin's rules by itself, and its `extends` takes file paths, not package names, so the preset is referenced through `node_modules`. New rules are added to the preset as they ship.
23
+
24
+ To pick rules yourself instead, load the plugin and name each rule:
25
+
11
26
  ```json
12
27
  {
13
28
  "jsPlugins": ["@timber-js/oxlint-plugin"],
14
29
  "rules": {
15
30
  "timber/no-ignored-nextjs-config": "error",
16
- "timber/server-fetch-needs-signal": "error",
17
- "timber/no-manual-param-parsing": "error"
31
+ "timber/server-fetch-needs-signal": "warn"
18
32
  }
19
33
  }
20
34
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timber-js/oxlint-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "oxlint rules for timber.js apps: file conventions, module environments, and the bugs real apps shipped",
5
5
  "keywords": [
6
6
  "oxlint",
@@ -16,15 +16,13 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
+ "recommended.json",
19
20
  "README.md"
20
21
  ],
21
22
  "type": "module",
22
23
  "exports": {
23
- ".": "./dist/index.js"
24
- },
25
- "scripts": {
26
- "build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node22 --outfile=dist/index.js",
27
- "prepublishOnly": "pnpm run build"
24
+ ".": "./dist/index.js",
25
+ "./recommended.json": "./recommended.json"
28
26
  },
29
27
  "devDependencies": {
30
28
  "@oxlint/plugins": "1.93.0",
@@ -35,5 +33,8 @@
35
33
  },
36
34
  "engines": {
37
35
  "node": ">=22"
36
+ },
37
+ "scripts": {
38
+ "build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node22 --outfile=dist/index.js"
38
39
  }
39
- }
40
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "jsPlugins": ["./dist/index.js"],
3
+ "rules": {
4
+ "timber/no-ignored-nextjs-config": "error",
5
+ "timber/server-fetch-needs-signal": "error",
6
+ "timber/no-manual-param-parsing": "error"
7
+ }
8
+ }