@eslinted/core 22.0.1 → 22.1.0-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.
@@ -26,9 +26,6 @@ jobs:
26
26
  node-version: 22
27
27
  check-latest: true
28
28
  registry-url: "https://registry.npmjs.org"
29
- - name: Update NPM
30
- id: npm
31
- run: npm i -g npm
32
29
  - name: Install Dependencies
33
30
  id: ci
34
31
  run: npm ci
@@ -26,9 +26,6 @@ jobs:
26
26
  node-version: 22
27
27
  check-latest: true
28
28
  registry-url: "https://registry.npmjs.org"
29
- - name: Update NPM
30
- id: npm
31
- run: npm i -g npm
32
29
  - name: Install Dependencies
33
30
  id: ci
34
31
  run: npm ci
@@ -1,10 +1,10 @@
1
1
  {
2
- // #region Meta
3
- // "$md": "37.2.0",
4
- // "$help": "https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/Rules.md",
5
- // "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.37.4/schema/markdownlint-config-schema.json",
2
+ // #region v38.0.0
3
+ "$schema": "https://gist.githubusercontent.com/jimmy-zhening-luo/e0d6b5715f0df18bc462f752520bd485/raw",
4
+ "$help": {
5
+ "link": "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md",
6
+ },
6
7
  // #endregion
7
- // #region Rules
8
8
  "heading-increment": true /* MD001 */,
9
9
  "heading-style": {
10
10
  "style": "atx",
@@ -67,6 +67,7 @@
67
67
  "allowed_elements": [
68
68
  "br",
69
69
  "details",
70
+ "img",
70
71
  "summary",
71
72
  ],
72
73
  } /* MD033 */,
@@ -124,5 +125,4 @@
124
125
  } /* MD055 */,
125
126
  "table-column-count": true /* MD056 */,
126
127
  "blanks-around-tables": false /* MD058 */,
127
- // #endregion
128
128
  }
