@totto2727/oxlint 0.0.0-stage → 0.1.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/dist/preset.js ADDED
@@ -0,0 +1,6 @@
1
+ import { n as effectRuleNames, r as typescriptRuleNames } from "./rule-groups-jUlABfyW.js";
2
+ import { t as createPreset } from "./preset-builder-Qxb4CeX1.js";
3
+ //#region src/preset.ts
4
+ var preset_default = createPreset([...typescriptRuleNames, ...effectRuleNames]);
5
+ //#endregion
6
+ export { preset_default as default };
@@ -0,0 +1,43 @@
1
+ //#region src/rule-groups.ts
2
+ const typescriptRuleNames = [
3
+ "consistent-import-extension",
4
+ "no-eslint-disable-comments",
5
+ "no-jsx-script-tag",
6
+ "no-let",
7
+ "no-redundant-alias",
8
+ "no-string-style",
9
+ "require-disable-reason",
10
+ "require-import-extension"
11
+ ];
12
+ const effectRuleNames = [
13
+ "force-array-empty",
14
+ "force-iterable-empty",
15
+ "force-predicate",
16
+ "force-string-empty",
17
+ "no-effect-runtime-run",
18
+ "no-bigint-literals",
19
+ "no-import-from-barrel-package",
20
+ "no-opaque-instance-fields",
21
+ "no-unused-internal",
22
+ "no-error-cause-option",
23
+ "no-error-property-access",
24
+ "no-fetch",
25
+ "no-instanceof-error",
26
+ "no-js-date",
27
+ "no-node-imports",
28
+ "no-option-tag-comparison",
29
+ "no-raw-hono-create-middleware",
30
+ "no-sync-decode",
31
+ "no-type-predicate",
32
+ "prefer-is-nullish",
33
+ "prefer-non-unknown-decode",
34
+ "require-top-level-decoder"
35
+ ];
36
+ const compatibilityRuleNames = [
37
+ "force-ts-extension",
38
+ "no-effect-import-as",
39
+ "no-effect-subpath-import",
40
+ "no-js-extension-imports"
41
+ ];
42
+ //#endregion
43
+ export { effectRuleNames as n, typescriptRuleNames as r, compatibilityRuleNames as t };
@@ -0,0 +1,4 @@
1
+ //#region src/typescript.d.ts
2
+ declare const _default: import("oxlint").OxlintConfig;
3
+ //#endregion
4
+ export { _default as default };
@@ -0,0 +1,6 @@
1
+ import { r as typescriptRuleNames } from "./rule-groups-jUlABfyW.js";
2
+ import { t as createPreset } from "./preset-builder-Qxb4CeX1.js";
3
+ //#region src/typescript.ts
4
+ var typescript_default = createPreset(typescriptRuleNames);
5
+ //#endregion
6
+ export { typescript_default as default };
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@totto2727/oxlint",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Custom Oxlint rules and preset for Effect-oriented TypeScript projects",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/totto2727-org/oxlint.git"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "THIRD-PARTY-NOTICES.md"
13
+ ],
14
+ "type": "module",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ },
21
+ "./preset": {
22
+ "types": "./dist/preset.d.ts",
23
+ "import": "./dist/preset.js"
24
+ },
25
+ "./typescript": {
26
+ "types": "./dist/typescript.d.ts",
27
+ "import": "./dist/typescript.js"
28
+ },
29
+ "./effect": {
30
+ "types": "./dist/effect.d.ts",
31
+ "import": "./dist/effect.js"
32
+ }
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "registry": "https://registry.npmjs.org/"
37
+ },
38
+ "dependencies": {
39
+ "@oxlint/plugins": "^1.85.0",
40
+ "effect": "^4.0.1",
41
+ "oxlint": "^1.85.0",
42
+ "typescript-api": "npm:typescript@^6.0.3"
43
+ },
44
+ "devDependencies": {
45
+ "@tsconfig/node-ts": "^23.6.4",
46
+ "@tsconfig/strictest": "^2.0.8",
47
+ "@types/node": "^24.13.4",
48
+ "typescript": "^7.0.2",
49
+ "vite-plus": "^1.0.0",
50
+ "vitest": "^5.0.1"
51
+ },
52
+ "engines": {
53
+ "node": ">=24"
54
+ }
6
55
  }