linted 35.1.6 → 35.1.7

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 CHANGED
@@ -3,5 +3,6 @@ export default function (extensions?: Parameters<typeof Core>[6]): {
3
3
  files?: Array<string | [string, string]>;
4
4
  ignores?: string[];
5
5
  rules?: import("@eslinted/core/typings/rules").Rules;
6
+ plugins?: Record<string, unknown>;
6
7
  }[];
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAUlC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAM;;;;IAW5C"}
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;;;;;IA6B5C"}
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
- return Core(scopes, optional, tree, imports, settings, defaults, extensions);
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":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAE1C,MAAM,CAAC,OAAO,WACZ,aAAyC,EAAE;IAE3C,OAAO,IAAI,CACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,CACX,CAAC;AACJ,CAAC"}
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",
6
+ "version": "35.1.7",
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": "31.2.7",
55
- "@eslinted/defaults": "17.6.1",
54
+ "@eslinted/core": "32.0.2",
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
- return Core<typeof scopes[number], typeof optional[number]>(
30
+ const configs = Core(
15
31
  scopes,
16
32
  optional,
17
33
  tree,
18
- imports,
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
  }
package/src/tsconfig.json CHANGED
@@ -10,9 +10,6 @@
10
10
  {
11
11
  "path": "scope",
12
12
  },
13
- {
14
- "path": "imports",
15
- },
16
13
  {
17
14
  "path": "settings",
18
15
  },