linted 28.1.2 → 28.1.3
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 +33 -33
- package/.github/workflows/rc.yml +33 -33
- package/.markdownlint.jsonc +126 -126
- package/LICENSE +21 -21
- package/README.md +351 -351
- package/SECURITY.md +8 -8
- package/eslint.config.js +3 -3
- package/package.json +144 -144
- package/src/index.spec.ts +20 -20
- package/src/index.ts +18 -18
- package/src/parsers.ts +15 -15
- package/src/plugins.ts +23 -23
- package/tsconfig.json +163 -163
- package/typings/chai.d.ts +6 -6
- package/typings/mocha.d.ts +3 -3
package/SECURITY.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# Security Policy
|
2
|
-
|
3
|
-
## Reporting a Vulnerability
|
4
|
-
This repository participates in GitHub private vulnerability reporting.
|
5
|
-
|
6
|
-
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
7
|
-
|
8
|
-
Thank you for your dedication to safety.
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Reporting a Vulnerability
|
4
|
+
This repository participates in GitHub private vulnerability reporting.
|
5
|
+
|
6
|
+
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
7
|
+
|
8
|
+
Thank you for your dedication to safety.
|
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,144 +1,144 @@
|
|
1
|
-
{
|
2
|
-
"$template": "22.14.7",
|
3
|
-
"$schema": "https://json.schemastore.org/package",
|
4
|
-
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
5
|
-
"name": "linted",
|
6
|
-
"version": "28.1.
|
7
|
-
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
8
|
-
"repository": "github:jimmy-zhening-luo/linted",
|
9
|
-
"license": "MIT",
|
10
|
-
"private": false,
|
11
|
-
"engineStrict": true,
|
12
|
-
"engines": {
|
13
|
-
"node": ">=22.14.0",
|
14
|
-
"npm": ">=10.9.2"
|
15
|
-
},
|
16
|
-
"peerDependencies": {
|
17
|
-
"eslint": "~9.21.0",
|
18
|
-
"mocha": "^11.1.0",
|
19
|
-
"svelte": "^5.22.
|
20
|
-
"typescript": "^5.8.2"
|
21
|
-
},
|
22
|
-
"peerDependenciesMeta": {
|
23
|
-
"mocha": {
|
24
|
-
"optional": true
|
25
|
-
},
|
26
|
-
"svelte": {
|
27
|
-
"optional": true
|
28
|
-
},
|
29
|
-
"typescript": {
|
30
|
-
"optional": true
|
31
|
-
}
|
32
|
-
},
|
33
|
-
"dependencies": {
|
34
|
-
"@eslint/css": "0.4.0",
|
35
|
-
"@eslinted/core": "16.2.1",
|
36
|
-
"@eslinted/defaults": "7.1.1",
|
37
|
-
"@html-eslint/eslint-plugin": "0.35.
|
38
|
-
"@html-eslint/parser": "0.35.
|
39
|
-
"@stylistic/eslint-plugin": "4.2.0",
|
40
|
-
"eslint-plugin-chai-expect": "3.1.0",
|
41
|
-
"eslint-plugin-chai-friendly": "1.0.1",
|
42
|
-
"eslint-plugin-jsonc": "2.19.1",
|
43
|
-
"eslint-plugin-mocha": "10.5.0",
|
44
|
-
"eslint-plugin-svelte": "3.0.3",
|
45
|
-
"eslint-plugin-yml": "1.17.0",
|
46
|
-
"jsonc-eslint-parser": "2.4.0",
|
47
|
-
"svelte": "^5.22.
|
48
|
-
"svelte-eslint-parser": "1.0.1",
|
49
|
-
"typescript-eslint": "8.26.0",
|
50
|
-
"yaml-eslint-parser": "1.3.0"
|
51
|
-
},
|
52
|
-
"devDependencies": {
|
53
|
-
"@types/chai": "^5.0
|
54
|
-
"@types/mocha": "^10.0.10",
|
55
|
-
"chai": "^5.2.0",
|
56
|
-
"mocha": "^11.1.0",
|
57
|
-
"npm-run-all": "^4.1.5",
|
58
|
-
"run-script-os": "^1.1.6",
|
59
|
-
"ts-add-js-extension": "^1.6.5",
|
60
|
-
"typescript": "^5.8.2"
|
61
|
-
},
|
62
|
-
"type": "module",
|
63
|
-
"main": "dist/index.js",
|
64
|
-
"types": "dist/index.d.ts",
|
65
|
-
"config": {
|
66
|
-
"language": "ts",
|
67
|
-
"rewrite": "true",
|
68
|
-
"lint": "false"
|
69
|
-
},
|
70
|
-
"scripts": {
|
71
|
-
"build": "run-os",
|
72
|
-
"build:default": "npm run make -- $npm_package_config_language $npm_package_config_lint default",
|
73
|
-
"build:windows": "npm run make -- %npm_package_config_language% %npm_package_config_lint% windows",
|
74
|
-
"postbuild": "echo \"Clean built.\"",
|
75
|
-
"make": "run-s \"make:clean-{1}+{3}\" \"make:build-{1}:*\" \"make:lint+{2}\" --",
|
76
|
-
"make:clean-ts+default": "rm -rf dist",
|
77
|
-
"make:clean-ts+windows": "cmd /c if exist dist rmdir /s /q dist",
|
78
|
-
"make:clean-svelte+default": "rm -rf build .svelte-kit",
|
79
|
-
"make:clean-svelte+windows": "run-p make:clean-svelte+windows:*",
|
80
|
-
"make:clean-svelte+windows:build": "cmd /c if exist build rmdir /s /q build",
|
81
|
-
"make:clean-svelte+windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
|
82
|
-
"make:build-ts:compile": "tsc",
|
83
|
-
"make:build-ts:rewrite": "run-os",
|
84
|
-
"make:build-ts:rewrite:default": "run-s make:build-ts:rewrite:-$npm_package_config_rewrite",
|
85
|
-
"make:build-ts:rewrite:windows": "run-s make:build-ts:rewrite:-%npm_package_config_rewrite%",
|
86
|
-
"make:build-ts:rewrite:-true": "ts-add-js-extension --dir=dist",
|
87
|
-
"make:build-ts:rewrite:-false": "echo \"Skip rewrite TypeScript import.\"",
|
88
|
-
"make:build-svelte:sync": "svelte-kit sync",
|
89
|
-
"make:build-svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
90
|
-
"make:build-svelte:compile": "vite build",
|
91
|
-
"make:lint+false": "(run-s make:lint+true) || (echo \"Skip lint (optional).\")",
|
92
|
-
"make:lint+true": "run-s lint-all",
|
93
|
-
"lint": "run-s build",
|
94
|
-
"lint-all": "npm run linter -- \"{,src/**/,tests/**/,static/**/,typings/**/,public/**/,tools/**/,.github/**/,.vscode/**/}*.{js,cjs,mjs,ts,cts,mts,svelte,html,json,jsonc,code-snippets,yml,yaml}\"",
|
95
|
-
"linter": "eslint --cache --fix",
|
96
|
-
"pretest": "run-s build",
|
97
|
-
"test": "run-os",
|
98
|
-
"test:default": "run-s test-$npm_package_config_language",
|
99
|
-
"test:windows": "run-s test-%npm_package_config_language%",
|
100
|
-
"test-ts": "mocha",
|
101
|
-
"test-svelte": "",
|
102
|
-
"prestart": "npm test",
|
103
|
-
"start": "run-os",
|
104
|
-
"start:default": "run-s start-$npm_package_config_language",
|
105
|
-
"start:windows": "run-s start-%npm_package_config_language%",
|
106
|
-
"start-ts": "node .",
|
107
|
-
"start-svelte": "vite preview",
|
108
|
-
"prepublishOnly": "npm test",
|
109
|
-
"postpublish": "run-os",
|
110
|
-
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
111
|
-
"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",
|
112
|
-
"predeploy": "npm test",
|
113
|
-
"deploy": ""
|
114
|
-
},
|
115
|
-
"publishConfig": {
|
116
|
-
"access": "public",
|
117
|
-
"tag": "next"
|
118
|
-
},
|
119
|
-
"mocha": {
|
120
|
-
"spec": [
|
121
|
-
"dist/**/*.spec.js"
|
122
|
-
]
|
123
|
-
},
|
124
|
-
"keywords": [
|
125
|
-
"eslint",
|
126
|
-
"eslint-config",
|
127
|
-
"eslint-plugin",
|
128
|
-
"linter",
|
129
|
-
"formatter",
|
130
|
-
"typescript",
|
131
|
-
"javascript",
|
132
|
-
"stylistic",
|
133
|
-
"svelte",
|
134
|
-
"sveltekit",
|
135
|
-
"html",
|
136
|
-
"css",
|
137
|
-
"mocha",
|
138
|
-
"tailwindcss",
|
139
|
-
"json",
|
140
|
-
"jsonc",
|
141
|
-
"yaml"
|
142
|
-
],
|
143
|
-
"author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
144
|
-
}
|
1
|
+
{
|
2
|
+
"$template": "22.14.7",
|
3
|
+
"$schema": "https://json.schemastore.org/package",
|
4
|
+
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
5
|
+
"name": "linted",
|
6
|
+
"version": "28.1.3",
|
7
|
+
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
8
|
+
"repository": "github:jimmy-zhening-luo/linted",
|
9
|
+
"license": "MIT",
|
10
|
+
"private": false,
|
11
|
+
"engineStrict": true,
|
12
|
+
"engines": {
|
13
|
+
"node": ">=22.14.0",
|
14
|
+
"npm": ">=10.9.2"
|
15
|
+
},
|
16
|
+
"peerDependencies": {
|
17
|
+
"eslint": "~9.21.0",
|
18
|
+
"mocha": "^11.1.0",
|
19
|
+
"svelte": "^5.22.5",
|
20
|
+
"typescript": "^5.8.2"
|
21
|
+
},
|
22
|
+
"peerDependenciesMeta": {
|
23
|
+
"mocha": {
|
24
|
+
"optional": true
|
25
|
+
},
|
26
|
+
"svelte": {
|
27
|
+
"optional": true
|
28
|
+
},
|
29
|
+
"typescript": {
|
30
|
+
"optional": true
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"dependencies": {
|
34
|
+
"@eslint/css": "0.4.0",
|
35
|
+
"@eslinted/core": "16.2.1",
|
36
|
+
"@eslinted/defaults": "7.1.1",
|
37
|
+
"@html-eslint/eslint-plugin": "0.35.2",
|
38
|
+
"@html-eslint/parser": "0.35.2",
|
39
|
+
"@stylistic/eslint-plugin": "4.2.0",
|
40
|
+
"eslint-plugin-chai-expect": "3.1.0",
|
41
|
+
"eslint-plugin-chai-friendly": "1.0.1",
|
42
|
+
"eslint-plugin-jsonc": "2.19.1",
|
43
|
+
"eslint-plugin-mocha": "10.5.0",
|
44
|
+
"eslint-plugin-svelte": "3.0.3",
|
45
|
+
"eslint-plugin-yml": "1.17.0",
|
46
|
+
"jsonc-eslint-parser": "2.4.0",
|
47
|
+
"svelte": "^5.22.5",
|
48
|
+
"svelte-eslint-parser": "1.0.1",
|
49
|
+
"typescript-eslint": "8.26.0",
|
50
|
+
"yaml-eslint-parser": "1.3.0"
|
51
|
+
},
|
52
|
+
"devDependencies": {
|
53
|
+
"@types/chai": "^5.2.0",
|
54
|
+
"@types/mocha": "^10.0.10",
|
55
|
+
"chai": "^5.2.0",
|
56
|
+
"mocha": "^11.1.0",
|
57
|
+
"npm-run-all": "^4.1.5",
|
58
|
+
"run-script-os": "^1.1.6",
|
59
|
+
"ts-add-js-extension": "^1.6.5",
|
60
|
+
"typescript": "^5.8.2"
|
61
|
+
},
|
62
|
+
"type": "module",
|
63
|
+
"main": "dist/index.js",
|
64
|
+
"types": "dist/index.d.ts",
|
65
|
+
"config": {
|
66
|
+
"language": "ts",
|
67
|
+
"rewrite": "true",
|
68
|
+
"lint": "false"
|
69
|
+
},
|
70
|
+
"scripts": {
|
71
|
+
"build": "run-os",
|
72
|
+
"build:default": "npm run make -- $npm_package_config_language $npm_package_config_lint default",
|
73
|
+
"build:windows": "npm run make -- %npm_package_config_language% %npm_package_config_lint% windows",
|
74
|
+
"postbuild": "echo \"Clean built.\"",
|
75
|
+
"make": "run-s \"make:clean-{1}+{3}\" \"make:build-{1}:*\" \"make:lint+{2}\" --",
|
76
|
+
"make:clean-ts+default": "rm -rf dist",
|
77
|
+
"make:clean-ts+windows": "cmd /c if exist dist rmdir /s /q dist",
|
78
|
+
"make:clean-svelte+default": "rm -rf build .svelte-kit",
|
79
|
+
"make:clean-svelte+windows": "run-p make:clean-svelte+windows:*",
|
80
|
+
"make:clean-svelte+windows:build": "cmd /c if exist build rmdir /s /q build",
|
81
|
+
"make:clean-svelte+windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
|
82
|
+
"make:build-ts:compile": "tsc",
|
83
|
+
"make:build-ts:rewrite": "run-os",
|
84
|
+
"make:build-ts:rewrite:default": "run-s make:build-ts:rewrite:-$npm_package_config_rewrite",
|
85
|
+
"make:build-ts:rewrite:windows": "run-s make:build-ts:rewrite:-%npm_package_config_rewrite%",
|
86
|
+
"make:build-ts:rewrite:-true": "ts-add-js-extension --dir=dist",
|
87
|
+
"make:build-ts:rewrite:-false": "echo \"Skip rewrite TypeScript import.\"",
|
88
|
+
"make:build-svelte:sync": "svelte-kit sync",
|
89
|
+
"make:build-svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
90
|
+
"make:build-svelte:compile": "vite build",
|
91
|
+
"make:lint+false": "(run-s make:lint+true) || (echo \"Skip lint (optional).\")",
|
92
|
+
"make:lint+true": "run-s lint-all",
|
93
|
+
"lint": "run-s build",
|
94
|
+
"lint-all": "npm run linter -- \"{,src/**/,tests/**/,static/**/,typings/**/,public/**/,tools/**/,.github/**/,.vscode/**/}*.{js,cjs,mjs,ts,cts,mts,svelte,html,json,jsonc,code-snippets,yml,yaml}\"",
|
95
|
+
"linter": "eslint --cache --fix",
|
96
|
+
"pretest": "run-s build",
|
97
|
+
"test": "run-os",
|
98
|
+
"test:default": "run-s test-$npm_package_config_language",
|
99
|
+
"test:windows": "run-s test-%npm_package_config_language%",
|
100
|
+
"test-ts": "mocha",
|
101
|
+
"test-svelte": "",
|
102
|
+
"prestart": "npm test",
|
103
|
+
"start": "run-os",
|
104
|
+
"start:default": "run-s start-$npm_package_config_language",
|
105
|
+
"start:windows": "run-s start-%npm_package_config_language%",
|
106
|
+
"start-ts": "node .",
|
107
|
+
"start-svelte": "vite preview",
|
108
|
+
"prepublishOnly": "npm test",
|
109
|
+
"postpublish": "run-os",
|
110
|
+
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
111
|
+
"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",
|
112
|
+
"predeploy": "npm test",
|
113
|
+
"deploy": ""
|
114
|
+
},
|
115
|
+
"publishConfig": {
|
116
|
+
"access": "public",
|
117
|
+
"tag": "next"
|
118
|
+
},
|
119
|
+
"mocha": {
|
120
|
+
"spec": [
|
121
|
+
"dist/**/*.spec.js"
|
122
|
+
]
|
123
|
+
},
|
124
|
+
"keywords": [
|
125
|
+
"eslint",
|
126
|
+
"eslint-config",
|
127
|
+
"eslint-plugin",
|
128
|
+
"linter",
|
129
|
+
"formatter",
|
130
|
+
"typescript",
|
131
|
+
"javascript",
|
132
|
+
"stylistic",
|
133
|
+
"svelte",
|
134
|
+
"sveltekit",
|
135
|
+
"html",
|
136
|
+
"css",
|
137
|
+
"mocha",
|
138
|
+
"tailwindcss",
|
139
|
+
"json",
|
140
|
+
"jsonc",
|
141
|
+
"yaml"
|
142
|
+
],
|
143
|
+
"author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
144
|
+
}
|
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,18 +1,18 @@
|
|
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
|
-
// import type { Linter } from "eslint";
|
6
|
-
|
7
|
-
export default function (extensions: Input["extensions"] = {}): readonly unknown[] {
|
8
|
-
try {
|
9
|
-
return Core({
|
10
|
-
imports: { plugins, parsers },
|
11
|
-
defaults,
|
12
|
-
extensions,
|
13
|
-
});
|
14
|
-
}
|
15
|
-
catch (e) {
|
16
|
-
throw new Error(`linted: `, { cause: e });
|
17
|
-
}
|
18
|
-
}
|
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
|
+
// import type { Linter } from "eslint";
|
6
|
+
|
7
|
+
export default function (extensions: Input["extensions"] = {}): readonly unknown[] {
|
8
|
+
try {
|
9
|
+
return Core({
|
10
|
+
imports: { plugins, parsers },
|
11
|
+
defaults,
|
12
|
+
extensions,
|
13
|
+
});
|
14
|
+
}
|
15
|
+
catch (e) {
|
16
|
+
throw new Error(`linted: `, { cause: e });
|
17
|
+
}
|
18
|
+
}
|
package/src/parsers.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { parser as ts } from "typescript-eslint";
|
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
|
-
type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
|
8
|
-
|
9
|
-
export const parsers: Readonly<Record<Parsers, unknown>> = {
|
10
|
-
ts,
|
11
|
-
svelte,
|
12
|
-
html,
|
13
|
-
jsonc,
|
14
|
-
yml,
|
15
|
-
};
|
1
|
+
import { parser as ts } from "typescript-eslint";
|
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
|
+
type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
|
8
|
+
|
9
|
+
export const parsers: Readonly<Record<Parsers, unknown>> = {
|
10
|
+
ts,
|
11
|
+
svelte,
|
12
|
+
html,
|
13
|
+
jsonc,
|
14
|
+
yml,
|
15
|
+
};
|
package/src/plugins.ts
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
import stylistic from "@stylistic/eslint-plugin";
|
2
|
-
import { plugin as typescript_eslint } from "typescript-eslint";
|
3
|
-
import mocha from "eslint-plugin-mocha";
|
4
|
-
import chai_friendly from "eslint-plugin-chai-friendly";
|
5
|
-
import chai_expect from "eslint-plugin-chai-expect";
|
6
|
-
import svelte from "eslint-plugin-svelte";
|
7
|
-
import html_eslint from "@html-eslint/eslint-plugin";
|
8
|
-
import css from "@eslint/css";
|
9
|
-
import jsonc from "eslint-plugin-jsonc";
|
10
|
-
import yml from "eslint-plugin-yml";
|
11
|
-
|
12
|
-
export const plugins: Readonly<Record<string, Partial<Record<"configs", unknown>>>> = {
|
13
|
-
"@stylistic": stylistic,
|
14
|
-
"@typescript-eslint": typescript_eslint,
|
15
|
-
mocha,
|
16
|
-
"chai-friendly": chai_friendly,
|
17
|
-
"chai-expect": chai_expect,
|
18
|
-
svelte,
|
19
|
-
"@html-eslint": html_eslint,
|
20
|
-
css,
|
21
|
-
jsonc,
|
22
|
-
yml,
|
23
|
-
};
|
1
|
+
import stylistic from "@stylistic/eslint-plugin";
|
2
|
+
import { plugin as typescript_eslint } from "typescript-eslint";
|
3
|
+
import mocha from "eslint-plugin-mocha";
|
4
|
+
import chai_friendly from "eslint-plugin-chai-friendly";
|
5
|
+
import chai_expect from "eslint-plugin-chai-expect";
|
6
|
+
import svelte from "eslint-plugin-svelte";
|
7
|
+
import html_eslint from "@html-eslint/eslint-plugin";
|
8
|
+
import css from "@eslint/css";
|
9
|
+
import jsonc from "eslint-plugin-jsonc";
|
10
|
+
import yml from "eslint-plugin-yml";
|
11
|
+
|
12
|
+
export const plugins: Readonly<Record<string, Partial<Record<"configs", unknown>>>> = {
|
13
|
+
"@stylistic": stylistic,
|
14
|
+
"@typescript-eslint": typescript_eslint,
|
15
|
+
mocha,
|
16
|
+
"chai-friendly": chai_friendly,
|
17
|
+
"chai-expect": chai_expect,
|
18
|
+
svelte,
|
19
|
+
"@html-eslint": html_eslint,
|
20
|
+
css,
|
21
|
+
jsonc,
|
22
|
+
yml,
|
23
|
+
};
|