linted 30.7.2 → 30.8.1-rc.0
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 -36
- package/.github/workflows/rc.yml +36 -36
- package/.markdownlint.jsonc +97 -128
- package/.mocharc.yml +15 -15
- package/LICENSE +20 -20
- package/README.md +351 -351
- package/dist/imports/parsers.d.ts +1 -1
- package/dist/imports/parsers.d.ts.map +1 -1
- package/dist/imports/parsers.js +2 -2
- package/dist/imports/parsers.js.map +1 -1
- package/dist/imports/plugins.d.ts +3 -1
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports/plugins.js.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +101 -101
- package/src/imports/index.ts +2 -2
- package/src/imports/parsers.ts +9 -9
- package/src/imports/plugins.ts +23 -23
- package/src/index.spec.ts +37 -37
- package/src/index.ts +35 -35
- package/tsconfig.json +156 -156
- package/typings/chai.d.ts +6 -6
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAO,MAAM,OAAO;QACF,OAAO;;;CAGxB,CAAC"}
|
package/dist/imports/parsers.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,EAAE,EAAE,QAAmB;IACvB,IAAI;IACJ,GAAG;CACJ,CAAC"}
|
@@ -8,7 +8,9 @@ export declare const plugins: {
|
|
8
8
|
rules: import("@stylistic/eslint-plugin").Rules;
|
9
9
|
configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
|
10
10
|
};
|
11
|
-
"@typescript-eslint":
|
11
|
+
"@typescript-eslint": {
|
12
|
+
configs: unknown;
|
13
|
+
};
|
12
14
|
mocha: import("eslint").ESLint.Plugin;
|
13
15
|
"chai-friendly": typeof chai_friendly;
|
14
16
|
"chai-expect": typeof chai_expect;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAIhC,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAIhC,eAAO,MAAM,OAAO;;;;;0BAEyB;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAU+unB,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;qBAAmN,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAu3D,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAkxD,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAwyC,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAA89B,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAl50B,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;qBAA+K,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;CADl5L,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAyC;IAC/D,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
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,101 +1,101 @@
|
|
1
|
-
{
|
2
|
-
"$pkg": "2211.1.2",
|
3
|
-
"$schema": "https://json.schemastore.org/package",
|
4
|
-
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
5
|
-
"name": "linted",
|
6
|
-
"version": "30.
|
7
|
-
"repository": "github:jimmy-zhening-luo/linted",
|
8
|
-
"private": false,
|
9
|
-
"engineStrict": true,
|
10
|
-
"engines": {
|
11
|
-
"node": "^22",
|
12
|
-
"npm": "^10 || ^11"
|
13
|
-
},
|
14
|
-
"type": "module",
|
15
|
-
"peerDependencies": {
|
16
|
-
"eslint": "~9.32.0",
|
17
|
-
"eslint-plugin-svelte": "~3.11.0",
|
18
|
-
"mocha": "^11.7.1",
|
19
|
-
"typescript": "^5.
|
20
|
-
},
|
21
|
-
"peerDependenciesMeta": {
|
22
|
-
"eslint-plugin-svelte": {
|
23
|
-
"optional": true
|
24
|
-
},
|
25
|
-
"mocha": {
|
26
|
-
"optional": true
|
27
|
-
},
|
28
|
-
"typescript": {
|
29
|
-
"optional": true
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"dependencies": {
|
33
|
-
"@eslint/css": "0.10.0",
|
34
|
-
"@eslint/json": "0.13.1",
|
35
|
-
"@eslinted/core": "22.1.
|
36
|
-
"@eslinted/defaults": "12.7.
|
37
|
-
"@html-eslint/eslint-plugin": "0.43.1",
|
38
|
-
"@stylistic/eslint-plugin": "5.2.2",
|
39
|
-
"eslint-plugin-chai-expect": "3.1.0",
|
40
|
-
"eslint-plugin-chai-friendly": "1.1.0",
|
41
|
-
"eslint-plugin-jsonc": "2.20.1",
|
42
|
-
"eslint-plugin-mocha": "11.1.0",
|
43
|
-
"eslint-plugin-svelte": "~3.11.0",
|
44
|
-
"eslint-plugin-yml": "1.18.0",
|
45
|
-
"typescript-eslint": "8.38.0"
|
46
|
-
},
|
47
|
-
"devDependencies": {
|
48
|
-
"@types/chai": "^5.2.2",
|
49
|
-
"@types/mocha": "^10.0.10",
|
50
|
-
"chai": "^5.2.1",
|
51
|
-
"mocha": "^11.7.1",
|
52
|
-
"ts-add-js-extension": "^1.6.6",
|
53
|
-
"typescript": "^5.
|
54
|
-
},
|
55
|
-
"main": "dist/index.js",
|
56
|
-
"types": "dist/index.d.ts",
|
57
|
-
"scripts": {
|
58
|
-
"clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
|
59
|
-
"prebuild": "npm run clean",
|
60
|
-
"build": "tsc && ts-add-js-extension --dir=dist",
|
61
|
-
"build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
|
62
|
-
"postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
|
63
|
-
"lint": "eslint --cache --fix \"{,{src,tests,static,typings,public,tools,.github,.vscode}/**/}*.{{,[cm]}[jt]s,svelte,html,css,json{,c},code-snippets,y{,a}ml}\"",
|
64
|
-
"pretest": "npm run build",
|
65
|
-
"test": "mocha",
|
66
|
-
"test:svelte": "",
|
67
|
-
"prestart": "npm test",
|
68
|
-
"start": "node .",
|
69
|
-
"start:svelte": "vite preview --open",
|
70
|
-
"prepublishOnly": "npm test",
|
71
|
-
"postpublish": "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\" || npm run postpublish:default",
|
72
|
-
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
73
|
-
"predeploy": "npm test",
|
74
|
-
"deploy": ""
|
75
|
-
},
|
76
|
-
"publishConfig": {
|
77
|
-
"tag": "next"
|
78
|
-
},
|
79
|
-
"license": "MIT",
|
80
|
-
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
81
|
-
"keywords": [
|
82
|
-
"eslint",
|
83
|
-
"eslint-config",
|
84
|
-
"eslint-plugin",
|
85
|
-
"linter",
|
86
|
-
"formatter",
|
87
|
-
"typescript",
|
88
|
-
"javascript",
|
89
|
-
"stylistic",
|
90
|
-
"svelte",
|
91
|
-
"sveltekit",
|
92
|
-
"html",
|
93
|
-
"css",
|
94
|
-
"mocha",
|
95
|
-
"tailwindcss",
|
96
|
-
"json",
|
97
|
-
"jsonc",
|
98
|
-
"yaml"
|
99
|
-
],
|
100
|
-
"author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
101
|
-
}
|
1
|
+
{
|
2
|
+
"$pkg": "2211.1.2",
|
3
|
+
"$schema": "https://json.schemastore.org/package",
|
4
|
+
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
5
|
+
"name": "linted",
|
6
|
+
"version": "30.8.1-rc.0",
|
7
|
+
"repository": "github:jimmy-zhening-luo/linted",
|
8
|
+
"private": false,
|
9
|
+
"engineStrict": true,
|
10
|
+
"engines": {
|
11
|
+
"node": "^22",
|
12
|
+
"npm": "^10 || ^11"
|
13
|
+
},
|
14
|
+
"type": "module",
|
15
|
+
"peerDependencies": {
|
16
|
+
"eslint": "~9.32.0",
|
17
|
+
"eslint-plugin-svelte": "~3.11.0",
|
18
|
+
"mocha": "^11.7.1",
|
19
|
+
"typescript": "^5.9.2"
|
20
|
+
},
|
21
|
+
"peerDependenciesMeta": {
|
22
|
+
"eslint-plugin-svelte": {
|
23
|
+
"optional": true
|
24
|
+
},
|
25
|
+
"mocha": {
|
26
|
+
"optional": true
|
27
|
+
},
|
28
|
+
"typescript": {
|
29
|
+
"optional": true
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"dependencies": {
|
33
|
+
"@eslint/css": "0.10.0",
|
34
|
+
"@eslint/json": "0.13.1",
|
35
|
+
"@eslinted/core": "22.1.9",
|
36
|
+
"@eslinted/defaults": "12.7.2",
|
37
|
+
"@html-eslint/eslint-plugin": "0.43.1",
|
38
|
+
"@stylistic/eslint-plugin": "5.2.2",
|
39
|
+
"eslint-plugin-chai-expect": "3.1.0",
|
40
|
+
"eslint-plugin-chai-friendly": "1.1.0",
|
41
|
+
"eslint-plugin-jsonc": "2.20.1",
|
42
|
+
"eslint-plugin-mocha": "11.1.0",
|
43
|
+
"eslint-plugin-svelte": "~3.11.0",
|
44
|
+
"eslint-plugin-yml": "1.18.0",
|
45
|
+
"typescript-eslint": "8.38.0"
|
46
|
+
},
|
47
|
+
"devDependencies": {
|
48
|
+
"@types/chai": "^5.2.2",
|
49
|
+
"@types/mocha": "^10.0.10",
|
50
|
+
"chai": "^5.2.1",
|
51
|
+
"mocha": "^11.7.1",
|
52
|
+
"ts-add-js-extension": "^1.6.6",
|
53
|
+
"typescript": "^5.9.2"
|
54
|
+
},
|
55
|
+
"main": "dist/index.js",
|
56
|
+
"types": "dist/index.d.ts",
|
57
|
+
"scripts": {
|
58
|
+
"clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
|
59
|
+
"prebuild": "npm run clean",
|
60
|
+
"build": "tsc && ts-add-js-extension --dir=dist",
|
61
|
+
"build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
|
62
|
+
"postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
|
63
|
+
"lint": "eslint --cache --fix \"{,{src,tests,static,typings,public,tools,.github,.vscode}/**/}*.{{,[cm]}[jt]s,svelte,html,css,json{,c},code-snippets,y{,a}ml}\"",
|
64
|
+
"pretest": "npm run build",
|
65
|
+
"test": "mocha",
|
66
|
+
"test:svelte": "",
|
67
|
+
"prestart": "npm test",
|
68
|
+
"start": "node .",
|
69
|
+
"start:svelte": "vite preview --open",
|
70
|
+
"prepublishOnly": "npm test",
|
71
|
+
"postpublish": "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\" || npm run postpublish:default",
|
72
|
+
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
73
|
+
"predeploy": "npm test",
|
74
|
+
"deploy": ""
|
75
|
+
},
|
76
|
+
"publishConfig": {
|
77
|
+
"tag": "next"
|
78
|
+
},
|
79
|
+
"license": "MIT",
|
80
|
+
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
81
|
+
"keywords": [
|
82
|
+
"eslint",
|
83
|
+
"eslint-config",
|
84
|
+
"eslint-plugin",
|
85
|
+
"linter",
|
86
|
+
"formatter",
|
87
|
+
"typescript",
|
88
|
+
"javascript",
|
89
|
+
"stylistic",
|
90
|
+
"svelte",
|
91
|
+
"sveltekit",
|
92
|
+
"html",
|
93
|
+
"css",
|
94
|
+
"mocha",
|
95
|
+
"tailwindcss",
|
96
|
+
"json",
|
97
|
+
"jsonc",
|
98
|
+
"yaml"
|
99
|
+
],
|
100
|
+
"author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
101
|
+
}
|
package/src/imports/index.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { parsers } from "./parsers";
|
2
|
-
export { plugins } from "./plugins";
|
1
|
+
export { parsers } from "./parsers";
|
2
|
+
export { plugins } from "./plugins";
|
package/src/imports/parsers.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { parser as
|
2
|
-
import html from "@html-eslint/parser";
|
3
|
-
import yml from "yaml-eslint-parser";
|
4
|
-
|
5
|
-
export const parsers = {
|
6
|
-
ts,
|
7
|
-
html,
|
8
|
-
yml,
|
9
|
-
};
|
1
|
+
import { parser as tsParser } from "typescript-eslint";
|
2
|
+
import html from "@html-eslint/parser";
|
3
|
+
import yml from "yaml-eslint-parser";
|
4
|
+
|
5
|
+
export const parsers = {
|
6
|
+
ts: tsParser as unknown,
|
7
|
+
html,
|
8
|
+
yml,
|
9
|
+
};
|
package/src/imports/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 html_eslint from "@html-eslint/eslint-plugin";
|
7
|
-
import css from "@eslint/css";
|
8
|
-
import json from "@eslint/json";
|
9
|
-
import jsonc from "eslint-plugin-jsonc";
|
10
|
-
import yml from "eslint-plugin-yml";
|
11
|
-
|
12
|
-
export const plugins = {
|
13
|
-
"@stylistic": stylistic,
|
14
|
-
"@typescript-eslint": typescript_eslint,
|
15
|
-
mocha,
|
16
|
-
"chai-friendly": chai_friendly,
|
17
|
-
"chai-expect": chai_expect,
|
18
|
-
"@html-eslint": html_eslint,
|
19
|
-
css,
|
20
|
-
json,
|
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 html_eslint from "@html-eslint/eslint-plugin";
|
7
|
+
import css from "@eslint/css";
|
8
|
+
import json from "@eslint/json";
|
9
|
+
import jsonc from "eslint-plugin-jsonc";
|
10
|
+
import yml from "eslint-plugin-yml";
|
11
|
+
|
12
|
+
export const plugins = {
|
13
|
+
"@stylistic": stylistic,
|
14
|
+
"@typescript-eslint": typescript_eslint as { configs: unknown },
|
15
|
+
mocha,
|
16
|
+
"chai-friendly": chai_friendly,
|
17
|
+
"chai-expect": chai_expect,
|
18
|
+
"@html-eslint": html_eslint,
|
19
|
+
css,
|
20
|
+
json,
|
21
|
+
jsonc,
|
22
|
+
yml,
|
23
|
+
};
|
package/src/index.spec.ts
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
import "chai/register-should.js";
|
2
|
-
import linted from ".";
|
3
|
-
|
4
|
-
const configs = linted();
|
5
|
-
|
6
|
-
describe(
|
7
|
-
"linted",
|
8
|
-
function () {
|
9
|
-
describe(
|
10
|
-
"shape",
|
11
|
-
function () {
|
12
|
-
it(
|
13
|
-
"is a function",
|
14
|
-
function () {
|
15
|
-
linted
|
16
|
-
.should.be
|
17
|
-
.a("function");
|
18
|
-
},
|
19
|
-
);
|
20
|
-
},
|
21
|
-
);
|
22
|
-
describe(
|
23
|
-
"output",
|
24
|
-
function () {
|
25
|
-
it(
|
26
|
-
"is a non-empty array",
|
27
|
-
function () {
|
28
|
-
configs
|
29
|
-
.should.be
|
30
|
-
.an("array")
|
31
|
-
.not.empty;
|
32
|
-
},
|
33
|
-
);
|
34
|
-
},
|
35
|
-
);
|
36
|
-
},
|
37
|
-
);
|
1
|
+
import "chai/register-should.js";
|
2
|
+
import linted from ".";
|
3
|
+
|
4
|
+
const configs = linted();
|
5
|
+
|
6
|
+
describe(
|
7
|
+
"linted",
|
8
|
+
function () {
|
9
|
+
describe(
|
10
|
+
"shape",
|
11
|
+
function () {
|
12
|
+
it(
|
13
|
+
"is a function",
|
14
|
+
function () {
|
15
|
+
linted
|
16
|
+
.should.be
|
17
|
+
.a("function");
|
18
|
+
},
|
19
|
+
);
|
20
|
+
},
|
21
|
+
);
|
22
|
+
describe(
|
23
|
+
"output",
|
24
|
+
function () {
|
25
|
+
it(
|
26
|
+
"is a non-empty array",
|
27
|
+
function () {
|
28
|
+
configs
|
29
|
+
.should.be
|
30
|
+
.an("array")
|
31
|
+
.not.empty;
|
32
|
+
},
|
33
|
+
);
|
34
|
+
},
|
35
|
+
);
|
36
|
+
},
|
37
|
+
);
|
package/src/index.ts
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
import Core from "@eslinted/core";
|
2
|
-
import {
|
3
|
-
settings,
|
4
|
-
defaults,
|
5
|
-
} from "@eslinted/defaults";
|
6
|
-
import * as required from "./imports";
|
7
|
-
|
8
|
-
export default function (
|
9
|
-
extensions: Parameters<typeof Core>[0]["configuration"]["extensions"] = {},
|
10
|
-
optional: Parameters<typeof Core>[0]["imports"]["optional"] = {},
|
11
|
-
...attachments: Parameters<typeof Core>[0]["configuration"]["attachments"]
|
12
|
-
) {
|
13
|
-
try {
|
14
|
-
return Core(
|
15
|
-
{
|
16
|
-
imports: {
|
17
|
-
required,
|
18
|
-
optional,
|
19
|
-
},
|
20
|
-
configuration: {
|
21
|
-
settings,
|
22
|
-
defaults,
|
23
|
-
extensions,
|
24
|
-
attachments,
|
25
|
-
},
|
26
|
-
},
|
27
|
-
);
|
28
|
-
}
|
29
|
-
catch (e) {
|
30
|
-
throw new Error(
|
31
|
-
"linted: ",
|
32
|
-
{ cause: e },
|
33
|
-
);
|
34
|
-
}
|
35
|
-
}
|
1
|
+
import Core from "@eslinted/core";
|
2
|
+
import {
|
3
|
+
settings,
|
4
|
+
defaults,
|
5
|
+
} from "@eslinted/defaults";
|
6
|
+
import * as required from "./imports";
|
7
|
+
|
8
|
+
export default function (
|
9
|
+
extensions: Parameters<typeof Core>[0]["configuration"]["extensions"] = {},
|
10
|
+
optional: Parameters<typeof Core>[0]["imports"]["optional"] = {},
|
11
|
+
...attachments: Parameters<typeof Core>[0]["configuration"]["attachments"]
|
12
|
+
) {
|
13
|
+
try {
|
14
|
+
return Core(
|
15
|
+
{
|
16
|
+
imports: {
|
17
|
+
required,
|
18
|
+
optional,
|
19
|
+
},
|
20
|
+
configuration: {
|
21
|
+
settings,
|
22
|
+
defaults,
|
23
|
+
extensions,
|
24
|
+
attachments,
|
25
|
+
},
|
26
|
+
},
|
27
|
+
);
|
28
|
+
}
|
29
|
+
catch (e) {
|
30
|
+
throw new Error(
|
31
|
+
"linted: ",
|
32
|
+
{ cause: e },
|
33
|
+
);
|
34
|
+
}
|
35
|
+
}
|