linted 23.10.3 → 23.10.5
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/.github/workflows/RELEASE.yml +36 -33
- package/.github/workflows/rc.yml +36 -33
- package/.markdownlint.jsonc +122 -122
- package/LICENSE +21 -21
- package/README.md +387 -387
- package/SECURITY.md +9 -9
- package/dist/plugins.d.ts.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +148 -154
- package/src/index.spec.ts +20 -20
- package/src/index.ts +17 -17
- package/src/parsers.ts +13 -13
- package/src/plugins.ts +21 -21
- package/tsconfig.json +163 -163
- package/typings/chai.d.ts +6 -6
- package/typings/mocha.d.ts +3 -3
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.
|
package/dist/plugins.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;;;;;;mCAOI;QAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE;;;;
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"A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itC,QAAQ;;qBAAiD,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;0CAA6H,oBAAoB;;;;;;;uBAA6M,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAX96L,wBAUW"}
|
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,154 +1,148 @@
|
|
1
|
-
{
|
2
|
-
"_schemaVersion": "22.12.
|
3
|
-
"name": "linted",
|
4
|
-
"version": "23.10.
|
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
|
-
"repository": "github:jimmy-zhening-luo/linted",
|
26
|
-
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
27
|
-
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
28
|
-
"license": "MIT",
|
29
|
-
"private": false,
|
30
|
-
"publishConfig": {
|
31
|
-
"access": "public",
|
32
|
-
"tag": "next"
|
33
|
-
},
|
34
|
-
"type": "module",
|
35
|
-
"main": "dist/index.js",
|
36
|
-
"types": "dist/index.d.ts",
|
37
|
-
"config": {
|
38
|
-
"language": "ts",
|
39
|
-
"rewrite": "true",
|
40
|
-
"lint": "false"
|
41
|
-
},
|
42
|
-
"engineStrict": true,
|
43
|
-
"engines": {
|
44
|
-
"node": ">=22.12.0",
|
45
|
-
"npm": ">=10.9.0"
|
46
|
-
},
|
47
|
-
"peerDependencies": {
|
48
|
-
"eslint": "~9.17.0",
|
49
|
-
"mocha": "^11.0.1",
|
50
|
-
"svelte": "^5.14.
|
51
|
-
"typescript": ">=5.7.2"
|
52
|
-
},
|
53
|
-
"peerDependenciesMeta": {
|
54
|
-
"mocha": {
|
55
|
-
"optional": true
|
56
|
-
},
|
57
|
-
"svelte": {
|
58
|
-
"optional": true
|
59
|
-
},
|
60
|
-
"typescript": {
|
61
|
-
"optional": true
|
62
|
-
}
|
63
|
-
},
|
64
|
-
"dependencies": {
|
65
|
-
"@eslinted/core": "14.2.
|
66
|
-
"@eslinted/defaults": "4.6.
|
67
|
-
"@html-eslint/eslint-plugin": "0.31.1",
|
68
|
-
"@html-eslint/parser": "0.31.0",
|
69
|
-
"@stylistic/eslint-plugin": "2.12.1",
|
70
|
-
"@typescript-eslint/eslint-plugin": "8.18.1",
|
71
|
-
"@typescript-eslint/parser": "8.18.1",
|
72
|
-
"eslint-plugin-chai-expect": "3.1.0",
|
73
|
-
"eslint-plugin-chai-friendly": "1.0.1",
|
74
|
-
"eslint-plugin-jsonc": "2.18.2",
|
75
|
-
"eslint-plugin-mocha": "10.5.0",
|
76
|
-
"eslint-plugin-svelte": "2.46.1",
|
77
|
-
"eslint-plugin-yml": "1.16.0",
|
78
|
-
"jsonc-eslint-parser": "2.4.0",
|
79
|
-
"svelte": "^5.14.
|
80
|
-
"svelte-eslint-parser": "0.43.0",
|
81
|
-
"yaml-eslint-parser": "1.2.3"
|
82
|
-
},
|
83
|
-
"devDependencies": {
|
84
|
-
"@eslint/config-inspector": "^0.6.0",
|
85
|
-
"@types/chai": "^5.0.1",
|
86
|
-
"@types/mocha": "^10.0.10",
|
87
|
-
"chai": "^5.1.2",
|
88
|
-
"mocha": "^11.0.1",
|
89
|
-
"npm-run-all": "^4.1.5",
|
90
|
-
"run-script-os": "^1.1.6",
|
91
|
-
"ts-add-js-extension": "^1.6.5",
|
92
|
-
"typescript": "^5.7.2"
|
93
|
-
},
|
94
|
-
"scripts": {
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
104
|
-
"
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
111
|
-
"compile:
|
112
|
-
"compile:
|
113
|
-
"compile:
|
114
|
-
"
|
115
|
-
"
|
116
|
-
"
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
120
|
-
"lint": "npm run
|
121
|
-
"lint:
|
122
|
-
"lint:
|
123
|
-
"
|
124
|
-
"
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"
|
130
|
-
"
|
131
|
-
"
|
132
|
-
"
|
133
|
-
"
|
134
|
-
"
|
135
|
-
"
|
136
|
-
"
|
137
|
-
"
|
138
|
-
"
|
139
|
-
"
|
140
|
-
"
|
141
|
-
|
142
|
-
|
143
|
-
"
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
"spec": [
|
150
|
-
"dist/**/*.spec.js"
|
151
|
-
]
|
152
|
-
},
|
153
|
-
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
154
|
-
}
|
1
|
+
{
|
2
|
+
"_schemaVersion": "22.12.1",
|
3
|
+
"name": "linted",
|
4
|
+
"version": "23.10.5",
|
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
|
+
"repository": "github:jimmy-zhening-luo/linted",
|
26
|
+
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
27
|
+
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
28
|
+
"license": "MIT",
|
29
|
+
"private": false,
|
30
|
+
"publishConfig": {
|
31
|
+
"access": "public",
|
32
|
+
"tag": "next"
|
33
|
+
},
|
34
|
+
"type": "module",
|
35
|
+
"main": "dist/index.js",
|
36
|
+
"types": "dist/index.d.ts",
|
37
|
+
"config": {
|
38
|
+
"language": "ts",
|
39
|
+
"rewrite": "true",
|
40
|
+
"lint": "false"
|
41
|
+
},
|
42
|
+
"engineStrict": true,
|
43
|
+
"engines": {
|
44
|
+
"node": ">=22.12.0",
|
45
|
+
"npm": ">=10.9.0"
|
46
|
+
},
|
47
|
+
"peerDependencies": {
|
48
|
+
"eslint": "~9.17.0",
|
49
|
+
"mocha": "^11.0.1",
|
50
|
+
"svelte": "^5.14.4",
|
51
|
+
"typescript": ">=5.7.2"
|
52
|
+
},
|
53
|
+
"peerDependenciesMeta": {
|
54
|
+
"mocha": {
|
55
|
+
"optional": true
|
56
|
+
},
|
57
|
+
"svelte": {
|
58
|
+
"optional": true
|
59
|
+
},
|
60
|
+
"typescript": {
|
61
|
+
"optional": true
|
62
|
+
}
|
63
|
+
},
|
64
|
+
"dependencies": {
|
65
|
+
"@eslinted/core": "14.2.11",
|
66
|
+
"@eslinted/defaults": "4.6.7",
|
67
|
+
"@html-eslint/eslint-plugin": "0.31.1",
|
68
|
+
"@html-eslint/parser": "0.31.0",
|
69
|
+
"@stylistic/eslint-plugin": "2.12.1",
|
70
|
+
"@typescript-eslint/eslint-plugin": "8.18.1",
|
71
|
+
"@typescript-eslint/parser": "8.18.1",
|
72
|
+
"eslint-plugin-chai-expect": "3.1.0",
|
73
|
+
"eslint-plugin-chai-friendly": "1.0.1",
|
74
|
+
"eslint-plugin-jsonc": "2.18.2",
|
75
|
+
"eslint-plugin-mocha": "10.5.0",
|
76
|
+
"eslint-plugin-svelte": "2.46.1",
|
77
|
+
"eslint-plugin-yml": "1.16.0",
|
78
|
+
"jsonc-eslint-parser": "2.4.0",
|
79
|
+
"svelte": "^5.14.4",
|
80
|
+
"svelte-eslint-parser": "0.43.0",
|
81
|
+
"yaml-eslint-parser": "1.2.3"
|
82
|
+
},
|
83
|
+
"devDependencies": {
|
84
|
+
"@eslint/config-inspector": "^0.6.0",
|
85
|
+
"@types/chai": "^5.0.1",
|
86
|
+
"@types/mocha": "^10.0.10",
|
87
|
+
"chai": "^5.1.2",
|
88
|
+
"mocha": "^11.0.1",
|
89
|
+
"npm-run-all": "^4.1.5",
|
90
|
+
"run-script-os": "^1.1.6",
|
91
|
+
"ts-add-js-extension": "^1.6.5",
|
92
|
+
"typescript": "^5.7.2"
|
93
|
+
},
|
94
|
+
"scripts": {
|
95
|
+
"build": "run-os",
|
96
|
+
"build:default": "npm run rebuild+lint+test -- $npm_package_config_language $npm_package_config_lint default",
|
97
|
+
"build:windows": "npm run rebuild+lint+test -- %npm_package_config_language% %npm_package_config_lint% windows",
|
98
|
+
"rebuild+lint+test": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
|
99
|
+
"clean:ts:default": "rm -rf dist",
|
100
|
+
"clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
|
101
|
+
"clean:svelte:default": "rm -rf build .svelte-kit",
|
102
|
+
"clean:svelte:windows": "run-s clean:svelte:windows:*",
|
103
|
+
"clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
|
104
|
+
"clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
|
105
|
+
"compile:ts:compile": "tsc",
|
106
|
+
"compile:ts:rewrite": "run-os",
|
107
|
+
"compile:ts:rewrite:default": "npm run compile:ts:rewrite+condition:$npm_package_config_rewrite",
|
108
|
+
"compile:ts:rewrite:windows": "npm run compile:ts:rewrite+condition:%npm_package_config_rewrite%",
|
109
|
+
"compile:ts:rewrite+condition:true": "ts-add-js-extension --dir=dist",
|
110
|
+
"compile:ts:rewrite+condition:false": "echo \"Skip rewrite TypeScript imports (fix=false)\"",
|
111
|
+
"compile:svelte:sync": "svelte-kit sync",
|
112
|
+
"compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
113
|
+
"compile:svelte:compile": "vite build",
|
114
|
+
"lint": "npm run build",
|
115
|
+
"lint:true": "run-os",
|
116
|
+
"lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
|
117
|
+
"lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
|
118
|
+
"lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
|
119
|
+
"lint:scope:global:configs": "npm run linter -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
|
120
|
+
"lint:scope:global:code": "npm run linter -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
|
121
|
+
"lint:scope:ts": "echo \"Linting `ts`\"",
|
122
|
+
"lint:scope:svelte": "npm run linter -- {src,tests,static}/**/*.svelte",
|
123
|
+
"linter": "eslint --cache --fix",
|
124
|
+
"postbuild": "echo \"Build (+lint) complete.\"",
|
125
|
+
"pretest": "npm run build",
|
126
|
+
"test": "",
|
127
|
+
"test:ts": "mocha",
|
128
|
+
"test:svelte": "",
|
129
|
+
"start": "run-os",
|
130
|
+
"start:default": "npm run start+os:$npm_package_config_language",
|
131
|
+
"start:windows": "npm run start+os:%npm_package_config_language%",
|
132
|
+
"start+os:ts": "node .",
|
133
|
+
"start+os:svelte": "vite preview",
|
134
|
+
"prestart": "npm test",
|
135
|
+
"prepublishOnly": "npm test",
|
136
|
+
"postpublish": "run-os",
|
137
|
+
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
138
|
+
"postpublish:windows": "cmd /c for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest",
|
139
|
+
"predeploy": "npm test",
|
140
|
+
"deploy": ""
|
141
|
+
},
|
142
|
+
"mocha": {
|
143
|
+
"spec": [
|
144
|
+
"dist/**/*.spec.js"
|
145
|
+
]
|
146
|
+
},
|
147
|
+
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
148
|
+
}
|
package/src/index.spec.ts
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
import { expect } from "chai";
|
2
|
-
import linted from ".";
|
3
|
-
|
4
|
-
const configs = linted();
|
5
|
-
|
6
|
-
describe("Linted", function () {
|
7
|
-
describe("shape", function () {
|
8
|
-
it("is a function", function () {
|
9
|
-
expect(linted)
|
10
|
-
.a("function");
|
11
|
-
});
|
12
|
-
});
|
13
|
-
describe("output", function () {
|
14
|
-
it("is a non-empty array", function () {
|
15
|
-
expect(configs)
|
16
|
-
.an("array")
|
17
|
-
.not.empty;
|
18
|
-
});
|
19
|
-
});
|
20
|
-
});
|
1
|
+
import { expect } from "chai";
|
2
|
+
import linted from ".";
|
3
|
+
|
4
|
+
const configs = linted();
|
5
|
+
|
6
|
+
describe("Linted", function () {
|
7
|
+
describe("shape", function () {
|
8
|
+
it("is a function", function () {
|
9
|
+
expect(linted)
|
10
|
+
.a("function");
|
11
|
+
});
|
12
|
+
});
|
13
|
+
describe("output", function () {
|
14
|
+
it("is a non-empty array", function () {
|
15
|
+
expect(configs)
|
16
|
+
.an("array")
|
17
|
+
.not.empty;
|
18
|
+
});
|
19
|
+
});
|
20
|
+
});
|
package/src/index.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import Core, { type Input } from "@eslinted/core";
|
2
|
-
import * as defaults from "@eslinted/defaults";
|
3
|
-
import plugins from "./plugins";
|
4
|
-
import parsers from "./parsers";
|
5
|
-
|
6
|
-
export default function (extensions: Input["extensions"] = {}) {
|
7
|
-
try {
|
8
|
-
return Core({
|
9
|
-
imports: { plugins, parsers },
|
10
|
-
defaults,
|
11
|
-
extensions,
|
12
|
-
});
|
13
|
-
}
|
14
|
-
catch (e) {
|
15
|
-
throw new Error(`linted(): `, { cause: e });
|
16
|
-
}
|
17
|
-
}
|
1
|
+
import Core, { type Input } from "@eslinted/core";
|
2
|
+
import * as defaults from "@eslinted/defaults";
|
3
|
+
import plugins from "./plugins";
|
4
|
+
import parsers from "./parsers";
|
5
|
+
|
6
|
+
export default function (extensions: Input["extensions"] = {}) {
|
7
|
+
try {
|
8
|
+
return Core({
|
9
|
+
imports: { plugins, parsers },
|
10
|
+
defaults,
|
11
|
+
extensions,
|
12
|
+
});
|
13
|
+
}
|
14
|
+
catch (e) {
|
15
|
+
throw new Error(`linted(): `, { cause: e });
|
16
|
+
}
|
17
|
+
}
|
package/src/parsers.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
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
|
-
|
7
|
-
export default {
|
8
|
-
ts,
|
9
|
-
svelte,
|
10
|
-
html,
|
11
|
-
jsonc,
|
12
|
-
yml,
|
13
|
-
} 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
|
+
|
7
|
+
export default {
|
8
|
+
ts,
|
9
|
+
svelte,
|
10
|
+
html,
|
11
|
+
jsonc,
|
12
|
+
yml,
|
13
|
+
} as const;
|
package/src/plugins.ts
CHANGED
@@ -1,21 +1,21 @@
|
|
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 chai_friendly from "eslint-plugin-chai-friendly";
|
6
|
-
import chai_expect from "eslint-plugin-chai-expect";
|
7
|
-
import html_eslint from "@html-eslint/eslint-plugin";
|
8
|
-
import jsonc from "eslint-plugin-jsonc";
|
9
|
-
import yml from "eslint-plugin-yml";
|
10
|
-
|
11
|
-
export default {
|
12
|
-
"@stylistic": stylistic,
|
13
|
-
"@typescript-eslint": typescript_eslint as unknown as { readonly configs: unknown },
|
14
|
-
svelte,
|
15
|
-
mocha,
|
16
|
-
"chai-friendly": chai_friendly,
|
17
|
-
"chai-expect": chai_expect,
|
18
|
-
"@html-eslint": html_eslint,
|
19
|
-
jsonc,
|
20
|
-
yml,
|
21
|
-
} 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 chai_friendly from "eslint-plugin-chai-friendly";
|
6
|
+
import chai_expect from "eslint-plugin-chai-expect";
|
7
|
+
import html_eslint from "@html-eslint/eslint-plugin";
|
8
|
+
import jsonc from "eslint-plugin-jsonc";
|
9
|
+
import yml from "eslint-plugin-yml";
|
10
|
+
|
11
|
+
export default {
|
12
|
+
"@stylistic": stylistic,
|
13
|
+
"@typescript-eslint": typescript_eslint as unknown as { readonly configs: unknown },
|
14
|
+
svelte,
|
15
|
+
mocha,
|
16
|
+
"chai-friendly": chai_friendly,
|
17
|
+
"chai-expect": chai_expect,
|
18
|
+
"@html-eslint": html_eslint,
|
19
|
+
jsonc,
|
20
|
+
yml,
|
21
|
+
} as const;
|