@eslinted/core 14.1.1 → 14.2.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.
- package/.markdownlint.jsonc +3 -3
- package/dist/factory/index.d.ts +14 -2
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/scopes/svelte.d.ts +7 -1
- package/dist/factory/scopes/svelte.d.ts.map +1 -1
- package/dist/factory/scopes/svelte.js +7 -1
- package/dist/factory/scopes/svelte.js.map +1 -1
- package/dist/factory/scopes/ts.d.ts +7 -1
- package/dist/factory/scopes/ts.d.ts.map +1 -1
- package/dist/factory/scopes/ts.js +7 -1
- package/dist/factory/scopes/ts.js.map +1 -1
- package/package.json +14 -12
- package/src/factory/scopes/svelte.ts +8 -1
- package/src/factory/scopes/ts.ts +10 -1
- package/tsconfig.json +1 -0
package/.markdownlint.jsonc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
|
-
// v0.36.
|
3
|
-
// https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md
|
2
|
+
// v0.36.2
|
3
|
+
// DOC: https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/Rules.md
|
4
4
|
// "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.36.1/schema/markdownlint-config-schema.json",
|
5
5
|
"heading-increment": true /* MD001 */,
|
6
6
|
"heading-style": {
|
@@ -73,7 +73,7 @@
|
|
73
73
|
} /* MD035 */,
|
74
74
|
"no-emphasis-as-heading": false /* MD036 */,
|
75
75
|
"no-space-in-emphasis": true /* MD037 */,
|
76
|
-
"no-space-in-code":
|
76
|
+
"no-space-in-code": false /* MD038 */,
|
77
77
|
"no-space-in-links": true /* MD039 */,
|
78
78
|
"fenced-code-language": {
|
79
79
|
"allowed_languages": [],
|
package/dist/factory/index.d.ts
CHANGED
@@ -61,12 +61,24 @@ export declare class Factory {
|
|
61
61
|
readonly extraFileExtensions: readonly [
|
62
62
|
".svelte"
|
63
63
|
];
|
64
|
-
readonly
|
64
|
+
readonly ecmaFeatures: {
|
65
|
+
readonly jsx: false;
|
66
|
+
readonly globalReturn: true;
|
67
|
+
};
|
68
|
+
readonly jsDocParsingMode: "none";
|
69
|
+
readonly projectService: true;
|
70
|
+
readonly warnOnUnsupportedTypeScriptVersion: false;
|
65
71
|
readonly sourceType: "module";
|
66
72
|
readonly ecmaVersion: 2023;
|
67
73
|
} | {
|
68
74
|
readonly parser?: unknown;
|
69
|
-
readonly
|
75
|
+
readonly ecmaFeatures: {
|
76
|
+
readonly jsx: false;
|
77
|
+
readonly globalReturn: true;
|
78
|
+
};
|
79
|
+
readonly jsDocParsingMode: "none";
|
80
|
+
readonly projectService: true;
|
81
|
+
readonly warnOnUnsupportedTypeScriptVersion: false;
|
70
82
|
readonly sourceType: "module";
|
71
83
|
readonly ecmaVersion: 2023;
|
72
84
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAE9C,qBAAa,OAAO;aAMA,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;IALtD,SAAgB,MAAM;;;;;;;;;;;;;;;;MAAC;IACvB,SAAgB,MAAM;;;;MAAC;gBAGrB,IAAI,EAAE,OAAO,IAAI,EACD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,EACpD,EACE,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,YAAY,GACpB,EAAE,KAAK,CAAC,UAAU,CAAC,EACpB,EACE,GAAG,EAAE,eAAoB,EACz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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD7D"}
|
@@ -9,7 +9,13 @@ export default class SvelteManifest extends ScopeManifest<"svelte" | "ts"> {
|
|
9
9
|
readonly extraFileExtensions: readonly [
|
10
10
|
".svelte"
|
11
11
|
];
|
12
|
-
readonly
|
12
|
+
readonly ecmaFeatures: {
|
13
|
+
readonly jsx: false;
|
14
|
+
readonly globalReturn: true;
|
15
|
+
};
|
16
|
+
readonly jsDocParsingMode: "none";
|
17
|
+
readonly projectService: true;
|
18
|
+
readonly warnOnUnsupportedTypeScriptVersion: false;
|
13
19
|
readonly sourceType: "module";
|
14
20
|
readonly ecmaVersion: 2023;
|
15
21
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAAa,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxE,SAAgB,eAAe;;;MAGpB;IACX,SAAgB,aAAa
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAAa,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxE,SAAgB,eAAe;;;MAGpB;IACX,SAAgB,aAAa;;;;;;;;;;;;MAalB;IACX,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;CACxC"}
|
@@ -7,7 +7,13 @@ export default class SvelteManifest extends ScopeManifest {
|
|
7
7
|
parserOptions = {
|
8
8
|
parser: "ts",
|
9
9
|
extraFileExtensions: [".svelte"],
|
10
|
-
|
10
|
+
ecmaFeatures: {
|
11
|
+
jsx: false,
|
12
|
+
globalReturn: true,
|
13
|
+
},
|
14
|
+
jsDocParsingMode: "none",
|
15
|
+
projectService: true,
|
16
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
11
17
|
sourceType: "module",
|
12
18
|
ecmaVersion: 2023,
|
13
19
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAA8B;IACxD,eAAe,GAAG;QAChC,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,IAAI;KACL,CAAC;IACK,aAAa,GAAG;QAC9B,MAAM,EAAE,IAAI;QACZ,mBAAmB,EAAE,CAAC,SAAS,CAAU;QACzC,
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAA8B;IACxD,eAAe,GAAG;QAChC,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,IAAI;KACL,CAAC;IACK,aAAa,GAAG;QAC9B,MAAM,EAAE,IAAI;QACZ,mBAAmB,EAAE,CAAC,SAAS,CAAU;QACzC,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM;QACxB,cAAc,EAAE,IAAI;QAEpB,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KACT,CAAC;IACK,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAW,CAAC;CACxC"}
|
@@ -6,7 +6,13 @@ export default class TsManifest extends ScopeManifest<"ts"> {
|
|
6
6
|
};
|
7
7
|
readonly parserOptions: {
|
8
8
|
readonly parser: null;
|
9
|
-
readonly
|
9
|
+
readonly ecmaFeatures: {
|
10
|
+
readonly jsx: false;
|
11
|
+
readonly globalReturn: true;
|
12
|
+
};
|
13
|
+
readonly jsDocParsingMode: "none";
|
14
|
+
readonly projectService: true;
|
15
|
+
readonly warnOnUnsupportedTypeScriptVersion: false;
|
10
16
|
readonly sourceType: "module";
|
11
17
|
readonly ecmaVersion: 2023;
|
12
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa,CAAC,IAAI,CAAC;IACzD,SAAgB,eAAe;;;MAGpB;IACX,SAAgB,aAAa
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa,CAAC,IAAI,CAAC;IACzD,SAAgB,eAAe;;;MAGpB;IACX,SAAgB,aAAa;;;;;;;;;;;MAclB;IACX,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;CACxC"}
|
@@ -6,7 +6,13 @@ export default class TsManifest extends ScopeManifest {
|
|
6
6
|
};
|
7
7
|
parserOptions = {
|
8
8
|
parser: null,
|
9
|
-
|
9
|
+
ecmaFeatures: {
|
10
|
+
jsx: false,
|
11
|
+
globalReturn: true,
|
12
|
+
},
|
13
|
+
jsDocParsingMode: "none",
|
14
|
+
projectService: true,
|
15
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
10
16
|
sourceType: "module",
|
11
17
|
ecmaVersion: 2023,
|
12
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAmB;IACzC,eAAe,GAAG;QAChC,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACL,CAAC;IACK,aAAa,GAAG;
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAmB;IACzC,eAAe,GAAG;QAChC,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACL,CAAC;IACK,aAAa,GAAG;QAG9B,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM;QACxB,cAAc,EAAE,IAAI;QAEpB,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KACT,CAAC;IACK,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;CACxC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"_schemaVersion": "22.11.
|
2
|
+
"_schemaVersion": "22.11.2",
|
3
3
|
"name": "@eslinted/core",
|
4
|
-
"version": "14.
|
4
|
+
"version": "14.2.0-rc.0",
|
5
5
|
"description": "Core ESLint flat config factory npm package `linted`.",
|
6
6
|
"keywords": [],
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-core",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"types": "dist/index.d.ts",
|
19
19
|
"config": {
|
20
20
|
"language": "ts",
|
21
|
-
"
|
21
|
+
"rewrite": "true",
|
22
22
|
"lint": "false"
|
23
23
|
},
|
24
24
|
"engineStrict": true,
|
@@ -33,6 +33,7 @@
|
|
33
33
|
"devDependencies": {
|
34
34
|
"@types/chai": "^5.0.1",
|
35
35
|
"@types/mocha": "^10.0.10",
|
36
|
+
"@types/node": "22.9.3",
|
36
37
|
"chai": "^5.1.2",
|
37
38
|
"mocha": "^10.8.2",
|
38
39
|
"npm-run-all": "^4.1.5",
|
@@ -42,9 +43,9 @@
|
|
42
43
|
},
|
43
44
|
"scripts": {
|
44
45
|
"build": "run-os",
|
45
|
-
"build:default": "npm run rebuild -- $npm_package_config_language $
|
46
|
-
"build:windows": "npm run rebuild -- %npm_package_config_language% %
|
47
|
-
"rebuild": "run-s \"clean:{1}:{
|
46
|
+
"build:default": "npm run rebuild -- $npm_package_config_language $npm_package_config_lint default",
|
47
|
+
"build:windows": "npm run rebuild -- %npm_package_config_language% %npm_package_config_lint% windows",
|
48
|
+
"rebuild": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
|
48
49
|
"clean:ts:default": "rm -rf dist",
|
49
50
|
"clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
|
50
51
|
"clean:svelte:default": "rm -rf build .svelte-kit",
|
@@ -52,18 +53,19 @@
|
|
52
53
|
"clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
|
53
54
|
"clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
|
54
55
|
"compile:ts:compile": "tsc",
|
56
|
+
"compile:ts:rewrite": "run-os",
|
57
|
+
"compile:ts:rewrite:default": "npm run compile:ts:rewrite+condition:$npm_package_config_rewrite",
|
58
|
+
"compile:ts:rewrite:windows": "npm run compile:ts:rewrite+condition:%npm_package_config_rewrite%",
|
59
|
+
"compile:ts:rewrite+condition:true": "ts-add-js-extension --dir=dist",
|
60
|
+
"compile:ts:rewrite+condition:false": "echo \"Skip rewrite TypeScript imports (fix=false)\"",
|
55
61
|
"compile:svelte:sync": "svelte-kit sync",
|
56
62
|
"compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
57
63
|
"compile:svelte:compile": "vite build",
|
58
|
-
"fix:true": "run-s \"fix:dist:{1}\" --",
|
59
|
-
"fix:false": "echo \"Fix skipped (fix=false)\"",
|
60
|
-
"fix:dist:ts": "ts-add-js-extension --dir=dist",
|
61
|
-
"fix:dist:svelte": "echo \"Fix skipped for Svelte (handled by SvelteKit)\"",
|
62
64
|
"li": "eslint --cache --fix",
|
63
65
|
"lint": "npm run build",
|
64
66
|
"lint:true": "run-os",
|
65
|
-
"lint:true:default": "run-
|
66
|
-
"lint:true:windows": "run-
|
67
|
+
"lint:true:default": "run-p lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
|
68
|
+
"lint:true:windows": "run-p lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
|
67
69
|
"lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
|
68
70
|
"lint:scope:global:configs": "npm run li -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
|
69
71
|
"lint:scope:global:code": "npm run li -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
|
@@ -8,7 +8,14 @@ export default class SvelteManifest extends ScopeManifest<"svelte" | "ts"> {
|
|
8
8
|
public readonly parserOptions = {
|
9
9
|
parser: "ts",
|
10
10
|
extraFileExtensions: [".svelte"] as const,
|
11
|
-
|
11
|
+
ecmaFeatures: {
|
12
|
+
jsx: false,
|
13
|
+
globalReturn: true,
|
14
|
+
},
|
15
|
+
jsDocParsingMode: "none" /* @default(project): "all" | @default: "none" | "type-info" */,
|
16
|
+
projectService: true /* DOC: https://typescript-eslint.io/packages/parser/#projectservice , DOC: https://typescript-eslint.io/troubleshooting/typed-linting/#project-service-issues */,
|
17
|
+
// tsconfigRootDir: import.meta.dirname /* DOC: https://typescript-eslint.io/packages/parser/#tsconfigrootdir ; see `DOC:(USE-CASE), I am inferring that an aboslute path is needed ; DOC:(Node.js: import.meta): https://nodejs.org/api/esm.html#importmetadirname */,
|
18
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
12
19
|
sourceType: "module",
|
13
20
|
ecmaVersion: 2023,
|
14
21
|
} as const;
|
package/src/factory/scopes/ts.ts
CHANGED
@@ -6,8 +6,17 @@ export default class TsManifest extends ScopeManifest<"ts"> {
|
|
6
6
|
globals: null,
|
7
7
|
} as const;
|
8
8
|
public readonly parserOptions = {
|
9
|
+
// DOC: https://typescript-eslint.io/packages/parser/#configuration
|
10
|
+
// DOC:(USE-CASE): https://typescript-eslint.io/getting-started/typed-linting/
|
9
11
|
parser: null,
|
10
|
-
|
12
|
+
ecmaFeatures: {
|
13
|
+
jsx: false,
|
14
|
+
globalReturn: true,
|
15
|
+
},
|
16
|
+
jsDocParsingMode: "none" /* @default(project): "all" | @default: "none" | "type-info" */,
|
17
|
+
projectService: true /* DOC: https://typescript-eslint.io/packages/parser/#projectservice , DOC: https://typescript-eslint.io/troubleshooting/typed-linting/#project-service-issues */,
|
18
|
+
// tsconfigRootDir: import.meta.dirname /* DOC: https://typescript-eslint.io/packages/parser/#tsconfigrootdir ; see `DOC:(USE-CASE), I am inferring that an aboslute path is needed ; DOC:(Node.js: import.meta): https://nodejs.org/api/esm.html#importmetadirname */,
|
19
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
11
20
|
sourceType: "module",
|
12
21
|
ecmaVersion: 2023,
|
13
22
|
} as const;
|