@gameroman/config 0.0.2 → 0.0.4

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
3
  "vcs": {
4
4
  "enabled": true,
5
5
  "clientKind": "git",
@@ -18,8 +18,10 @@
18
18
  "linter": {
19
19
  "rules": {
20
20
  "style": {
21
- "useNodejsImportProtocol": "error"
22
- }
21
+ "useNodejsImportProtocol": "error",
22
+ "noNonNullAssertion": "error"
23
+ },
24
+ "suspicious": { "noExplicitAny": "error" }
23
25
  }
24
26
  },
25
27
  "html": {
package/dist/oxfmt.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { FormatOptions } from "oxfmt";
1
+ import { FormatConfig } from "oxfmt";
2
2
 
3
3
  //#region src/configs/oxfmt.d.ts
4
- declare const config: FormatOptions;
4
+ declare const config: FormatConfig;
5
5
  //#endregion
6
- export { config as default };
6
+ export { config };
package/dist/oxfmt.mjs CHANGED
@@ -1,8 +1,7 @@
1
- import { defineConfig } from "oxfmt";
2
1
  //#region src/configs/oxfmt.ts
3
- const config = defineConfig({
2
+ const config = {
4
3
  printWidth: 80,
5
4
  sortImports: {}
6
- });
5
+ };
7
6
  //#endregion
8
- export { config as default };
7
+ export { config };
@@ -2,5 +2,6 @@ import { OxlintConfig } from "oxlint";
2
2
 
3
3
  //#region src/configs/oxlint/typeaware.d.ts
4
4
  declare const config: OxlintConfig;
5
+ declare function defineConfig(options?: OxlintConfig): OxlintConfig;
5
6
  //#endregion
6
- export { config as default };
7
+ export { config, defineConfig };
@@ -1,19 +1,25 @@
1
- import { defineConfig } from "oxlint";
1
+ import { defineConfig as defineConfig$1 } from "../oxlint.mjs";
2
2
  //#region src/configs/oxlint/typeaware.ts
3
- const config = defineConfig({
3
+ const config = defineConfig$1({
4
4
  options: {
5
5
  typeAware: true,
6
6
  typeCheck: true
7
7
  },
8
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",
9
+ "typescript/no-floating-promises": "error",
10
+ "typescript/no-misused-promises": ["error", { checksVoidReturn: { arguments: false } }],
15
11
  "typescript/no-unnecessary-type-assertion": "error"
16
12
  }
17
13
  });
14
+ function defineConfig(options) {
15
+ return {
16
+ ...config,
17
+ ...options,
18
+ rules: {
19
+ ...config.rules,
20
+ ...options?.rules
21
+ }
22
+ };
23
+ }
18
24
  //#endregion
19
- export { config as default };
25
+ export { config, defineConfig };
package/dist/oxlint.d.mts CHANGED
@@ -2,5 +2,6 @@ import { OxlintConfig } from "oxlint";
2
2
 
3
3
  //#region src/configs/oxlint/default.d.ts
4
4
  declare const config: OxlintConfig;
5
+ declare function defineConfig(options?: OxlintConfig): OxlintConfig;
5
6
  //#endregion
6
- export { config as default };
7
+ export { config, defineConfig };
package/dist/oxlint.mjs CHANGED
@@ -1,12 +1,22 @@
1
- import { defineConfig } from "oxlint";
2
1
  //#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",
2
+ const config = { rules: {
3
+ "no-eval": "error",
4
+ "no-explicit-any": "error",
7
5
  "no-this-alias": "error",
6
+ "no-unused-vars": "error",
7
+ "no-var": "error",
8
8
  "prefer-const": "error",
9
- "no-explicit-any": "error"
10
- } });
9
+ "prefer-node-protocol": "error"
10
+ } };
11
+ function defineConfig(options) {
12
+ return {
13
+ ...config,
14
+ ...options,
15
+ rules: {
16
+ ...config.rules,
17
+ ...options?.rules
18
+ }
19
+ };
20
+ }
11
21
  //#endregion
12
- export { config as default };
22
+ export { config, defineConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gameroman/config",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,20 +15,20 @@
15
15
  "./oxlint": "./dist/oxlint.mjs",
16
16
  "./oxlint/typeaware": "./dist/oxlint/typeaware.mjs",
17
17
  "./package.json": "./package.json",
18
- "./biome": "./dist/biome.json"
18
+ "./biome": "./dist/biome/default.json"
19
19
  },
20
20
  "scripts": {
21
- "format": "oxfmt",
22
21
  "lint": "oxlint",
22
+ "format": "oxfmt && oxlint --fix",
23
23
  "build": "tsdown",
24
24
  "prepublishOnly": "bun run build"
25
25
  },
26
26
  "devDependencies": {
27
- "@biomejs/biome": "^2.4.7",
28
- "oxfmt": "^0.40.0",
29
- "oxlint": "^1.54.0",
30
- "oxlint-tsgolint": "^0.17.0",
31
- "tsdown": "^0.21.3",
27
+ "@biomejs/biome": "^2.4.8",
28
+ "oxfmt": "^0.41.0",
29
+ "oxlint": "^1.56.0",
30
+ "oxlint-tsgolint": "^0.17.1",
31
+ "tsdown": "^0.21.4",
32
32
  "typescript": "^5.9.3"
33
33
  },
34
34
  "peerDependencies": {