@foldkit/oxlint-plugin 0.2.0 → 0.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/oxlint-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Oxlint rules for Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -8,12 +8,15 @@
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": "./dist/index.js"
11
- }
11
+ },
12
+ "./recommended.json": "./recommended.json",
13
+ "./all.json": "./all.json"
12
14
  },
13
15
  "dependencies": {
14
16
  "effect-oxlint": "^0.3.2"
15
17
  },
16
18
  "devDependencies": {
19
+ "@types/node": "^25.9.3",
17
20
  "effect": "4.0.0-beta.88",
18
21
  "esbuild": "^0.28.1",
19
22
  "rimraf": "^6.1.3",
@@ -21,7 +24,9 @@
21
24
  "vitest": "^4.1.9"
22
25
  },
23
26
  "files": [
24
- "dist"
27
+ "dist",
28
+ "recommended.json",
29
+ "all.json"
25
30
  ],
26
31
  "keywords": [
27
32
  "foldkit",
@@ -43,8 +48,8 @@
43
48
  "node": ">=20.19.0 || >=22.12.0"
44
49
  },
45
50
  "scripts": {
46
- "clean": "rimraf dist *.tsbuildinfo",
47
- "build": "pnpm run clean && esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js",
51
+ "clean": "rimraf dist recommended.json all.json *.tsbuildinfo",
52
+ "build": "pnpm run clean && esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js && node scripts/generate-presets.mjs",
48
53
  "test": "vitest run",
49
54
  "typecheck": "tsc --noEmit"
50
55
  }
@@ -0,0 +1,68 @@
1
+ {
2
+ "jsPlugins": [
3
+ {
4
+ "name": "foldkit",
5
+ "specifier": "@foldkit/oxlint-plugin"
6
+ }
7
+ ],
8
+ "rules": {
9
+ "foldkit/command-binding-matches-name": "error",
10
+ "foldkit/command-define-pascal-const": "error",
11
+ "foldkit/got-prefix-requires-submodel-payload": "error",
12
+ "foldkit/got-submodel-message-name": "error",
13
+ "foldkit/got-wrapper-carries-only-routing": "error",
14
+ "foldkit/keyed-required-for-mapped-rows": "error",
15
+ "foldkit/lazy-view-stable-references": "error",
16
+ "foldkit/message-binding-matches-tag": "error",
17
+ "foldkit/mount-factory-must-use-element": "error",
18
+ "foldkit/no-array-index-view-keys": "error",
19
+ "foldkit/no-child-message-construction-in-root": "error",
20
+ "foldkit/no-disabling-dev-guardrails": "error",
21
+ "foldkit/no-duplicate-onmount-per-element": "error",
22
+ "foldkit/no-empty-object-tagged-call": "error",
23
+ "foldkit/no-hand-rolled-command-struct": "error",
24
+ "foldkit/no-hardcoded-route-strings": "error",
25
+ "foldkit/no-module-level-mutable-state": "error",
26
+ "foldkit/no-noop-message": "error",
27
+ "foldkit/no-raw-dom-event-attributes": "error",
28
+ "foldkit/no-spread-in-evo": "error",
29
+ "foldkit/prefer-callable-message-constructor": "error",
30
+ "foldkit/require-rel-for-external-link": "error",
31
+ "foldkit/selection-submodel-factory-at-module-scope": "error",
32
+ "foldkit/wrap-child-output-in-got-message": "error"
33
+ },
34
+ "overrides": [
35
+ {
36
+ "files": [
37
+ "**/*.test.ts",
38
+ "**/*.test.tsx"
39
+ ],
40
+ "rules": {
41
+ "foldkit/command-binding-matches-name": "off",
42
+ "foldkit/command-define-pascal-const": "off",
43
+ "foldkit/got-prefix-requires-submodel-payload": "off",
44
+ "foldkit/got-submodel-message-name": "off",
45
+ "foldkit/got-wrapper-carries-only-routing": "off",
46
+ "foldkit/keyed-required-for-mapped-rows": "off",
47
+ "foldkit/lazy-view-stable-references": "off",
48
+ "foldkit/message-binding-matches-tag": "off",
49
+ "foldkit/mount-factory-must-use-element": "off",
50
+ "foldkit/no-array-index-view-keys": "off",
51
+ "foldkit/no-child-message-construction-in-root": "off",
52
+ "foldkit/no-disabling-dev-guardrails": "off",
53
+ "foldkit/no-duplicate-onmount-per-element": "off",
54
+ "foldkit/no-empty-object-tagged-call": "off",
55
+ "foldkit/no-hand-rolled-command-struct": "off",
56
+ "foldkit/no-hardcoded-route-strings": "off",
57
+ "foldkit/no-module-level-mutable-state": "off",
58
+ "foldkit/no-noop-message": "off",
59
+ "foldkit/no-raw-dom-event-attributes": "off",
60
+ "foldkit/no-spread-in-evo": "off",
61
+ "foldkit/prefer-callable-message-constructor": "off",
62
+ "foldkit/require-rel-for-external-link": "off",
63
+ "foldkit/selection-submodel-factory-at-module-scope": "off",
64
+ "foldkit/wrap-child-output-in-got-message": "off"
65
+ }
66
+ }
67
+ ]
68
+ }