linted 35.1.6 → 35.1.8
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/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +37 -3
- package/src/tsconfig.json +0 -3
- package/dist/imports/index.d.ts +0 -579
- package/dist/imports/index.d.ts.map +0 -1
- package/dist/imports/index.js +0 -7
- package/dist/imports/index.js.map +0 -1
- package/dist/imports/parsers.d.ts +0 -10
- package/dist/imports/parsers.d.ts.map +0 -1
- package/dist/imports/parsers.js +0 -9
- package/dist/imports/parsers.js.map +0 -1
- package/dist/imports/plugins.d.ts +0 -575
- package/dist/imports/plugins.d.ts.map +0 -1
- package/dist/imports/plugins.js +0 -17
- package/dist/imports/plugins.js.map +0 -1
- package/src/imports/index.ts +0 -7
- package/src/imports/parsers.ts +0 -9
- package/src/imports/plugins.ts +0 -17
- package/src/imports/tsconfig.json +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import Core from "@eslinted/core";
|
|
2
|
-
export default function (extensions?: Parameters<typeof Core>[6]):
|
|
3
|
-
files?: Array<string | [string, string]>;
|
|
4
|
-
ignores?: string[];
|
|
5
|
-
rules?: import("@eslinted/core/typings/rules").Rules;
|
|
6
|
-
}[];
|
|
2
|
+
export default function (extensions?: Parameters<typeof Core>[6]): unknown[];
|
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAyBlC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAM,aA6B5C"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import Core from "@eslinted/core";
|
|
2
2
|
import { scopes, optional, tree, } from "./scope/index.js";
|
|
3
|
-
import imports from "./imports/index.js";
|
|
4
3
|
import settings from "./settings/index.js";
|
|
5
4
|
import defaults from "@eslinted/defaults";
|
|
5
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
6
|
+
import { plugin as ts, parser as tsParser, } from "typescript-eslint";
|
|
7
|
+
import html from "@html-eslint/eslint-plugin";
|
|
8
|
+
import htmlParser from "@html-eslint/parser";
|
|
9
|
+
import css from "@eslint/css";
|
|
10
|
+
import json from "@eslint/json";
|
|
11
|
+
import jsonc from "eslint-plugin-jsonc";
|
|
12
|
+
import yml from "eslint-plugin-yml";
|
|
13
|
+
import ymlParser from "yaml-eslint-parser";
|
|
6
14
|
export default function (extensions = {}) {
|
|
7
|
-
|
|
15
|
+
const configs = Core(scopes, optional, tree, {
|
|
16
|
+
ts: tsParser,
|
|
17
|
+
html: htmlParser,
|
|
18
|
+
yml: ymlParser,
|
|
19
|
+
}, settings, defaults, extensions);
|
|
20
|
+
configs[configs.length] = {
|
|
21
|
+
plugins: {
|
|
22
|
+
stylistic,
|
|
23
|
+
ts: ts,
|
|
24
|
+
html: html,
|
|
25
|
+
css,
|
|
26
|
+
json,
|
|
27
|
+
jsonc,
|
|
28
|
+
yml,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
return configs;
|
|
8
32
|
}
|
|
9
33
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAI1C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EACL,MAAM,IAAI,EAAE,EACZ,MAAM,IAAI,QAAQ,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,OAAO,WACZ,aAAyC,EAAE;IAE3C,MAAM,OAAO,GAAG,IAAI,CAClB,MAAM,EACN,QAAQ,EACR,IAAI,EACJ;QACE,EAAE,EAAE,QAAoC;QACxC,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,SAAS;KACf,EACD,QAAQ,EACR,QAAQ,EACR,UAAU,CACX,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;QACxB,OAAO,EAAE;YACP,SAAS;YACT,EAAE,EAAE,EAAwB;YAC5B,IAAI,EAAE,IAAc;YACpB,GAAG;YACH,IAAI;YACJ,KAAK;YACL,GAAG;SACJ;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "linted",
|
|
6
|
-
"version": "35.1.
|
|
6
|
+
"version": "35.1.8",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted",
|
|
8
8
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
|
9
9
|
"keywords": [
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint/css": "0.14.1",
|
|
53
53
|
"@eslint/json": "0.14.0",
|
|
54
|
-
"@eslinted/core": "
|
|
55
|
-
"@eslinted/defaults": "17.6.
|
|
54
|
+
"@eslinted/core": "32.0.3",
|
|
55
|
+
"@eslinted/defaults": "17.6.2",
|
|
56
56
|
"@html-eslint/eslint-plugin": "0.50.0",
|
|
57
57
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
58
58
|
"eslint-plugin-jsonc": "2.21.0",
|
package/src/index.ts
CHANGED
|
@@ -1,23 +1,57 @@
|
|
|
1
|
+
// #region Scope
|
|
1
2
|
import Core from "@eslinted/core";
|
|
2
3
|
import {
|
|
3
4
|
scopes,
|
|
4
5
|
optional,
|
|
5
6
|
tree,
|
|
6
7
|
} from "./scope";
|
|
7
|
-
import imports from "./imports";
|
|
8
8
|
import settings from "./settings";
|
|
9
9
|
import defaults from "@eslinted/defaults";
|
|
10
|
+
// #endregion
|
|
11
|
+
|
|
12
|
+
// #region External
|
|
13
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
14
|
+
import {
|
|
15
|
+
plugin as ts,
|
|
16
|
+
parser as tsParser,
|
|
17
|
+
} from "typescript-eslint";
|
|
18
|
+
import html from "@html-eslint/eslint-plugin";
|
|
19
|
+
import htmlParser from "@html-eslint/parser";
|
|
20
|
+
import css from "@eslint/css";
|
|
21
|
+
import json from "@eslint/json";
|
|
22
|
+
import jsonc from "eslint-plugin-jsonc";
|
|
23
|
+
import yml from "eslint-plugin-yml";
|
|
24
|
+
import ymlParser from "yaml-eslint-parser";
|
|
25
|
+
// #endregion
|
|
10
26
|
|
|
11
27
|
export default function (
|
|
12
28
|
extensions: Parameters<typeof Core>[6] = {},
|
|
13
29
|
) {
|
|
14
|
-
|
|
30
|
+
const configs = Core(
|
|
15
31
|
scopes,
|
|
16
32
|
optional,
|
|
17
33
|
tree,
|
|
18
|
-
|
|
34
|
+
{
|
|
35
|
+
ts: tsParser as NoInfer<typeof tsParser>,
|
|
36
|
+
html: htmlParser,
|
|
37
|
+
yml: ymlParser,
|
|
38
|
+
},
|
|
19
39
|
settings,
|
|
20
40
|
defaults,
|
|
21
41
|
extensions,
|
|
22
42
|
);
|
|
43
|
+
|
|
44
|
+
configs[configs.length] = {
|
|
45
|
+
plugins: {
|
|
46
|
+
stylistic,
|
|
47
|
+
ts: ts as NoInfer<typeof ts>,
|
|
48
|
+
html: html as object,
|
|
49
|
+
css,
|
|
50
|
+
json,
|
|
51
|
+
jsonc,
|
|
52
|
+
yml,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
return configs;
|
|
23
57
|
}
|