@@ -1,4 +1,4 @@
1
- export type State = ("error" | "warn" | "off");
1
+ export type State = "error" | "warn" | "off";
2
2
  export type Rules = Record<string, State | readonly [
3
3
  State,
4
4
  ...unknown[]
@@ -1 +1 @@
1
- {"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../src/interface/config/rule.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,CAChB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,MAAM,EACJ,KAAK,GACL,SAAS;IACT,KAAK;IACL,GAAG,OAAO,EAAE;CACb,CACF,CAAC"}
1
+ {"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../src/interface/config/rule.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GACX,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AACZ,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,MAAM,EACJ,KAAK,GACL,SAAS;IACT,KAAK;IACL,GAAG,OAAO,EAAE;CACb,CACF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IConfig } from "../../config/index.js";
2
- export type IAttachment = ({
2
+ export type IAttachment = {
3
3
  files: string[];
4
- } & Partial<Omit<IConfig, "files">>);
4
+ } & Partial<Omit<IConfig, "files">>;
5
5
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,CACtB;IACA,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,OAAO,CACP,IAAI,CACF,OAAO,EACP,OAAO,CACR,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,WAAW,GACjB;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,OAAO,CACP,IAAI,CACF,OAAO,EACP,OAAO,CACR,CACF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IConfig } from "../../config/index.js";
2
- export type Extensions<Scope extends string> = ({
2
+ export type Extensions<Scope extends string> = {
3
3
  "*"?: Partial<IConfig["linterOptions"] & IConfig["languageOptions"]> & {
4
4
  ignores?: string[];
5
5
  override?: boolean;
@@ -8,5 +8,5 @@ export type Extensions<Scope extends string> = ({
8
8
  files?: string[];
9
9
  ignores?: string[];
10
10
  rules?: IConfig["rules"];
11
- }>>);
11
+ }>>;
12
12
  //# sourceMappingURL=extensions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,CACpB,KAAK,SAAS,MAAM,IAClB,CACA;IACA,GAAG,CAAC,EAAE,OAAO,CACT,OAAO,CAAC,eAAe,CAAC,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAC7B,GAAG;QACF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,GACC,OAAO,CACP,MAAM,CACJ,KAAK,EACL;IACE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1B,CACF,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,CACpB,KAAK,SAAS,MAAM,IAEhB;IACF,GAAG,CAAC,EAAE,OAAO,CACT,OAAO,CAAC,eAAe,CAAC,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAC7B,GAAG;QACF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,GACC,OAAO,CACP,MAAM,CACJ,KAAK,EACL;IACE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1B,CACF,CACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { IConfig } from "../../config/index.js";
2
2
  import type { ScopeManifest } from "./manifest/index.js";
3
3
  export interface Settings<Scope extends string, Parser extends string> {
4
- global: (IConfig["linterOptions"] & IConfig["languageOptions"]);
4
+ global: IConfig["linterOptions"] & IConfig["languageOptions"];
5
5
  registry: Record<Scope, ScopeManifest<Parser>>;
6
6
  }
7
7
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,QAAQ,CACvB,KAAK,SAAS,MAAM,EACpB,MAAM,SAAS,MAAM;IAErB,MAAM,EAAE,CACJ,OAAO,CAAC,eAAe,CAAC,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAC7B,CAAC;IACF,QAAQ,EAAE,MAAM,CACd,KAAK,EACL,aAAa,CACX,MAAM,CACP,CACF,CAAC;CACH"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/configuration/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,QAAQ,CACvB,KAAK,SAAS,MAAM,EACpB,MAAM,SAAS,MAAM;IAErB,MAAM,EACF,OAAO,CAAC,eAAe,CAAC,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAC7B;IACD,QAAQ,EAAE,MAAM,CACd,KAAK,EACL,aAAa,CACX,MAAM,CACP,CACF,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
1
  import type { IConfig } from "../../config/index.js";
2
- export type Attachment = ({
2
+ export type Attachment = {
3
3
  files: string[];
4
- } & Partial<Omit<IConfig, "files">>);
4
+ } & Partial<Omit<IConfig, "files">>;
5
5
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/configs/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,CACrB;IACA,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,OAAO,CACP,IAAI,CACF,OAAO,EACP,OAAO,CACR,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/configs/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,GAChB;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,OAAO,CACP,IAAI,CACF,OAAO,EACP,OAAO,CACR,CACF,CAAC"}
@@ -1,2 +1,2 @@
1
- export type RequiredParser = ("ts" | "html" | "yml");
1
+ export type RequiredParser = "ts" | "html" | "yml";
2
2
  //# sourceMappingURL=parsers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/parsers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,CACzB,IAAI,GACJ,MAAM,GACN,KAAK,CACR,CAAC"}
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/parsers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACpB,IAAI,GACJ,MAAM,GACN,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- export type RequiredPlugin = ("@stylistic" | "@typescript-eslint" | "mocha" | "chai-friendly" | "chai-expect" | "@html-eslint" | "css" | "json" | "jsonc" | "yml");
1
+ export type RequiredPlugin = "@stylistic" | "@typescript-eslint" | "mocha" | "chai-friendly" | "chai-expect" | "@html-eslint" | "css" | "json" | "jsonc" | "yml";
2
2
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,CACzB,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,cAAc,GACd,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACpB,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,cAAc,GACd,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
- "$pkg": "2217.3.0",
2
+ "$pkg": "2211.0.0",
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/core",
6
- "version": "22.0.1",
6
+ "version": "22.1.0-rc.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
8
  "private": false,
9
9
  "engineStrict": true,
10
10
  "engines": {
11
- "node": "^22.17.1",
12
- "npm": "^11.4.2"
11
+ "node": "^22",
12
+ "npm": "^10 || ^11"
13
13
  },
14
14
  "type": "module",
15
15
  "peerDependenciesMeta": {},
@@ -22,56 +22,34 @@
22
22
  "chai": "^5.2.1",
23
23
  "mocha": "^11.7.1",
24
24
  "npm-run-all": "^4.1.5",
25
- "run-script-os": "^1.1.6",
26
25
  "ts-add-js-extension": "^1.6.6",
27
26
  "typescript": "^5.8.3"
28
27
  },
29
28
  "main": "dist/index.js",
30
29
  "types": "dist/index.d.ts",
31
- "config": {
32
- "language": "ts",
33
- "lint": "false"
34
- },
35
30
  "scripts": {
36
- "clean": "run-os",
37
- "clean:windows": "npm run clean:lang:%npm_package_config_language%:windows",
38
- "clean:default": "npm run clean:lang:$npm_package_config_language:default",
39
- "clean:lang:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
40
- "clean:lang:ts:default": "rm -rf dist",
41
- "clean:lang:svelte:windows": "cmd /c \"(if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit)\"",
42
- "clean:lang:svelte:default": "rm -rf build .svelte-kit",
43
- "clean:lint": "run-os",
44
- "clean:lint:windows": "cmd /c if exist .eslintcache del /f /q .eslintcache",
45
- "clean:lint:default": "rm -f .eslintcache",
31
+ "clean": "run-s clean:*",
32
+ "clean:ts": "cmd /c if exist dist rmdir /s /q dist || rm -rf dist",
33
+ "clean:svelte": "(cmd /c \"(if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit)\") || rm -rf build .svelte-kit",
34
+ "clean:lint": "cmd /c if exist .eslintcache del /f /q .eslintcache || rm -f .eslintcache",
46
35
  "prebuild": "npm run clean",
47
- "build": "run-os",
48
- "build:windows": "run-s build:lang:%npm_package_config_language%:* postbuild:lint:required:%npm_package_config_lint%",
49
- "build:default": "run-s build:lang:$npm_package_config_language:* postbuild:lint:required:$npm_package_config_lint",
50
- "build:lang:ts:compile": "tsc",
51
- "build:lang:ts:rewrite": "ts-add-js-extension --dir=dist",
52
- "build:lang:svelte:sync": "svelte-kit sync",
53
- "build:lang:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
54
- "build:lang:svelte:compile": "vite build",
55
- "postbuild": "echo \"Build complete.\"",
56
- "postbuild:lint:required:true": "npm run lint",
57
- "postbuild:lint:required:false": "(npm run lint) || (echo \"Linting (optional) skipped. Continuing...\")",
36
+ "build": "run-s build:ts:*",
37
+ "build:ts:compile": "tsc",
38
+ "build:ts:rewrite": "ts-add-js-extension --dir=dist",
39
+ "build:svelte:sync": "svelte-kit sync",
40
+ "build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
41
+ "build:svelte:compile": "vite build",
42
+ "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
58
43
  "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}\"",
59
44
  "lint:clean": "npm run clean:lint && npm run lint",
60
45
  "pretest": "npm run build",
61
- "test": "run-os",
62
- "test:default": "npm run --if-present test:lang:$npm_package_config_language",
63
- "test:windows": "npm run --if-present test:lang:%npm_package_config_language%",
64
- "test:lang:ts": "mocha",
46
+ "test": "mocha",
65
47
  "prestart": "npm test",
66
- "start": "run-os",
67
- "start:default": "npm run start:lang:$npm_package_config_language",
68
- "start:windows": "npm run start:lang:%npm_package_config_language%",
69
- "start:lang:ts": "node .",
70
- "start:lang:svelte": "vite preview --open",
48
+ "start": "npm run start:ts",
49
+ "start:ts": "node .",
50
+ "start:svelte": "vite preview --open",
71
51
  "prepublishOnly": "npm test",
72
- "postpublish": "run-os",
73
- "postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
74
- "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",
52
+ "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) || (if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi)",
75
53
  "predeploy": "npm test",
76
54
  "deploy": ""
77
55
  },
@@ -1,8 +1,7 @@
1
- export type State = (
2
- | "error"
3
- | "warn"
4
- | "off"
5
- );
1
+ export type State
2
+ = | "error"
3
+ | "warn"
4
+ | "off";
6
5
  export type Rules = Record<
7
6
  string,
8
7
  | State
@@ -1,7 +1,7 @@
1
1
  import type { IConfig } from "../../config";
2
2
 
3
- export type IAttachment = (
4
- & {
3
+ export type IAttachment
4
+ = & {
5
5
  files: string[];
6
6
  }
7
7
  & Partial<
@@ -9,5 +9,5 @@ export type IAttachment = (
9
9
  IConfig,
10
10
  "files"
11
11
  >
12
- >
13
- );
12
+ >;
13
+
@@ -2,8 +2,8 @@ import type { IConfig } from "../../config";
2
2
 
3
3
  export type Extensions<
4
4
  Scope extends string,
5
- > = (
6
- & {
5
+ >
6
+ = & {
7
7
  "*"?: Partial<
8
8
  & IConfig["linterOptions"]
9
9
  & IConfig["languageOptions"]
@@ -21,5 +21,5 @@ export type Extensions<
21
21
  rules?: IConfig["rules"];
22
22
  }
23
23
  >
24
- >
25
- );
24
+ >;
25
+
@@ -5,10 +5,10 @@ export interface Settings<
5
5
  Scope extends string,
6
6
  Parser extends string,
7
7
  > {
8
- global: (
8
+ global:
9
9
  & IConfig["linterOptions"]
10
10
  & IConfig["languageOptions"]
11
- );
11
+ ;
12
12
  registry: Record<
13
13
  Scope,
14
14
  ScopeManifest<
@@ -1,7 +1,7 @@
1
1
  import type { IConfig } from "../../config";
2
2
 
3
- export type Attachment = (
4
- & {
3
+ export type Attachment
4
+ = & {
5
5
  files: string[];
6
6
  }
7
7
  & Partial<
@@ -9,5 +9,5 @@ export type Attachment = (
9
9
  IConfig,
10
10
  "files"
11
11
  >
12
- >
13
- );
12
+ >;
13
+
@@ -1,5 +1,5 @@
1
- export type RequiredParser = (
2
- | "ts"
3
- | "html"
4
- | "yml"
5
- );
1
+ export type RequiredParser
2
+ = | "ts"
3
+ | "html"
4
+ | "yml";
5
+
@@ -1,12 +1,12 @@
1
- export type RequiredPlugin = (
2
- | "@stylistic"
3
- | "@typescript-eslint"
4
- | "mocha"
5
- | "chai-friendly"
6
- | "chai-expect"
7
- | "@html-eslint"
8
- | "css"
9
- | "json"
10
- | "jsonc"
11
- | "yml"
12
- );
1
+ export type RequiredPlugin
2
+ = | "@stylistic"
3
+ | "@typescript-eslint"
4
+ | "mocha"
5
+ | "chai-friendly"
6
+ | "chai-expect"
7
+ | "@html-eslint"
8
+ | "css"
9
+ | "json"
10
+ | "jsonc"
11
+ | "yml";
12
+