@flint.fyi/rule-data 0.4.0 → 0.5.1
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.md +20 -0
- package/dist/index.d.mts +28 -95
- package/dist/index.mjs +192 -50
- package/package.json +92 -91
- package/dist/index.d.ts +0 -67
- package/dist/index.js +0 -29346
package/package.json
CHANGED
|
@@ -1,92 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
2
|
+
"name": "@flint.fyi/rule-data",
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Data for all of Flint's rules and mappings between Flint and other web linters.",
|
|
5
|
+
"homepage": "https://flint.fyi",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/flint-fyi/flint.git",
|
|
9
|
+
"directory": "packages/rule-data"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Flint Team",
|
|
14
|
+
"url": "https://flint.fyi/team"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./dist/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@flint.fyi/astro": "^0.5.1",
|
|
26
|
+
"@flint.fyi/browser": "^0.5.1",
|
|
27
|
+
"@flint.fyi/core": "^0.26.0",
|
|
28
|
+
"@flint.fyi/css": "^0.3.1",
|
|
29
|
+
"@flint.fyi/json": "^0.18.1",
|
|
30
|
+
"@flint.fyi/jsx": "^0.6.1",
|
|
31
|
+
"@flint.fyi/md": "^0.17.1",
|
|
32
|
+
"@flint.fyi/node": "^0.5.1",
|
|
33
|
+
"@flint.fyi/package-json": "^0.21.1",
|
|
34
|
+
"@flint.fyi/performance": "^0.5.1",
|
|
35
|
+
"@flint.fyi/plugin-flint": "^0.8.1",
|
|
36
|
+
"@flint.fyi/spelling": "^0.4.1",
|
|
37
|
+
"@flint.fyi/ts": "^0.23.2",
|
|
38
|
+
"@flint.fyi/vitest": "^0.4.1",
|
|
39
|
+
"@flint.fyi/yaml": "^0.17.1",
|
|
40
|
+
"zod": "^4.3.6"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@biomejs/biome": "2.5.11",
|
|
44
|
+
"@emnapi/core": "1.11.3",
|
|
45
|
+
"@emnapi/runtime": "1.11.3",
|
|
46
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
|
|
47
|
+
"@eslint/json": "2.0.1",
|
|
48
|
+
"@eslint/markdown": "8.0.3",
|
|
49
|
+
"@flint.fyi/build": "^0.1.0",
|
|
50
|
+
"@next/eslint-plugin-next": "16.3.3",
|
|
51
|
+
"@nuxt/eslint-plugin": "1.17.0",
|
|
52
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
53
|
+
"@types/eslint-plugin-promise": "7.3.0",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "8.68.0",
|
|
55
|
+
"@vitest/eslint-plugin": "1.6.27",
|
|
56
|
+
"eslint": "10.9.1",
|
|
57
|
+
"eslint-plugin-astro": "3.1.0",
|
|
58
|
+
"eslint-plugin-eslint-plugin": "7.6.2",
|
|
59
|
+
"eslint-plugin-import": "2.32.0",
|
|
60
|
+
"eslint-plugin-jsdoc": "64.3.2",
|
|
61
|
+
"eslint-plugin-jsonc": "3.4.2",
|
|
62
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
63
|
+
"eslint-plugin-n": "18.3.0",
|
|
64
|
+
"eslint-plugin-package-json": "1.8.0",
|
|
65
|
+
"eslint-plugin-perfectionist": "5.11.0",
|
|
66
|
+
"eslint-plugin-promise": "7.3.0",
|
|
67
|
+
"eslint-plugin-react": "7.37.5",
|
|
68
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
69
|
+
"eslint-plugin-regexp": "3.2.0",
|
|
70
|
+
"eslint-plugin-solid": "0.17.0",
|
|
71
|
+
"eslint-plugin-svelte": "3.23.0",
|
|
72
|
+
"eslint-plugin-unicorn": "74.0.0",
|
|
73
|
+
"eslint-plugin-vue": "10.10.0",
|
|
74
|
+
"eslint-plugin-yml": "3.8.1",
|
|
75
|
+
"markdownlint": "0.41.1",
|
|
76
|
+
"oxlint": "1.80.0",
|
|
77
|
+
"tsdown": "0.22.14",
|
|
78
|
+
"vitest": "4.1.11",
|
|
79
|
+
"vue-eslint-parser": "10.4.1"
|
|
80
|
+
},
|
|
81
|
+
"engines": {
|
|
82
|
+
"node": ">=26.1.0"
|
|
83
|
+
},
|
|
84
|
+
"publishConfig": {
|
|
85
|
+
"access": "public"
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"file-missing-rules-issues": "node scripts/file-missing-rules-issues.ts",
|
|
89
|
+
"report-missing-rules": "node scripts/report-missing-rules.ts",
|
|
90
|
+
"sort-data": "node scripts/sort-data.ts",
|
|
91
|
+
"test": "vitest --project rule-data"
|
|
92
|
+
}
|
|
93
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { z } from "zod/v4";
|
|
2
|
-
import { AnyRule } from "@flint.fyi/core";
|
|
3
|
-
|
|
4
|
-
//#region src/schemas.d.ts
|
|
5
|
-
declare const linterNameSchema: z.ZodUnion<readonly [z.ZodLiteral<"biome">, z.ZodLiteral<"deno">, z.ZodLiteral<"eslint">, z.ZodLiteral<"markdownlint">, z.ZodLiteral<"oxlint">, z.ZodLiteral<"stylelint">]>;
|
|
6
|
-
type LinterName = z.infer<typeof linterNameSchema>;
|
|
7
|
-
declare const flintRuleReferenceSchema: z.ZodObject<{
|
|
8
|
-
name: z.ZodUnion<readonly [z.ZodLiteral<"biome">, z.ZodLiteral<"deno">, z.ZodLiteral<"eslint">, z.ZodLiteral<"markdownlint">, z.ZodLiteral<"oxlint">, z.ZodLiteral<"stylelint">]>;
|
|
9
|
-
plugin: z.ZodString;
|
|
10
|
-
preset: z.ZodString;
|
|
11
|
-
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"implemented">, z.ZodLiteral<"skipped">]>>;
|
|
12
|
-
strictness: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
type FlintRuleReference = z.infer<typeof flintRuleReferenceSchema>;
|
|
15
|
-
declare const comparisonSchema: z.ZodObject<{
|
|
16
|
-
biome: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
url: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>>;
|
|
20
|
-
deno: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
url: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>>;
|
|
24
|
-
eslint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
url: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>>;
|
|
28
|
-
flint: z.ZodObject<{
|
|
29
|
-
name: z.ZodUnion<readonly [z.ZodLiteral<"biome">, z.ZodLiteral<"deno">, z.ZodLiteral<"eslint">, z.ZodLiteral<"markdownlint">, z.ZodLiteral<"oxlint">, z.ZodLiteral<"stylelint">]>;
|
|
30
|
-
plugin: z.ZodString;
|
|
31
|
-
preset: z.ZodString;
|
|
32
|
-
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"implemented">, z.ZodLiteral<"skipped">]>>;
|
|
33
|
-
strictness: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
markdownlint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
-
name: z.ZodString;
|
|
37
|
-
url: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>>;
|
|
39
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
40
|
-
oxlint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
-
name: z.ZodString;
|
|
42
|
-
url: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>>;
|
|
44
|
-
stylelint: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
url: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
type Comparison = z.infer<typeof comparisonSchema>;
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/comparisons.d.ts
|
|
52
|
-
declare function getComparisonId(pluginId: string, ruleId: string): string;
|
|
53
|
-
declare const linterNames: {
|
|
54
|
-
readonly biome: "Biome";
|
|
55
|
-
readonly deno: "Deno";
|
|
56
|
-
readonly eslint: "ESLint";
|
|
57
|
-
readonly markdownlint: "Markdownlint";
|
|
58
|
-
readonly oxlint: "Oxlint";
|
|
59
|
-
readonly stylelint: "Stylelint";
|
|
60
|
-
};
|
|
61
|
-
declare const comparisons: Comparison[];
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/getRuleForPlugin.d.ts
|
|
64
|
-
declare function getRuleForPlugin(pluginId: string, ruleId: string): AnyRule;
|
|
65
|
-
declare function getRuleForPluginSafe(pluginId: string, ruleId: string): AnyRule | undefined;
|
|
66
|
-
//#endregion
|
|
67
|
-
export { type Comparison, type FlintRuleReference, type LinterName, comparisons, getComparisonId, getRuleForPlugin, getRuleForPluginSafe, linterNames };
|