linted 16.12.2-rc.2 → 16.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/.github/workflows/RELEASE.yml +35 -35
  2. package/.github/workflows/rc.yml +35 -35
  3. package/LICENSE +21 -21
  4. package/README.md +390 -390
  5. package/SECURITY.md +9 -9
  6. package/dist/imports/plugins.d.ts.map +1 -1
  7. package/dist/imports.d.ts.map +1 -1
  8. package/eslint.config.js +3 -3
  9. package/package.json +99 -99
  10. package/src/files/html.ts +1 -1
  11. package/src/files/js.ts +1 -1
  12. package/src/files/json.ts +1 -1
  13. package/src/files/jsonc.ts +4 -4
  14. package/src/files/md.ts +1 -1
  15. package/src/files/mocha.ts +1 -1
  16. package/src/files/svelte.ts +1 -1
  17. package/src/files/ts.ts +5 -5
  18. package/src/files/yml.ts +5 -5
  19. package/src/files.ts +22 -22
  20. package/src/imports/parsers.ts +15 -15
  21. package/src/imports/plugins.ts +19 -19
  22. package/src/imports.ts +8 -8
  23. package/src/index.ts +36 -36
  24. package/src/rules/_strings/id.ts +18 -18
  25. package/src/rules/_strings/level.ts +6 -6
  26. package/src/rules/_strings/state.ts +56 -56
  27. package/src/rules/_strings.ts +6 -6
  28. package/src/rules/html/enable.ts +16 -16
  29. package/src/rules/html/enable_recommended.ts +9 -9
  30. package/src/rules/html.ts +4 -4
  31. package/src/rules/js/enable.ts +524 -524
  32. package/src/rules/js/enable_stylistic.ts +608 -608
  33. package/src/rules/js.ts +4 -4
  34. package/src/rules/json/enable.ts +33 -33
  35. package/src/rules/json/enable_x.ts +89 -89
  36. package/src/rules/json.ts +4 -4
  37. package/src/rules/jsonc/override.ts +16 -16
  38. package/src/rules/jsonc.ts +4 -4
  39. package/src/rules/md/enable.ts +15 -15
  40. package/src/rules/md.ts +3 -3
  41. package/src/rules/mocha/enable.ts +3 -3
  42. package/src/rules/mocha/enable_recommended.ts +9 -9
  43. package/src/rules/mocha.ts +4 -4
  44. package/src/rules/svelte/disable.ts +9 -9
  45. package/src/rules/svelte/disable_js.ts +11 -11
  46. package/src/rules/svelte/disable_ts.ts +9 -9
  47. package/src/rules/svelte/enable.ts +228 -228
  48. package/src/rules/svelte/enable_x.ts +20 -20
  49. package/src/rules/svelte.ts +15 -15
  50. package/src/rules/ts/disable.ts +22 -22
  51. package/src/rules/ts/disable_x.ts +32 -32
  52. package/src/rules/ts/enable.ts +549 -549
  53. package/src/rules/ts/enable_x.ts +115 -115
  54. package/src/rules/ts.ts +13 -13
  55. package/src/rules/yml/enable.ts +64 -64
  56. package/src/rules/yml/enable_x.ts +68 -68
  57. package/src/rules/yml.ts +4 -4
  58. package/src/rules.ts +22 -22
  59. package/tsconfig.json +161 -161
  60. package/types/markdownlint/index.d.ts +3 -3
  61. package/types/markdownlint/parser.d.ts +9 -9
  62. package/types/mocha/index.d.ts +8 -8
  63. package/dist/rules/_html.d.ts +0 -8
  64. package/dist/rules/_html.d.ts.map +0 -1
  65. package/dist/rules/_html.js +0 -4
  66. package/dist/rules/_html.js.map +0 -1
  67. package/dist/rules/_js.d.ts +0 -765
  68. package/dist/rules/_js.d.ts.map +0 -1
  69. package/dist/rules/_js.js +0 -4
  70. package/dist/rules/_js.js.map +0 -1
  71. package/dist/rules/_json.d.ts +0 -74
  72. package/dist/rules/_json.d.ts.map +0 -1
  73. package/dist/rules/_json.js +0 -4
  74. package/dist/rules/_json.js.map +0 -1
  75. package/dist/rules/_jsonc.d.ts +0 -77
  76. package/dist/rules/_jsonc.d.ts.map +0 -1
  77. package/dist/rules/_jsonc.js +0 -4
  78. package/dist/rules/_jsonc.js.map +0 -1
  79. package/dist/rules/_md.d.ts +0 -7
  80. package/dist/rules/_md.d.ts.map +0 -1
  81. package/dist/rules/_md.js +0 -3
  82. package/dist/rules/_md.js.map +0 -1
  83. package/dist/rules/_mocha.d.ts +0 -8
  84. package/dist/rules/_mocha.d.ts.map +0 -1
  85. package/dist/rules/_mocha.js +0 -4
  86. package/dist/rules/_mocha.js.map +0 -1
  87. package/dist/rules/_svelte.d.ts +0 -1269
  88. package/dist/rules/_svelte.d.ts.map +0 -1
  89. package/dist/rules/_svelte.js +0 -15
  90. package/dist/rules/_svelte.js.map +0 -1
  91. package/dist/rules/_ts.d.ts +0 -1133
  92. package/dist/rules/_ts.d.ts.map +0 -1
  93. package/dist/rules/_ts.js +0 -13
  94. package/dist/rules/_ts.js.map +0 -1
  95. package/dist/rules/_yml.d.ts +0 -73
  96. package/dist/rules/_yml.d.ts.map +0 -1
  97. package/dist/rules/_yml.js +0 -4
  98. package/dist/rules/_yml.js.map +0 -1
  99. package/dist/rules/html/_enable.d.ts +0 -8
  100. package/dist/rules/html/_enable.d.ts.map +0 -1
  101. package/dist/rules/html/_enable.js +0 -10
  102. package/dist/rules/html/_enable.js.map +0 -1
  103. package/dist/rules/html/_recommended.d.ts +0 -3
  104. package/dist/rules/html/_recommended.d.ts.map +0 -1
  105. package/dist/rules/html/_recommended.js +0 -5
  106. package/dist/rules/html/_recommended.js.map +0 -1
  107. package/dist/rules/js/_enable.d.ts +0 -348
  108. package/dist/rules/js/_enable.d.ts.map +0 -1
  109. package/dist/rules/js/_enable.js +0 -260
  110. package/dist/rules/js/_enable.js.map +0 -1
  111. package/dist/rules/js/stylistic.d.ts +0 -420
  112. package/dist/rules/js/stylistic.d.ts.map +0 -1
  113. package/dist/rules/js/stylistic.js +0 -270
  114. package/dist/rules/js/stylistic.js.map +0 -1
  115. package/dist/rules/json/_enable.d.ts +0 -27
  116. package/dist/rules/json/_enable.d.ts.map +0 -1
  117. package/dist/rules/json/_enable.js +0 -31
  118. package/dist/rules/json/_enable.js.map +0 -1
  119. package/dist/rules/md/_enable.d.ts +0 -7
  120. package/dist/rules/md/_enable.d.ts.map +0 -1
  121. package/dist/rules/md/_enable.js +0 -9
  122. package/dist/rules/md/_enable.js.map +0 -1
  123. package/dist/rules/mocha/_enable.d.ts +0 -3
  124. package/dist/rules/mocha/_enable.d.ts.map +0 -1
  125. package/dist/rules/mocha/_enable.js +0 -4
  126. package/dist/rules/mocha/_enable.js.map +0 -1
  127. package/dist/rules/mocha/_recommended.d.ts +0 -3
  128. package/dist/rules/mocha/_recommended.d.ts.map +0 -1
  129. package/dist/rules/mocha/_recommended.js +0 -5
  130. package/dist/rules/mocha/_recommended.js.map +0 -1
  131. package/dist/rules/svelte/_enable.d.ts +0 -126
  132. package/dist/rules/svelte/_enable.d.ts.map +0 -1
  133. package/dist/rules/svelte/_enable.js +0 -90
  134. package/dist/rules/svelte/_enable.js.map +0 -1
  135. package/dist/rules/svelte/disable_x.d.ts +0 -5
  136. package/dist/rules/svelte/disable_x.d.ts.map +0 -1
  137. package/dist/rules/svelte/disable_x.js +0 -4
  138. package/dist/rules/svelte/disable_x.js.map +0 -1
  139. package/dist/rules/ts/_enable.d.ts +0 -262
  140. package/dist/rules/ts/_enable.d.ts.map +0 -1
  141. package/dist/rules/ts/_enable.js +0 -359
  142. package/dist/rules/ts/_enable.js.map +0 -1
  143. package/dist/rules/ts/disable_compiler.d.ts +0 -18
  144. package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
  145. package/dist/rules/ts/disable_compiler.js +0 -22
  146. package/dist/rules/ts/disable_compiler.js.map +0 -1
  147. package/dist/rules/yml/_enable.d.ts +0 -39
  148. package/dist/rules/yml/_enable.d.ts.map +0 -1
  149. package/dist/rules/yml/_enable.js +0 -28
  150. package/dist/rules/yml/_enable.js.map +0 -1
