@pobammer-ts/small-rules 2.5.0 → 2.6.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +33 -0
  2. package/dist/index.js +10 -10
  3. package/package.json +129 -128
package/package.json CHANGED
@@ -1,129 +1,130 @@
1
1
  {
2
- "name": "@pobammer-ts/small-rules",
3
- "version": "2.5.0",
4
- "description": "Various Oxlint-native rules for linting roblox-ts projects.",
5
- "keywords": [
6
- "lint",
7
- "linter",
8
- "linting",
9
- "oxlint",
10
- "roblox-ts",
11
- "typescript"
12
- ],
13
- "homepage": "https://github.com/howmanysmall/small-rules#readme",
14
- "bugs": {
15
- "url": "https://github.com/howmanysmall/small-rules/issues"
16
- },
17
- "license": "MIT",
18
- "author": "HowManySmall",
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/howmanysmall/small-rules.git"
22
- },
23
- "files": [
24
- "dist"
25
- ],
26
- "type": "module",
27
- "sideEffects": false,
28
- "exports": {
29
- ".": {
30
- "default": "./dist/index.js",
31
- "types": "./dist/index.d.ts"
32
- },
33
- "./package.json": "./package.json"
34
- },
35
- "publishConfig": {
36
- "access": "public"
37
- },
38
- "scripts": {
39
- "biome": "biome",
40
- "build": "tsdown",
41
- "build-json": "bun run scripts/generate-default-properties.ts",
42
- "build:local": "node --run build -- --minify && cp dist/index.js plugins/small-rules.js",
43
- "build:local:dev": "node --run build && cp dist/index.js plugins/small-rules.js",
44
- "changelogithub": "changelogithub",
45
- "commitlint": "commitlint",
46
- "format": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --fix $a && node --run oxfmt -- $a' _",
47
- "format:check": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --no-errors-on-unmatched $a && node --run oxfmt -- --no-error-on-unmatched-pattern --check $a' _",
48
- "format:safe": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --no-errors-on-unmatched --fix $a && node --run oxfmt -- --no-error-on-unmatched-pattern $a' _",
49
- "hooks:install": "hk install --mise",
50
- "hooks:validate": "hk validate",
51
- "jscpd": "jscpd",
52
- "knip": "knip-bun",
53
- "lint": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run oxlint -- --no-error-on-unmatched-pattern $a && node --run biome -- check --no-errors-on-unmatched $a' _",
54
- "lint:agent": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run oxlint -- --no-error-on-unmatched-pattern --format agent $a && node --run biome -- check --no-errors-on-unmatched --reporter concise $a' _",
55
- "lint:json": "bun run --bun scripts/lint-json.ts",
56
- "oxfmt": "oxfmt",
57
- "oxlint": "oxlint",
58
- "prepublish": "tsdown --minify",
59
- "release": "bumpp",
60
- "skills": "skills",
61
- "test": "vitest run",
62
- "test:agent": "vitest run --reporter agent",
63
- "test:fuzz": "vitiate regression --config vitest.vitiate.config.ts",
64
- "test:fuzz:run": "vitiate fuzz --fuzz-time 10 --config vitest.vitiate.config.ts",
65
- "test:mutation": "stryker run",
66
- "tsgo": "tsgo",
67
- "type-check": "tsgo --noEmit",
68
- "type-check:agent": "tsgo --noEmit --pretty false"
69
- },
70
- "dependencies": {
71
- "arktype": "catalog:prod",
72
- "ignore": "catalog:prod",
73
- "minimatch": "catalog:prod",
74
- "oxc-parser": "catalog:prod",
75
- "oxc-resolver": "catalog:prod",
76
- "oxlint-plugin-utilities": "catalog:prod"
77
- },
78
- "devDependencies": {
79
- "@biomejs/biome": "catalog:lint",
80
- "@cliffy/command": "catalog:dev",
81
- "@commitlint/config-conventional": "catalog:dev",
82
- "@commitlint/types": "catalog:dev",
83
- "@fast-check/vitest": "catalog:test",
84
- "@octokit/rest": "catalog:dev",
85
- "@std/msgpack": "catalog:dev",
86
- "@stryker-mutator/api": "catalog:dev",
87
- "@stryker-mutator/core": "catalog:dev",
88
- "@stryker-mutator/vitest-runner": "catalog:test",
89
- "@total-typescript/ts-reset": "catalog:dev",
90
- "@types/bun": "catalog:types",
91
- "@types/node": "catalog:types",
92
- "@typescript/native-preview": "catalog:dev",
93
- "@vitest/coverage-v8": "catalog:test",
94
- "@vitiate/core": "catalog:dev",
95
- "@vitiate/fuzzed-data-provider": "catalog:dev",
96
- "bumpp": "catalog:dev",
97
- "changelogithub": "catalog:dev",
98
- "commitlint": "catalog:dev",
99
- "eslint": "catalog:lint",
100
- "eslint-plugin-antfu": "catalog:lint",
101
- "eslint-plugin-regexp": "catalog:lint",
102
- "eslint-plugin-sonarjs": "catalog:lint",
103
- "eslint-plugin-unused-imports": "catalog:lint",
104
- "fast-check": "catalog:dev",
105
- "fdir": "catalog:dev",
106
- "get-tsconfig": "catalog:dev",
107
- "jiti": "catalog:dev",
108
- "jscpd": "catalog:dev",
109
- "knip": "catalog:lint",
110
- "oxfmt": "catalog:dev",
111
- "oxlint": "catalog:dev",
112
- "oxlint-tsgolint": "catalog:dev",
113
- "pncat": "catalog:dev",
114
- "sfw": "catalog:dev",
115
- "skills": "catalog:dev",
116
- "tsdown": "catalog:build",
117
- "type-fest": "catalog:dev",
118
- "vitest": "catalog:test",
119
- "vitiate": "catalog:dev",
120
- "zx": "catalog:dev"
121
- },
122
- "peerDependencies": {
123
- "typescript": ">=5 <8"
124
- },
125
- "engines": {
126
- "node": "^20.19.0 || >=22.12.0"
127
- },
128
- "packageManager": "pnpm@11.10.0"
129
- }
2
+ "name": "@pobammer-ts/small-rules",
3
+ "version": "2.6.0",
4
+ "description": "Various Oxlint-native rules for linting roblox-ts projects.",
5
+ "keywords": [
6
+ "lint",
7
+ "linter",
8
+ "linting",
9
+ "oxlint",
10
+ "roblox-ts",
11
+ "typescript"
12
+ ],
13
+ "homepage": "https://github.com/howmanysmall/small-rules#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/howmanysmall/small-rules/issues"
16
+ },
17
+ "license": "MIT",
18
+ "author": "HowManySmall",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/howmanysmall/small-rules.git"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "type": "module",
27
+ "sideEffects": false,
28
+ "exports": {
29
+ ".": {
30
+ "default": "./dist/index.js",
31
+ "types": "./dist/index.d.ts"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "dependencies": {
39
+ "arktype": "2.2.3",
40
+ "ignore": "7.0.6",
41
+ "minimatch": "10.2.5",
42
+ "oxc-parser": "0.139.0",
43
+ "oxc-resolver": "11.23.0",
44
+ "oxlint-plugin-utilities": "1.1.0"
45
+ },
46
+ "devDependencies": {
47
+ "@biomejs/biome": "2.5.3",
48
+ "@cliffy/command": "npm:@jsr/cliffy__command@1.2.1",
49
+ "@commitlint/config-conventional": "21.2.0",
50
+ "@commitlint/types": "21.2.0",
51
+ "@fast-check/vitest": "0.4.1",
52
+ "@octokit/rest": "22.0.1",
53
+ "@std/msgpack": "npm:@jsr/std__msgpack@1.0.3",
54
+ "@stryker-mutator/api": "9.6.1",
55
+ "@stryker-mutator/core": "9.6.1",
56
+ "@stryker-mutator/vitest-runner": "9.6.1",
57
+ "@total-typescript/ts-reset": "0.6.1",
58
+ "@types/bun": "1.3.14",
59
+ "@types/node": "25",
60
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
61
+ "@vitest/coverage-v8": "4.1.10",
62
+ "@vitiate/core": "0.3.1",
63
+ "@vitiate/fuzzed-data-provider": "0.3.1",
64
+ "bumpp": "11.1.0",
65
+ "changelogithub": "14.0.0",
66
+ "commitlint": "21.2.1",
67
+ "confbox": "0.2.4",
68
+ "eslint": "10.7.0",
69
+ "eslint-plugin-antfu": "3.2.3",
70
+ "eslint-plugin-regexp": "3.1.1",
71
+ "eslint-plugin-sonarjs": "4.1.0",
72
+ "eslint-plugin-unused-imports": "4.4.1",
73
+ "fast-check": "4.9.0",
74
+ "fdir": "6.5.0",
75
+ "get-tsconfig": "4.14.0",
76
+ "jiti": "2.7.0",
77
+ "jscpd": "5.0.12",
78
+ "knip": "6.26.0",
79
+ "oxfmt": "0.58.0",
80
+ "oxlint": "1.73.0",
81
+ "oxlint-tsgolint": "0.24.0",
82
+ "pncat": "0.12.0",
83
+ "sfw": "2.0.6",
84
+ "skills": "1.5.16",
85
+ "tsdown": "0.22.5",
86
+ "type-fest": "5.8.0",
87
+ "vitest": "4.1.10",
88
+ "vitiate": "0.3.1",
89
+ "zx": "8.8.5"
90
+ },
91
+ "peerDependencies": {
92
+ "typescript": ">=5 <8"
93
+ },
94
+ "engines": {
95
+ "node": "^20.19.0 || >=22.12.0"
96
+ },
97
+ "scripts": {
98
+ "biome": "biome",
99
+ "build": "tsdown",
100
+ "build:local": "node --run build -- --minify && cp dist/index.js plugins/small-rules.js",
101
+ "build:local:dev": "node --run build && cp dist/index.js plugins/small-rules.js",
102
+ "changelogithub": "changelogithub",
103
+ "commitlint": "commitlint",
104
+ "format": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --fix $a && node --run oxfmt -- $a' _",
105
+ "format:check": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --no-errors-on-unmatched $a && node --run oxfmt -- --no-error-on-unmatched-pattern --check $a' _",
106
+ "format:safe": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run biome -- check --no-errors-on-unmatched --fix $a && node --run oxfmt -- --no-error-on-unmatched-pattern $a' _",
107
+ "generate:default-properties": "nub scripts/generate-default-properties.ts",
108
+ "generate:roblox-yielding-members": "nub scripts/generate-roblox-yielding-members.ts && node --run format:safe -- src/generated/roblox-yielding-members.ts",
109
+ "hooks:install": "hk install --mise",
110
+ "hooks:validate": "hk validate",
111
+ "jscpd": "jscpd",
112
+ "knip": "knip-bun",
113
+ "lint": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run oxlint -- --no-error-on-unmatched-pattern $a && node --run biome -- check --no-errors-on-unmatched $a' _",
114
+ "lint:agent": "bash -c 'a=$(bash scripts/get-defaults.sh \"$@\"); node --run oxlint -- --no-error-on-unmatched-pattern --format agent $a && node --run biome -- check --no-errors-on-unmatched --reporter concise $a' _",
115
+ "lint:json": "bun run --bun scripts/lint-json.ts",
116
+ "oxfmt": "oxfmt",
117
+ "oxlint": "oxlint",
118
+ "prepublish": "tsdown --minify",
119
+ "release": "bumpp",
120
+ "skills": "skills",
121
+ "test": "vitest run",
122
+ "test:agent": "vitest run --reporter agent",
123
+ "test:fuzz": "vitiate regression --config vitest.vitiate.config.ts",
124
+ "test:fuzz:run": "vitiate fuzz --fuzz-time 10 --config vitest.vitiate.config.ts",
125
+ "test:mutation": "stryker run",
126
+ "tsgo": "tsgo",
127
+ "type-check": "tsgo --noEmit",
128
+ "type-check:agent": "tsgo --noEmit --pretty false"
129
+ }
130
+ }