@drskillissue/ganko 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/LICENSE +21 -0
- package/README.md +430 -0
- package/dist/chunk-JBBGDG7M.js +1943 -0
- package/dist/chunk-JBBGDG7M.js.map +1 -0
- package/dist/chunk-RB7SZIJX.js +37396 -0
- package/dist/chunk-RB7SZIJX.js.map +1 -0
- package/dist/eslint-plugin.cjs +37216 -0
- package/dist/eslint-plugin.cjs.map +1 -0
- package/dist/eslint-plugin.d.cts +40 -0
- package/dist/eslint-plugin.d.ts +40 -0
- package/dist/eslint-plugin.js +301 -0
- package/dist/eslint-plugin.js.map +1 -0
- package/dist/index.cjs +39583 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3133 -0
- package/dist/index.d.ts +3133 -0
- package/dist/index.js +358 -0
- package/dist/index.js.map +1 -0
- package/dist/rules-manifest.cjs +1972 -0
- package/dist/rules-manifest.cjs.map +1 -0
- package/dist/rules-manifest.d.cts +33 -0
- package/dist/rules-manifest.d.ts +33 -0
- package/dist/rules-manifest.js +13 -0
- package/dist/rules-manifest.js.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RuleSeverityOverride } from '@drskillissue/ganko-shared';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AUTO-GENERATED — DO NOT EDIT
|
|
5
|
+
*
|
|
6
|
+
* Rule metadata manifest for all ganko rules.
|
|
7
|
+
* Regenerate: bun run scripts/generate-rules-manifest.ts
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** Rule category for grouping in configuration UIs and documentation. */
|
|
11
|
+
type RuleCategory = "correctness" | "css-a11y" | "css-animation" | "css-cascade" | "css-jsx" | "css-layout" | "css-property" | "css-selector" | "css-structure" | "jsx" | "performance" | "reactivity" | "solid";
|
|
12
|
+
/** Plugin that owns the rule. */
|
|
13
|
+
type RulePlugin = "cross-file" | "css" | "solid";
|
|
14
|
+
/** Static metadata for a single lint rule. */
|
|
15
|
+
interface RuleEntry {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly severity: RuleSeverityOverride;
|
|
18
|
+
readonly description: string;
|
|
19
|
+
readonly fixable: boolean;
|
|
20
|
+
readonly category: RuleCategory;
|
|
21
|
+
readonly plugin: RulePlugin;
|
|
22
|
+
readonly messages: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/** All rule metadata entries, sorted by category then id. */
|
|
25
|
+
declare const RULES: readonly RuleEntry[];
|
|
26
|
+
/** Rules grouped by category. */
|
|
27
|
+
declare const RULES_BY_CATEGORY: Readonly<Record<RuleCategory, readonly RuleEntry[]>>;
|
|
28
|
+
/** All rule categories, sorted alphabetically. */
|
|
29
|
+
declare const RULE_CATEGORIES: readonly RuleCategory[];
|
|
30
|
+
/** Lookup a rule by ID. Returns undefined if not found. */
|
|
31
|
+
declare function getRule(id: string): RuleEntry | undefined;
|
|
32
|
+
|
|
33
|
+
export { RULES, RULES_BY_CATEGORY, RULE_CATEGORIES, type RuleEntry, getRule };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RuleSeverityOverride } from '@drskillissue/ganko-shared';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AUTO-GENERATED — DO NOT EDIT
|
|
5
|
+
*
|
|
6
|
+
* Rule metadata manifest for all ganko rules.
|
|
7
|
+
* Regenerate: bun run scripts/generate-rules-manifest.ts
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** Rule category for grouping in configuration UIs and documentation. */
|
|
11
|
+
type RuleCategory = "correctness" | "css-a11y" | "css-animation" | "css-cascade" | "css-jsx" | "css-layout" | "css-property" | "css-selector" | "css-structure" | "jsx" | "performance" | "reactivity" | "solid";
|
|
12
|
+
/** Plugin that owns the rule. */
|
|
13
|
+
type RulePlugin = "cross-file" | "css" | "solid";
|
|
14
|
+
/** Static metadata for a single lint rule. */
|
|
15
|
+
interface RuleEntry {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly severity: RuleSeverityOverride;
|
|
18
|
+
readonly description: string;
|
|
19
|
+
readonly fixable: boolean;
|
|
20
|
+
readonly category: RuleCategory;
|
|
21
|
+
readonly plugin: RulePlugin;
|
|
22
|
+
readonly messages: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
/** All rule metadata entries, sorted by category then id. */
|
|
25
|
+
declare const RULES: readonly RuleEntry[];
|
|
26
|
+
/** Rules grouped by category. */
|
|
27
|
+
declare const RULES_BY_CATEGORY: Readonly<Record<RuleCategory, readonly RuleEntry[]>>;
|
|
28
|
+
/** All rule categories, sorted alphabetically. */
|
|
29
|
+
declare const RULE_CATEGORIES: readonly RuleCategory[];
|
|
30
|
+
/** Lookup a rule by ID. Returns undefined if not found. */
|
|
31
|
+
declare function getRule(id: string): RuleEntry | undefined;
|
|
32
|
+
|
|
33
|
+
export { RULES, RULES_BY_CATEGORY, RULE_CATEGORIES, type RuleEntry, getRule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@drskillissue/ganko",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Static analysis SDK for Solid.js — graphs, rules, ESLint adapter",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": {
|
|
13
|
+
"import": "./dist/index.d.ts",
|
|
14
|
+
"require": "./dist/index.d.cts"
|
|
15
|
+
},
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./rules-manifest": {
|
|
20
|
+
"types": {
|
|
21
|
+
"import": "./dist/rules-manifest.d.ts",
|
|
22
|
+
"require": "./dist/rules-manifest.d.cts"
|
|
23
|
+
},
|
|
24
|
+
"import": "./dist/rules-manifest.js",
|
|
25
|
+
"require": "./dist/rules-manifest.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./eslint-plugin": {
|
|
28
|
+
"types": {
|
|
29
|
+
"import": "./dist/eslint-plugin.d.ts",
|
|
30
|
+
"require": "./dist/eslint-plugin.d.cts"
|
|
31
|
+
},
|
|
32
|
+
"import": "./dist/eslint-plugin.js",
|
|
33
|
+
"require": "./dist/eslint-plugin.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"sideEffects": false,
|
|
43
|
+
"keywords": [
|
|
44
|
+
"solid", "solidjs", "lint", "linter", "static-analysis",
|
|
45
|
+
"eslint", "eslint-plugin", "css", "reactivity", "typescript"
|
|
46
|
+
],
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
50
|
+
},
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/DrSkillIssue/ganko.git",
|
|
54
|
+
"directory": "packages/ganko"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/DrSkillIssue/ganko",
|
|
57
|
+
"bugs": "https://github.com/DrSkillIssue/ganko/issues",
|
|
58
|
+
"scripts": {
|
|
59
|
+
"generate:manifest": "bun run scripts/generate-rules-manifest.ts",
|
|
60
|
+
"generate:check": "bun run scripts/generate-rules-manifest.ts --check",
|
|
61
|
+
"generate:readmes": "bun run scripts/generate-rule-readmes.ts",
|
|
62
|
+
"generate": "bun run generate:manifest && bun run generate:readmes",
|
|
63
|
+
"build": "bun run generate && tsup",
|
|
64
|
+
"dev": "tsup --watch",
|
|
65
|
+
"clean": "bun -e \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
|
|
66
|
+
"test": "vitest --run",
|
|
67
|
+
"test:watch": "vitest",
|
|
68
|
+
"lint": "eslint src",
|
|
69
|
+
"tsc": "tsc --noEmit"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@drskillissue/ganko-shared": "workspace:^",
|
|
73
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
74
|
+
"@typescript-eslint/typescript-estree": "^8.56.1",
|
|
75
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
76
|
+
"postcss": "^8.5.8",
|
|
77
|
+
"postcss-safe-parser": "^7.0.1",
|
|
78
|
+
"postcss-scss": "^4.0.9",
|
|
79
|
+
"postcss-value-parser": "^4.2.0",
|
|
80
|
+
"zod": "^4.3.6"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"typescript": "^5.9.3"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@typescript-eslint/rule-tester": "^8.56.1"
|
|
87
|
+
},
|
|
88
|
+
"author": "DrSkillIssue",
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">=22.0.0"
|
|
91
|
+
}
|
|
92
|
+
}
|