@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/package.json CHANGED
@@ -1,92 +1,93 @@
1
1
  {
2
- "name": "@flint.fyi/rule-data",
3
- "version": "0.4.0",
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
- ".": "./src/index.ts"
20
- },
21
- "files": [
22
- "dist/"
23
- ],
24
- "scripts": {
25
- "sort-data": "node scripts/sort-data.ts",
26
- "test": "vitest --project rule-data"
27
- },
28
- "dependencies": {
29
- "@flint.fyi/astro": "workspace:^",
30
- "@flint.fyi/browser": "workspace:^",
31
- "@flint.fyi/core": "workspace:^",
32
- "@flint.fyi/css": "workspace:^",
33
- "@flint.fyi/json": "workspace:^",
34
- "@flint.fyi/jsx": "workspace:^",
35
- "@flint.fyi/md": "workspace:^",
36
- "@flint.fyi/node": "workspace:^",
37
- "@flint.fyi/package-json": "workspace:^",
38
- "@flint.fyi/performance": "workspace:^",
39
- "@flint.fyi/plugin-flint": "workspace:^",
40
- "@flint.fyi/spelling": "workspace:^",
41
- "@flint.fyi/ts": "workspace:^",
42
- "@flint.fyi/vitest": "workspace:^",
43
- "@flint.fyi/yaml": "workspace:^",
44
- "zod": "^4.3.6"
45
- },
46
- "devDependencies": {
47
- "@biomejs/biome": "2.4.16",
48
- "@eslint-community/eslint-plugin-eslint-comments": "catalog:dev",
49
- "@eslint/json": "2.0.0",
50
- "@eslint/markdown": "catalog:dev",
51
- "@flint.fyi/build": "workspace:^",
52
- "@next/eslint-plugin-next": "16.2.6",
53
- "@nuxt/eslint-plugin": "1.16.0",
54
- "@types/eslint-plugin-jsx-a11y": "6.10.1",
55
- "@types/eslint-plugin-promise": "7.3.0",
56
- "@typescript-eslint/eslint-plugin": "catalog:dev",
57
- "@vitest/eslint-plugin": "catalog:dev",
58
- "eslint": "catalog:dev",
59
- "eslint-plugin-astro": "1.7.0",
60
- "eslint-plugin-eslint-plugin": "7.3.3",
61
- "eslint-plugin-import": "2.32.0",
62
- "eslint-plugin-jsdoc": "catalog:dev",
63
- "eslint-plugin-jsonc": "catalog:dev",
64
- "eslint-plugin-jsx-a11y": "6.10.2",
65
- "eslint-plugin-n": "catalog:dev",
66
- "eslint-plugin-package-json": "catalog:dev",
67
- "eslint-plugin-perfectionist": "catalog:dev",
68
- "eslint-plugin-promise": "7.3.0",
69
- "eslint-plugin-react": "7.37.5",
70
- "eslint-plugin-react-hooks": "7.1.1",
71
- "eslint-plugin-regexp": "catalog:dev",
72
- "eslint-plugin-solid": "0.14.5",
73
- "eslint-plugin-svelte": "3.17.1",
74
- "eslint-plugin-unicorn": "64.0.0",
75
- "eslint-plugin-vue": "10.9.1",
76
- "eslint-plugin-yml": "catalog:dev",
77
- "markdownlint": "0.41.0",
78
- "oxlint": "1.69.0",
79
- "tsdown": "catalog:dev",
80
- "vitest": "catalog:dev",
81
- "vue-eslint-parser": "10.4.1"
82
- },
83
- "engines": {
84
- "node": ">=26.1.0"
85
- },
86
- "publishConfig": {
87
- "access": "public",
88
- "exports": {
89
- ".": "./dist/index.mjs"
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 };