package/SECURITY.md CHANGED
@@ -1,9 +1,9 @@
1
- # Security Policy
2
-
3
- ## Reporting a Vulnerability
4
-
5
- This repository participates in GitHub private vulnerability reporting.
6
-
7
- [__⚑ Report Vulnerability__](./../../security/advisories/new)
8
-
9
- Thank you for your dedication to safety.
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ This repository participates in GitHub private vulnerability reporting.
6
+
7
+ [__⚑ Report Vulnerability__](./../../security/advisories/new)
8
+
9
+ Thank you for your dedication to safety.
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAu3D,CAAC;mCAA4C,CAAC;yBAAkC,CAAC;;;;;;;;;;;2BAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAkxD,CAAC;mCAA4C,CAAC;yBAAkC,CAAC;;;;;;;;;;;2BAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAwyC,CAAC;mCAA4C,CAAC;yBAAkC,CAAC;;;;;;;;;;;2BAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;yBAA89B,CAAC;mCAA4C,CAAC;yBAAkC,CAAC;;;;;;;;;;;2BAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAv20B,CAAC;mCAAwC,CAAC;yBAA8B,CAAC;;;;;;;;;;;2BAA8V,CAAC;;;;;;yBAA+K,CAAC;mCAAwC,CAAC;yBAA8B,CAAC;;;;;;;;;;;2BAA8V,CAAC;;;;;;;;;;;;;;;;yBAAolB,CAAC;mCAAwC,CAAC;yBAA8B,CAAC;;;;;;;;;;;2BAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA0wC,CAAC;mCAAwC,CAAC;yBAA8B,CAAC;;;;;;;;;;;2BAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAJt3M,wBAGuF"}
package/eslint.config.js CHANGED
@@ -1,3 +1,3 @@
1
- import linted from "linted";
2
-
3
- export default linted();
1
+ import linted from "linted";
2
+
3
+ export default linted();
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "_schemaVersion": "20.17.8",
3
- "name": "linted",
4
- "version": "16.12.2-rc.2",
5
- "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
- "keywords": [
7
- "eslint",
8
- "eslint-config",
9
- "eslint-plugin",
10
- "linter",
11
- "formatter",
12
- "typescript",
13
- "javascript",
14
- "stylistic",
15
- "svelte",
16
- "sveltekit",
17
- "html",
18
- "css",
19
- "mocha",
20
- "tailwindcss",
21
- "json",
22
- "jsonc",
23
- "yaml"
24
- ],
25
- "license": "MIT",
26
- "private": false,
27
- "publishConfig": {
28
- "access": "public"
29
- },
30
- "repository": "github:jimmy-zhening-luo/linted",
31
- "homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
32
- "bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
33
- "type": "module",
34
- "main": "dist/index.js",
35
- "types": "dist/index.d.ts",
36
- "engineStrict": true,
37
- "engines": {
38
- "node": ">=20.17.0",
39
- "npm": ">=10.8.2"
40
- },
41
- "peerDependencies": {
42
- "eslint": "~9.12.0",
43
- "mocha": "^10.7.3",
44
- "typescript": ">=5.6.3"
45
- },
46
- "peerDependenciesMeta": {
47
- "mocha": {
48
- "optional": true
49
- },
50
- "typescript": {
51
- "optional": true
52
- }
53
- },
54
- "dependencies": {
55
- "@eslinted/core": "4.0.1",
56
- "@html-eslint/eslint-plugin": "0.27.0",
57
- "@html-eslint/parser": "0.27.0",
58
- "@stylistic/eslint-plugin": "2.9.0",
59
- "@typescript-eslint/eslint-plugin": "8.8.1",
60
- "@typescript-eslint/parser": "8.8.1",
61
- "eslint-plugin-jsonc": "2.16.0",
62
- "eslint-plugin-markdownlint": "0.6.0",
63
- "eslint-plugin-mocha": "10.5.0",
64
- "eslint-plugin-svelte": "2.44.1",
65
- "eslint-plugin-yml": "1.14.0",
66
- "jsonc-eslint-parser": "2.4.0",
67
- "svelte": "^4.2.19",
68
- "svelte-eslint-parser": "0.41.1",
69
- "yaml-eslint-parser": "1.2.3"
70
- },
71
- "devDependencies": {
72
- "@eslint/config-inspector": "^0.5.4",
73
- "eslint": "~9.12.0",
74
- "linted": "16.12.2-rc.1",
75
- "npm-run-all": "^4.1.5",
76
- "typescript": "^5.6.3"
77
- },
78
- "scripts": {
79
- "build": "run-s \"build:{1}:*\" lint:built -- ts",
80
- "build:ts:compile": "tsc",
81
- "build:svelte:sync": "svelte-kit sync",
82
- "build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
83
- "build:svelte:compile": "vite build",
84
- "build:svelte:prelint": "npm run ln src/**/*.svelte",
85
- "lint": "npm run build",
86
- "lint:built": "run-s lint:built:*",
87
- "lint:built:configs": "npm run ln --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
88
- "lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
89
- "ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
90
- "pretest": "npm run build",
91
- "test": "",
92
- "start": "vite preview || node .",
93
- "prestart": "npm test",
94
- "prepublishOnly": "npm test",
95
- "predeploy": "npm test",
96
- "deploy": ""
97
- },
98
- "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
99
- }
1
+ {
2
+ "_schemaVersion": "20.17.8",
3
+ "name": "linted",
4
+ "version": "16.12.2",
5
+ "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
+ "keywords": [
7
+ "eslint",
8
+ "eslint-config",
9
+ "eslint-plugin",
10
+ "linter",
11
+ "formatter",
12
+ "typescript",
13
+ "javascript",
14
+ "stylistic",
15
+ "svelte",
16
+ "sveltekit",
17
+ "html",
18
+ "css",
19
+ "mocha",
20
+ "tailwindcss",
21
+ "json",
22
+ "jsonc",
23
+ "yaml"
24
+ ],
25
+ "license": "MIT",
26
+ "private": false,
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "repository": "github:jimmy-zhening-luo/linted",
31
+ "homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
32
+ "bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
33
+ "type": "module",
34
+ "main": "dist/index.js",
35
+ "types": "dist/index.d.ts",
36
+ "engineStrict": true,
37
+ "engines": {
38
+ "node": ">=20.17.0",
39
+ "npm": ">=10.8.2"
40
+ },
41
+ "peerDependencies": {
42
+ "eslint": "~9.12.0",
43
+ "mocha": "^10.7.3",
44
+ "typescript": ">=5.6.3"
45
+ },
46
+ "peerDependenciesMeta": {
47
+ "mocha": {
48
+ "optional": true
49
+ },
50
+ "typescript": {
51
+ "optional": true
52
+ }
53
+ },
54
+ "dependencies": {
55
+ "@eslinted/core": "4.0.1",
56
+ "@html-eslint/eslint-plugin": "0.27.0",
57
+ "@html-eslint/parser": "0.27.0",
58
+ "@stylistic/eslint-plugin": "2.9.0",
59
+ "@typescript-eslint/eslint-plugin": "8.8.1",
60
+ "@typescript-eslint/parser": "8.8.1",
61
+ "eslint-plugin-jsonc": "2.16.0",
62
+ "eslint-plugin-markdownlint": "0.6.0",
63
+ "eslint-plugin-mocha": "10.5.0",
64
+ "eslint-plugin-svelte": "2.44.1",
65
+ "eslint-plugin-yml": "1.14.0",
66
+ "jsonc-eslint-parser": "2.4.0",
67
+ "svelte": "^4.2.19",
68
+ "svelte-eslint-parser": "0.41.1",
69
+ "yaml-eslint-parser": "1.2.3"
70
+ },
71
+ "devDependencies": {
72
+ "@eslint/config-inspector": "^0.5.4",
73
+ "eslint": "~9.12.0",
74
+ "linted": "16.12.2-rc.2",
75
+ "npm-run-all": "^4.1.5",
76
+ "typescript": "^5.6.3"
77
+ },
78
+ "scripts": {
79
+ "build": "run-s \"build:{1}:*\" lint:built -- ts",
80
+ "build:ts:compile": "tsc",
81
+ "build:svelte:sync": "svelte-kit sync",
82
+ "build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
83
+ "build:svelte:compile": "vite build",
84
+ "build:svelte:prelint": "npm run ln src/**/*.svelte",
85
+ "lint": "npm run build",
86
+ "lint:built": "run-s lint:built:*",
87
+ "lint:built:configs": "npm run ln --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
88
+ "lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
89
+ "ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
90
+ "pretest": "npm run build",
91
+ "test": "",
92
+ "start": "vite preview || node .",
93
+ "prestart": "npm test",
94
+ "prepublishOnly": "npm test",
95
+ "predeploy": "npm test",
96
+ "deploy": ""
97
+ },
98
+ "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
99
+ }
package/src/files/html.ts CHANGED
@@ -1 +1 @@
1
- export default ["src/**/*.html"] as const;
1
+ export default ["src/**/*.html"] as const;
package/src/files/js.ts CHANGED
@@ -1 +1 @@
1
- export default ["**/*.config.js"] as const;
1
+ export default ["**/*.config.js"] as const;
package/src/files/json.ts CHANGED
@@ -1 +1 @@
1
- export default ["**/*.json"] as const;
1
+ export default ["**/*.json"] as const;
@@ -1,4 +1,4 @@
1
- export default [
2
- "**/*.jsonc",
3
- "**/tsconfig.json",
4
- ] as const;
1
+ export default [
2
+ "**/*.jsonc",
3
+ "**/tsconfig.json",
4
+ ] as const;
package/src/files/md.ts CHANGED
@@ -1 +1 @@
1
- export default [] as const;
1
+ export default [] as const;
@@ -1 +1 @@
1
- export default [] as const;
1
+ export default [] as const;
@@ -1 +1 @@
1
- export default ["src/**/*.svelte"] as const;
1
+ export default ["src/**/*.svelte"] as const;
package/src/files/ts.ts CHANGED
@@ -1,5 +1,5 @@
1
- export default [
2
- "**/*.config.ts",
3
- "src/**/*.ts",
4
- "types/**/*.d.ts",
5
- ] as const;
1
+ export default [
2
+ "**/*.config.ts",
3
+ "src/**/*.ts",
4
+ "types/**/*.d.ts",
5
+ ] as const;
package/src/files/yml.ts CHANGED
@@ -1,5 +1,5 @@
1
- export default [
2
- "**/*.yml",
3
- "**/*.yaml",
4
- ".github/workflows/*.yml",
5
- ] as const;
1
+ export default [
2
+ "**/*.yml",
3
+ "**/*.yaml",
4
+ ".github/workflows/*.yml",
5
+ ] as const;
package/src/files.ts CHANGED
@@ -1,22 +1,22 @@
1
- import type { Core } from "@eslinted/core";
2
- import js from "./files/js.js";
3
- import ts from "./files/ts.js";
4
- import svelte from "./files/svelte.js";
5
- import mocha from "./files/mocha.js";
6
- import html from "./files/html.js";
7
- import json from "./files/json.js";
8
- import jsonc from "./files/jsonc.js";
9
- import yml from "./files/yml.js";
10
- import md from "./files/md.js";
11
-
12
- export default {
13
- js,
14
- ts,
15
- svelte,
16
- mocha,
17
- html,
18
- json,
19
- jsonc,
20
- yml,
21
- md,
22
- } as const satisfies Core.Input.Files.Base;
1
+ import type { Core } from "@eslinted/core";
2
+ import js from "./files/js.js";
3
+ import ts from "./files/ts.js";
4
+ import svelte from "./files/svelte.js";
5
+ import mocha from "./files/mocha.js";
6
+ import html from "./files/html.js";
7
+ import json from "./files/json.js";
8
+ import jsonc from "./files/jsonc.js";
9
+ import yml from "./files/yml.js";
10
+ import md from "./files/md.js";
11
+
12
+ export default {
13
+ js,
14
+ ts,
15
+ svelte,
16
+ mocha,
17
+ html,
18
+ json,
19
+ jsonc,
20
+ yml,
21
+ md,
22
+ } as const satisfies Core.Input.Files.Base;
@@ -1,15 +1,15 @@
1
- import ts from "@typescript-eslint/parser";
2
- import svelte from "svelte-eslint-parser";
3
- import html from "@html-eslint/parser";
4
- import jsonc from "jsonc-eslint-parser";
5
- import yml from "yaml-eslint-parser";
6
- import md from "eslint-plugin-markdownlint/parser.js";
7
-
8
- export default {
9
- ts,
10
- svelte,
11
- html,
12
- jsonc,
13
- yml,
14
- md,
15
- } as const;
1
+ import ts from "@typescript-eslint/parser";
2
+ import svelte from "svelte-eslint-parser";
3
+ import html from "@html-eslint/parser";
4
+ import jsonc from "jsonc-eslint-parser";
5
+ import yml from "yaml-eslint-parser";
6
+ import md from "eslint-plugin-markdownlint/parser.js";
7
+
8
+ export default {
9
+ ts,
10
+ svelte,
11
+ html,
12
+ jsonc,
13
+ yml,
14
+ md,
15
+ } as const;
@@ -1,19 +1,19 @@
1
- import stylistic from "@stylistic/eslint-plugin";
2
- import typescript_eslint from "@typescript-eslint/eslint-plugin";
3
- import svelte from "eslint-plugin-svelte";
4
- import mocha from "eslint-plugin-mocha";
5
- import html_eslint from "@html-eslint/eslint-plugin";
6
- import jsonc from "eslint-plugin-jsonc";
7
- import yml from "eslint-plugin-yml";
8
- import markdownlint from "eslint-plugin-markdownlint";
9
-
10
- export default {
11
- "@stylistic": stylistic,
12
- "@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
13
- svelte,
14
- mocha,
15
- "@html-eslint": html_eslint,
16
- jsonc,
17
- yml,
18
- markdownlint,
19
- } as const;
1
+ import stylistic from "@stylistic/eslint-plugin";
2
+ import typescript_eslint from "@typescript-eslint/eslint-plugin";
3
+ import svelte from "eslint-plugin-svelte";
4
+ import mocha from "eslint-plugin-mocha";
5
+ import html_eslint from "@html-eslint/eslint-plugin";
6
+ import jsonc from "eslint-plugin-jsonc";
7
+ import yml from "eslint-plugin-yml";
8
+ import markdownlint from "eslint-plugin-markdownlint";
9
+
10
+ export default {
11
+ "@stylistic": stylistic,
12
+ "@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
13
+ svelte,
14
+ mocha,
15
+ "@html-eslint": html_eslint,
16
+ jsonc,
17
+ yml,
18
+ markdownlint,
19
+ } as const;
package/src/imports.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { Core } from "@eslinted/core";
2
- import plugins from "./imports/plugins.js";
3
- import parsers from "./imports/parsers.js";
4
-
5
- export default {
6
- plugins,
7
- parsers,
8
- } as const satisfies { plugins: Core.Input.Plugins } & { parsers: Core.Input.Parsers };
1
+ import type { Core } from "@eslinted/core";
2
+ import plugins from "./imports/plugins.js";
3
+ import parsers from "./imports/parsers.js";
4
+
5
+ export default {
6
+ plugins,
7
+ parsers,
8
+ } as const satisfies { plugins: Core.Input.Plugins } & { parsers: Core.Input.Parsers };
package/src/index.ts CHANGED
@@ -1,36 +1,36 @@
1
- import core, { type Core } from "@eslinted/core";
2
- import imports from "./imports.js";
3
- import files from "./files.js";
4
- import rules from "./rules.js";
5
-
6
- declare type Scope =
7
- | "js"
8
- | "ts"
9
- | "svelte"
10
- | "mocha"
11
- | "html"
12
- | "json"
13
- | "jsonc"
14
- | "yml"
15
- | "md"
16
- ;
17
-
18
- export default function (
19
- includes: Partial<Record<Scope, readonly string[]>> = {},
20
- overrides: Core.Input.Rules.Overrides = {},
21
- ) {
22
- try {
23
- return core(
24
- imports.plugins,
25
- imports.parsers,
26
- { files, includes },
27
- { rules, overrides },
28
- );
29
- }
30
- catch (e) { throw new Error(`linted(): `, { cause: e }); }
31
- }
32
-
33
- type BaseScope = keyof Core.Input.Files.Base;
34
- type Scoped = Scope extends BaseScope ? BaseScope extends Scope ? "OK" : never : never;
35
-
36
- export type OK = Scoped & {}; /* Expected: "OK". Linter fails if `never` */
1
+ import core, { type Core } from "@eslinted/core";
2
+ import imports from "./imports.js";
3
+ import files from "./files.js";
4
+ import rules from "./rules.js";
5
+
6
+ declare type Scope =
7
+ | "js"
8
+ | "ts"
9
+ | "svelte"
10
+ | "mocha"
11
+ | "html"
12
+ | "json"
13
+ | "jsonc"
14
+ | "yml"
15
+ | "md"
16
+ ;
17
+
18
+ export default function (
19
+ includes: Partial<Record<Scope, readonly string[]>> = {},
20
+ overrides: Core.Input.Rules.Overrides = {},
21
+ ) {
22
+ try {
23
+ return core(
24
+ imports.plugins,
25
+ imports.parsers,
26
+ { files, includes },
27
+ { rules, overrides },
28
+ );
29
+ }
30
+ catch (e) { throw new Error(`linted(): `, { cause: e }); }
31
+ }
32
+
33
+ type BaseScope = keyof Core.Input.Files.Base;
34
+ type Scoped = Scope extends BaseScope ? BaseScope extends Scope ? "OK" : never : never;
35
+
36
+ export type OK = Scoped & {}; /* Expected: "OK". Linter fails if `never` */
@@ -1,18 +1,18 @@
1
- const
2
- disable = "disable",
3
- disable_x = "disable-extend",
4
- enable_x = "enable-extend",
5
- enable = "enable",
6
- override = "override",
7
- stylistic = "stylistic",
8
- recommended = "recommended";
9
-
10
- export {
11
- disable,
12
- disable_x,
13
- enable_x,
14
- enable,
15
- override,
16
- stylistic,
17
- recommended,
18
- };
1
+ const
2
+ disable = "disable",
3
+ disable_x = "disable-extend",
4
+ enable_x = "enable-extend",
5
+ enable = "enable",
6
+ override = "override",
7
+ stylistic = "stylistic",
8
+ recommended = "recommended";
9
+
10
+ export {
11
+ disable,
12
+ disable_x,
13
+ enable_x,
14
+ enable,
15
+ override,
16
+ stylistic,
17
+ recommended,
18
+ };
@@ -1,6 +1,6 @@
1
- const
2
- ERROR = "error",
3
- WARN = "warn",
4
- OFF = "off";
5
-
6
- export { ERROR, WARN, OFF };
1
+ const
2
+ ERROR = "error",
3
+ WARN = "warn",
4
+ OFF = "off";
5
+
6
+ export { ERROR, WARN, OFF };