linted 33.8.0 → 33.8.2
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/settings/html.d.ts +3 -3
- package/dist/settings/html.js +3 -3
- package/dist/settings/html.js.map +1 -1
- package/dist/settings/index.d.ts +13 -13
- package/dist/settings/svelte.d.ts +3 -3
- package/dist/settings/svelte.js +3 -3
- package/dist/settings/svelte.js.map +1 -1
- package/dist/settings/ts.d.ts +7 -7
- package/dist/settings/ts.d.ts.map +1 -1
- package/dist/settings/ts.js +7 -7
- package/dist/settings/ts.js.map +1 -1
- package/package.json +3 -3
- package/src/settings/html.ts +3 -3
- package/src/settings/svelte.ts +3 -3
- package/src/settings/ts.ts +15 -14
package/dist/settings/html.d.ts
CHANGED
package/dist/settings/html.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/settings/html.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,MAAe;
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/settings/html.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,MAAe;QACvB,aAAa,EAAE;YACb,WAAW,EAAE,IAAI;SACM;KAC1B;IACD,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
package/dist/settings/index.d.ts
CHANGED
|
@@ -2,31 +2,31 @@ declare const _default: {
|
|
|
2
2
|
ts: {
|
|
3
3
|
languageOptions: {
|
|
4
4
|
parser: "ts";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
parserOptions: {
|
|
6
|
+
ecmaFeatures: {
|
|
7
|
+
globalReturn: true;
|
|
8
|
+
};
|
|
9
|
+
projectService: true;
|
|
10
|
+
warnOnUnsupportedTypeScriptVersion: false;
|
|
11
|
+
extraFileExtensions: string[];
|
|
9
12
|
};
|
|
10
|
-
projectService: true;
|
|
11
|
-
warnOnUnsupportedTypeScriptVersion: false;
|
|
12
|
-
extraFileExtensions: string[];
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
svelte: {
|
|
16
16
|
languageOptions: {
|
|
17
17
|
parser: "svelte";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
parserOptions: {
|
|
19
|
+
parser: "ts";
|
|
20
|
+
};
|
|
21
21
|
};
|
|
22
22
|
processor: string;
|
|
23
23
|
};
|
|
24
24
|
html: {
|
|
25
25
|
languageOptions: {
|
|
26
26
|
parser: "html";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
parserOptions: {
|
|
28
|
+
frontmatter: true;
|
|
29
|
+
};
|
|
30
30
|
};
|
|
31
31
|
language: string;
|
|
32
32
|
};
|
package/dist/settings/svelte.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../src/settings/svelte.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,QAAiB;
|
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../src/settings/svelte.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,QAAiB;QACzB,aAAa,EAAE;YACb,MAAM,EAAE,IAAa;SAEtB;KACF;IACD,SAAS,EAAE,eAAe;CAC3B,CAAC"}
|
package/dist/settings/ts.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
languageOptions: {
|
|
3
3
|
parser: "ts";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
parserOptions: {
|
|
5
|
+
ecmaFeatures: {
|
|
6
|
+
globalReturn: true;
|
|
7
|
+
};
|
|
8
|
+
projectService: true;
|
|
9
|
+
warnOnUnsupportedTypeScriptVersion: false;
|
|
10
|
+
extraFileExtensions: string[];
|
|
8
11
|
};
|
|
9
|
-
projectService: true;
|
|
10
|
-
warnOnUnsupportedTypeScriptVersion: false;
|
|
11
|
-
extraFileExtensions: string[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAQA,
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAQA,wBAmBE"}
|
package/dist/settings/ts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
languageOptions: {
|
|
3
3
|
parser: "ts",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
parserOptions: {
|
|
5
|
+
ecmaFeatures: {
|
|
6
|
+
globalReturn: true,
|
|
7
|
+
},
|
|
8
|
+
projectService: true,
|
|
9
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
|
10
|
+
extraFileExtensions: [".svelte"],
|
|
8
11
|
},
|
|
9
|
-
projectService: true,
|
|
10
|
-
warnOnUnsupportedTypeScriptVersion: false,
|
|
11
|
-
extraFileExtensions: [".svelte"],
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=ts.js.map
|
package/dist/settings/ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":"AAQA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":"AAQA,eAAe;IACb,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;QACrB,aAAa,EAAE;YACb,YAAY,EAAE;gBAEZ,YAAY,EAAE,IAAI;aACnB;YACD,cAAc,EAAE,IAAI;YAMpB,kCAAkC,EAAE,KAAK;YACzC,mBAAmB,EAAE,CAAC,SAAS,CAAC;SACP;KAC5B;CAEF,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": "33.8.
|
|
6
|
+
"version": "33.8.2",
|
|
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": [
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@eslint/css": "0.14.1",
|
|
57
57
|
"@eslint/json": "0.14.0",
|
|
58
|
-
"@eslinted/core": "
|
|
59
|
-
"@eslinted/defaults": "17.4.
|
|
58
|
+
"@eslinted/core": "31.0.0",
|
|
59
|
+
"@eslinted/defaults": "17.4.5",
|
|
60
60
|
"@html-eslint/eslint-plugin": "0.49.0",
|
|
61
61
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
62
62
|
"eslint-plugin-chai-expect": "3.1.0",
|
package/src/settings/html.ts
CHANGED
|
@@ -3,9 +3,9 @@ import type { ParserOptions } from "@html-eslint/parser";
|
|
|
3
3
|
export default {
|
|
4
4
|
languageOptions: {
|
|
5
5
|
parser: "html" as const,
|
|
6
|
+
parserOptions: {
|
|
7
|
+
frontmatter: true /* @default: false | INFO: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
|
|
8
|
+
} satisfies ParserOptions,
|
|
6
9
|
},
|
|
7
|
-
parserOptions: {
|
|
8
|
-
frontmatter: true /* @default: false | INFO: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
|
|
9
|
-
} satisfies ParserOptions,
|
|
10
10
|
language: "html/html",
|
|
11
11
|
};
|
package/src/settings/svelte.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
languageOptions: {
|
|
3
3
|
parser: "svelte" as const,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
parser: "ts" as const,
|
|
4
|
+
parserOptions: {
|
|
5
|
+
parser: "ts" as const,
|
|
7
6
|
// extraFileExtensions: [".svelte"] /* inherits TS, needed for performance reasons: BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
|
|
7
|
+
},
|
|
8
8
|
},
|
|
9
9
|
processor: "svelte/svelte",
|
|
10
10
|
};
|
package/src/settings/ts.ts
CHANGED
|
@@ -9,19 +9,20 @@ type TsParserOptions = ParserOptions & {
|
|
|
9
9
|
export default {
|
|
10
10
|
languageOptions: {
|
|
11
11
|
parser: "ts" as const,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ecmaFeatures: {
|
|
12
|
+
parserOptions: {
|
|
13
|
+
ecmaFeatures: {
|
|
15
14
|
// jsx: false /* @default false */,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
globalReturn: true /* @default false */,
|
|
16
|
+
},
|
|
17
|
+
projectService: true /* ProjectServiceOptions | true | @default false */,
|
|
18
|
+
// INFO: `parserOptions.projectService` is the modern replacement for the deprecated `parserOptions.project`:
|
|
19
|
+
// - https://typescript-eslint.io/blog/project-service/
|
|
20
|
+
// - https://typescript-eslint.io/packages/parser/#projectserviceoptions
|
|
21
|
+
// - https://typescript-eslint.io/getting-started/typed-linting/
|
|
22
|
+
// - https://typescript-eslint.io/troubleshooting/typed-linting/
|
|
23
|
+
warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default true */,
|
|
24
|
+
extraFileExtensions: [".svelte"] /* BUG: Needed to avoid performance issues in Svelte/TS projects: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
|
|
25
|
+
} satisfies TsParserOptions,
|
|
26
|
+
},
|
|
27
|
+
|
|
27
28
|
};
|