@pobammer-ts/eslint-cease-nonsense-rules 1.5.3 → 1.7.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/README.md +594 -505
- package/dist/build-metadata.json +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1374 -436
- package/dist/index.js.map +41 -35
- package/dist/oxfmt-sync.d.ts +4 -0
- package/dist/oxfmt-sync.d.ts.map +1 -0
- package/dist/oxfmt-worker.d.ts +12 -0
- package/dist/oxfmt-worker.d.ts.map +1 -0
- package/dist/oxfmt-worker.js +172786 -0
- package/dist/oxfmt-worker.js.map +27 -0
- package/dist/recognizers/camel-case-detector.d.ts +2 -2
- package/dist/recognizers/camel-case-detector.d.ts.map +1 -0
- package/dist/recognizers/code-recognizer.d.ts +6 -6
- package/dist/recognizers/code-recognizer.d.ts.map +1 -0
- package/dist/recognizers/contains-detector.d.ts +2 -2
- package/dist/recognizers/contains-detector.d.ts.map +1 -0
- package/dist/recognizers/detector.d.ts +3 -4
- package/dist/recognizers/detector.d.ts.map +1 -0
- package/dist/recognizers/end-with-detector.d.ts +2 -2
- package/dist/recognizers/end-with-detector.d.ts.map +1 -0
- package/dist/recognizers/javascript-footprint.d.ts +2 -2
- package/dist/recognizers/javascript-footprint.d.ts.map +1 -0
- package/dist/recognizers/keywords-detector.d.ts +2 -2
- package/dist/recognizers/keywords-detector.d.ts.map +1 -0
- package/dist/rules/ban-instances.d.ts +1 -0
- package/dist/rules/ban-instances.d.ts.map +1 -0
- package/dist/rules/ban-react-fc.d.ts +1 -0
- package/dist/rules/ban-react-fc.d.ts.map +1 -0
- package/dist/rules/enforce-ianitor-check-type.d.ts +2 -1
- package/dist/rules/enforce-ianitor-check-type.d.ts.map +1 -0
- package/dist/rules/fast-format.d.ts +36 -0
- package/dist/rules/fast-format.d.ts.map +1 -0
- package/dist/rules/no-async-constructor.d.ts +1 -0
- package/dist/rules/no-async-constructor.d.ts.map +1 -0
- package/dist/rules/no-color3-constructor.d.ts +1 -0
- package/dist/rules/no-color3-constructor.d.ts.map +1 -0
- package/dist/rules/no-commented-code.d.ts +1 -0
- package/dist/rules/no-commented-code.d.ts.map +1 -0
- package/dist/rules/no-god-components.d.ts +14 -0
- package/dist/rules/no-god-components.d.ts.map +1 -0
- package/dist/rules/no-identity-map.d.ts +9 -0
- package/dist/rules/no-identity-map.d.ts.map +1 -0
- package/dist/rules/no-instance-methods-without-this.d.ts +1 -0
- package/dist/rules/no-instance-methods-without-this.d.ts.map +1 -0
- package/dist/rules/no-print.d.ts +1 -0
- package/dist/rules/no-print.d.ts.map +1 -0
- package/dist/rules/no-shorthand-names.d.ts +1 -0
- package/dist/rules/no-shorthand-names.d.ts.map +1 -0
- package/dist/rules/no-useless-use-spring.d.ts +1 -0
- package/dist/rules/no-useless-use-spring.d.ts.map +1 -0
- package/dist/rules/no-warn.d.ts +1 -0
- package/dist/rules/no-warn.d.ts.map +1 -0
- package/dist/rules/prefer-sequence-overloads.d.ts +1 -0
- package/dist/rules/prefer-sequence-overloads.d.ts.map +1 -0
- package/dist/rules/prefer-udim2-shorthand.d.ts +1 -0
- package/dist/rules/prefer-udim2-shorthand.d.ts.map +1 -0
- package/dist/rules/require-named-effect-functions.d.ts +4 -3
- package/dist/rules/require-named-effect-functions.d.ts.map +1 -0
- package/dist/rules/require-paired-calls.d.ts +1 -0
- package/dist/rules/require-paired-calls.d.ts.map +1 -0
- package/dist/rules/require-react-component-keys.d.ts +1 -0
- package/dist/rules/require-react-component-keys.d.ts.map +1 -0
- package/dist/rules/use-exhaustive-dependencies.d.ts +1 -0
- package/dist/rules/use-exhaustive-dependencies.d.ts.map +1 -0
- package/dist/rules/use-hook-at-top-level.d.ts +1 -0
- package/dist/rules/use-hook-at-top-level.d.ts.map +1 -0
- package/dist/types/oxfmt.d.ts +88 -0
- package/dist/types/oxfmt.d.ts.map +1 -0
- package/dist/{configure-utilities.d.ts → utilities/configure-utilities.d.ts} +18 -10
- package/dist/utilities/configure-utilities.d.ts.map +1 -0
- package/dist/utilities/error-utilities.d.ts +25 -0
- package/dist/utilities/error-utilities.d.ts.map +1 -0
- package/dist/utilities/format-utilities.d.ts +20 -0
- package/dist/utilities/format-utilities.d.ts.map +1 -0
- package/dist/utilities/typebox-utilities.d.ts +4 -0
- package/dist/utilities/typebox-utilities.d.ts.map +1 -0
- package/package.json +32 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { FormatOptions } from "oxfmt";
|
|
2
|
+
import { terminateWorker } from "../oxfmt-sync";
|
|
3
|
+
export interface Difference {
|
|
4
|
+
readonly operation: "INSERT" | "DELETE" | "REPLACE";
|
|
5
|
+
readonly offset: number;
|
|
6
|
+
readonly deleteText?: string;
|
|
7
|
+
readonly insertText?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function loadOxfmtConfig(): FormatOptions;
|
|
10
|
+
export declare function getExtension(filePath: string): string | undefined;
|
|
11
|
+
export declare function formatWithOxfmtSync(source: string, filePath: string): string;
|
|
12
|
+
export declare function generateDifferences(original: string, formatted: string): ReadonlyArray<Difference>;
|
|
13
|
+
export declare function showInvisibles(text: string): string;
|
|
14
|
+
declare function resetConfigCache(): void;
|
|
15
|
+
export declare const __testing: {
|
|
16
|
+
loadOxfmtConfig: typeof loadOxfmtConfig;
|
|
17
|
+
resetConfigCache: typeof resetConfigCache;
|
|
18
|
+
};
|
|
19
|
+
export { terminateWorker };
|
|
20
|
+
//# sourceMappingURL=format-utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/format-utilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAID,iBAAS,eAAe,IAAI,aAAa,CAsBxC;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUjE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,CAWlG;AAeD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,iBAAS,gBAAgB,IAAI,IAAI,CAEhC;AAED,eAAO,MAAM,SAAS;;;CAAwC,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TLocalizedValidationError } from "typebox/error";
|
|
2
|
+
export declare function toPrettyErrorsRaw(errors: ReadonlyArray<TLocalizedValidationError>, value: unknown): ReadonlyArray<string>;
|
|
3
|
+
export declare function toPrettyErrors(errors: ReadonlyArray<TLocalizedValidationError>, value: unknown): string;
|
|
4
|
+
//# sourceMappingURL=typebox-utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typebox-utilities.d.ts","sourceRoot":"","sources":["../../src/utilities/typebox-utilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAa/D,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAChD,KAAK,EAAE,OAAO,GACZ,aAAa,CAAC,MAAM,CAAC,CAUvB;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvG"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "HowManySmall",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"typebox": "^1.0.
|
|
4
|
+
"arkregex": "^0.0.5",
|
|
5
|
+
"oxc-parser": "^0.104.0",
|
|
6
|
+
"typebox": "^1.0.64"
|
|
7
7
|
},
|
|
8
8
|
"description": "A bunch of lints to prevent idiot mistakes I encounter with frequency.",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@biomejs/biome": "^2.3.
|
|
10
|
+
"@biomejs/biome": "^2.3.10",
|
|
11
|
+
"@jsr/cliffy__command": "^1.0.0-rc.8",
|
|
11
12
|
"@mitata/counters": "^0.0.8",
|
|
13
|
+
"@octokit/rest": "^22.0.1",
|
|
14
|
+
"@opencode-ai/plugin": "^1.0.105",
|
|
15
|
+
"@toon-format/toon": "^2.1.0",
|
|
12
16
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
13
|
-
"@types/bun": "
|
|
17
|
+
"@types/bun": "^1.3.5",
|
|
14
18
|
"@types/node": "^20.14.11",
|
|
15
19
|
"@typescript-eslint/parser": "^8.46.4",
|
|
16
20
|
"@typescript-eslint/types": "^8.46.4",
|
|
17
21
|
"@typescript-eslint/utils": "^8.46.4",
|
|
18
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
19
|
-
"
|
|
22
|
+
"@typescript/native-preview": "7.0.0-dev.20251219.1",
|
|
23
|
+
"arkenv": "^0.7.6",
|
|
24
|
+
"arktype": "^2.1.29",
|
|
20
25
|
"bumpp": "^10.3.2",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
26
|
+
"confbox": "^0.2.2",
|
|
27
|
+
"consola": "^3.4.2",
|
|
28
|
+
"eslint": "9.39.2",
|
|
29
|
+
"fast-xml-parser": "^5.3.2",
|
|
23
30
|
"lint-staged": "^16.2.7",
|
|
24
31
|
"mitata": "^1.0.34",
|
|
25
|
-
"oxfmt": "^0.
|
|
26
|
-
"oxlint": "^1.
|
|
27
|
-
"oxlint-tsgolint": "^0.
|
|
32
|
+
"oxfmt": "^0.19.0",
|
|
33
|
+
"oxlint": "^1.34.0",
|
|
34
|
+
"oxlint-tsgolint": "^0.10.0",
|
|
35
|
+
"picocolors": "^1.1.1",
|
|
36
|
+
"pretty-bytes": "^7.1.0",
|
|
37
|
+
"pretty-ms": "^9.3.0",
|
|
28
38
|
"simple-git-hooks": "^2.13.1",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
39
|
+
"ts-case-convert": "^2.1.0",
|
|
40
|
+
"type-fest": "^5.3.1",
|
|
41
|
+
"typescript": "^5.6.3"
|
|
32
42
|
},
|
|
33
43
|
"engines": {
|
|
34
44
|
"bun": ">=1.1.0",
|
|
@@ -43,14 +53,15 @@
|
|
|
43
53
|
"files": ["dist"],
|
|
44
54
|
"license": "MIT",
|
|
45
55
|
"lint-staged": {
|
|
46
|
-
"*": "bun run
|
|
56
|
+
"*": ["bun run lint:fix"]
|
|
47
57
|
},
|
|
48
58
|
"main": "./dist/index.js",
|
|
49
59
|
"name": "@pobammer-ts/eslint-cease-nonsense-rules",
|
|
60
|
+
"packageManager": "bun@1.3.5",
|
|
50
61
|
"peerDependencies": {
|
|
51
62
|
"@typescript-eslint/parser": "^8.46.4",
|
|
52
63
|
"@typescript-eslint/utils": "^8.46.4",
|
|
53
|
-
"eslint": "^9.
|
|
64
|
+
"eslint": "^9.39.2"
|
|
54
65
|
},
|
|
55
66
|
"publishConfig": {
|
|
56
67
|
"access": "public"
|
|
@@ -66,11 +77,13 @@
|
|
|
66
77
|
"dev": "bun x --bun tsgo -w",
|
|
67
78
|
"format": "bun x oxfmt",
|
|
68
79
|
"lint": "bun run oxc . && bun x --bun biome lint .",
|
|
80
|
+
"lint:fix": "bun run oxc . --fix && bun x --bun biome lint . --fix",
|
|
69
81
|
"oxc": "bun x oxlint --type-aware",
|
|
70
82
|
"prepare": "bun x --bun simple-git-hooks",
|
|
71
83
|
"prepublishOnly": "bun run build",
|
|
72
84
|
"release": "bumpp",
|
|
73
|
-
"
|
|
85
|
+
"test": "bun test",
|
|
86
|
+
"typecheck": "bun x --bun tsgo --noEmit",
|
|
74
87
|
"typecheck:safe": "bun x --bun tsc --noEmit"
|
|
75
88
|
},
|
|
76
89
|
"sideEffects": false,
|
|
@@ -79,5 +92,5 @@
|
|
|
79
92
|
},
|
|
80
93
|
"type": "module",
|
|
81
94
|
"types": "./dist/index.d.ts",
|
|
82
|
-
"version": "1.
|
|
95
|
+
"version": "1.7.0"
|
|
83
96
|
}
|