@gameroman/config 0.0.0 → 0.0.2

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.
@@ -0,0 +1,6 @@
1
+ import { FormatOptions } from "oxfmt";
2
+
3
+ //#region src/configs/oxfmt.d.ts
4
+ declare const config: FormatOptions;
5
+ //#endregion
6
+ export { config as default };
package/dist/oxfmt.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "oxfmt";
2
+ //#region src/configs/oxfmt.ts
3
+ const config = defineConfig({
4
+ printWidth: 80,
5
+ sortImports: {}
6
+ });
7
+ //#endregion
8
+ export { config as default };
@@ -0,0 +1,6 @@
1
+ import { OxlintConfig } from "oxlint";
2
+
3
+ //#region src/configs/oxlint/typeaware.d.ts
4
+ declare const config: OxlintConfig;
5
+ //#endregion
6
+ export { config as default };
@@ -0,0 +1,19 @@
1
+ import { defineConfig } from "oxlint";
2
+ //#region src/configs/oxlint/typeaware.ts
3
+ const config = defineConfig({
4
+ options: {
5
+ typeAware: true,
6
+ typeCheck: true
7
+ },
8
+ rules: {
9
+ "prefer-node-protocol": "error",
10
+ "no-var": "error",
11
+ "no-unused-vars": "error",
12
+ "no-this-alias": "error",
13
+ "prefer-const": "error",
14
+ "no-explicit-any": "error",
15
+ "typescript/no-unnecessary-type-assertion": "error"
16
+ }
17
+ });
18
+ //#endregion
19
+ export { config as default };
@@ -0,0 +1,6 @@
1
+ import { OxlintConfig } from "oxlint";
2
+
3
+ //#region src/configs/oxlint/default.d.ts
4
+ declare const config: OxlintConfig;
5
+ //#endregion
6
+ export { config as default };
@@ -0,0 +1,12 @@
1
+ import { defineConfig } from "oxlint";
2
+ //#region src/configs/oxlint/default.ts
3
+ const config = defineConfig({ rules: {
4
+ "prefer-node-protocol": "error",
5
+ "no-var": "error",
6
+ "no-unused-vars": "error",
7
+ "no-this-alias": "error",
8
+ "prefer-const": "error",
9
+ "no-explicit-any": "error"
10
+ } });
11
+ //#endregion
12
+ export { config as default };
package/package.json CHANGED
@@ -1,32 +1,34 @@
1
1
  {
2
2
  "name": "@gameroman/config",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/gameroman/config.git"
8
8
  },
9
9
  "files": [
10
- "configs"
10
+ "dist"
11
11
  ],
12
12
  "type": "module",
13
13
  "exports": {
14
- ".": "./dist/index.mjs",
15
- "./biome": "./configs/biome.json",
16
- "./oxfmt": "./configs/oxfmt.ts",
17
- "./oxlint": "./configs/oxlint/default.ts",
18
- "./oxlint/typeaware": "./configs/oxlint/typeaware.ts",
19
- "./package.json": "./package.json"
14
+ "./oxfmt": "./dist/oxfmt.mjs",
15
+ "./oxlint": "./dist/oxlint.mjs",
16
+ "./oxlint/typeaware": "./dist/oxlint/typeaware.mjs",
17
+ "./package.json": "./package.json",
18
+ "./biome": "./dist/biome.json"
20
19
  },
21
20
  "scripts": {
22
21
  "format": "oxfmt",
23
- "lint": "oxlint"
22
+ "lint": "oxlint",
23
+ "build": "tsdown",
24
+ "prepublishOnly": "bun run build"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@biomejs/biome": "^2.4.7",
27
28
  "oxfmt": "^0.40.0",
28
29
  "oxlint": "^1.54.0",
29
30
  "oxlint-tsgolint": "^0.17.0",
31
+ "tsdown": "^0.21.3",
30
32
  "typescript": "^5.9.3"
31
33
  },
32
34
  "peerDependencies": {
@@ -48,6 +50,9 @@
48
50
  },
49
51
  "oxlint-tsgolint": {
50
52
  "optional": true
53
+ },
54
+ "typescript": {
55
+ "optional": true
51
56
  }
52
57
  }
53
58
  }
package/configs/oxfmt.ts DELETED
@@ -1,6 +0,0 @@
1
- import { defineConfig } from "oxfmt";
2
-
3
- export default defineConfig({
4
- printWidth: 80,
5
- sortImports: {},
6
- });
@@ -1,12 +0,0 @@
1
- import { defineConfig } from "oxlint";
2
-
3
- export default defineConfig({
4
- rules: {
5
- "prefer-node-protocol": "error",
6
- "no-var": "error",
7
- "no-unused-vars": "error",
8
- "no-this-alias": "error",
9
- "prefer-const": "error",
10
- "no-explicit-any": "error",
11
- },
12
- });
@@ -1,18 +0,0 @@
1
- import { defineConfig } from "oxlint";
2
-
3
- export default defineConfig({
4
- options: {
5
- typeAware: true,
6
- typeCheck: true,
7
- },
8
- rules: {
9
- "prefer-node-protocol": "error",
10
- "no-var": "error",
11
- "no-unused-vars": "error",
12
- "no-this-alias": "error",
13
- "prefer-const": "error",
14
- "no-explicit-any": "error",
15
-
16
- "typescript/no-unnecessary-type-assertion": "error",
17
- },
18
- });
File without changes