linted 32.8.0 → 32.9.0-rc.1
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 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/settings/css.d.ts +9 -0
- package/dist/settings/css.d.ts.map +1 -0
- package/dist/settings/css.js +8 -0
- package/dist/settings/css.js.map +1 -0
- package/dist/settings/html.d.ts +12 -0
- package/dist/settings/html.d.ts.map +1 -0
- package/dist/settings/html.js +11 -0
- package/dist/settings/html.js.map +1 -0
- package/dist/settings/index.d.ts +68 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +19 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/js.d.ts +5 -0
- package/dist/settings/js.d.ts.map +1 -0
- package/dist/settings/js.js +4 -0
- package/dist/settings/js.js.map +1 -0
- package/dist/settings/json.d.ts +9 -0
- package/dist/settings/json.d.ts.map +1 -0
- package/dist/settings/json.js +11 -0
- package/dist/settings/json.js.map +1 -0
- package/dist/settings/mocha.d.ts +5 -0
- package/dist/settings/mocha.d.ts.map +1 -0
- package/dist/settings/mocha.js +8 -0
- package/dist/settings/mocha.js.map +1 -0
- package/dist/settings/svelte.d.ts +13 -0
- package/dist/settings/svelte.d.ts.map +1 -0
- package/dist/settings/svelte.js +12 -0
- package/dist/settings/svelte.js.map +1 -0
- package/dist/settings/ts.d.ts +19 -0
- package/dist/settings/ts.d.ts.map +1 -0
- package/dist/settings/ts.js +18 -0
- package/dist/settings/ts.js.map +1 -0
- package/dist/settings/yml.d.ts +8 -0
- package/dist/settings/yml.d.ts.map +1 -0
- package/dist/settings/yml.js +7 -0
- package/dist/settings/yml.js.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +5 -3
- package/src/settings/css.ts +9 -0
- package/src/settings/html.ts +11 -0
- package/src/settings/index.ts +19 -0
- package/src/settings/js.ts +3 -0
- package/src/settings/json.ts +10 -0
- package/src/settings/mocha.ts +7 -0
- package/src/settings/svelte.ts +11 -0
- package/src/settings/ts.ts +31 -0
- package/src/settings/yml.ts +7 -0
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;
|
|
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,CAAC,CAAC,YAAY,CAAM,aAa1D"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import Core from "@eslinted/core";
|
|
2
|
-
import defaults from "@eslinted/defaults";
|
|
3
|
-
import imports from "./imports/index.js";
|
|
4
2
|
import { scopes, optional, tree, } from "./scope/index.js";
|
|
3
|
+
import imports from "./imports/index.js";
|
|
4
|
+
import settings from "./settings/index.js";
|
|
5
|
+
import defaults from "@eslinted/defaults";
|
|
5
6
|
export default function (extensions = {}) {
|
|
6
|
-
return Core(scopes, optional, tree, imports, {
|
|
7
|
+
return Core(scopes, optional, tree, imports, settings, {
|
|
7
8
|
defaults,
|
|
8
9
|
extensions,
|
|
9
10
|
});
|
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,QAAQ,MAAM,
|
|
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,aAAuD,EAAE;IAEzD,OAAO,IAAI,CACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR;QACE,QAAQ;QACR,UAAU;KACX,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/settings/css.ts"],"names":[],"mappings":";;;;;;;AACA,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sourceRoot":"","sources":["../../src/settings/css.ts"],"names":[],"mappings":"AACA,eAAe;IACb,OAAO,EAAE,CAAC,KAAK,CAAU;IACzB,eAAe,EAAE;QACf,QAAQ,EAAE,KAAK;KAEhB;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/settings/html.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBAUE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/settings/html.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,OAAO,EAAE,CAAC,MAAM,CAAU;IAC1B,eAAe,EAAE;QACf,MAAM,EAAE,MAAe;KACxB;IACD,aAAa,EAAE;QAEb,WAAW,EAAE,IAAI;KAClB;IACD,QAAQ,EAAE,WAAW;CACtB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
js: {
|
|
3
|
+
plugins: readonly ["@stylistic"];
|
|
4
|
+
};
|
|
5
|
+
ts: {
|
|
6
|
+
plugins: readonly ["@typescript-eslint"];
|
|
7
|
+
languageOptions: {
|
|
8
|
+
parser: "ts";
|
|
9
|
+
};
|
|
10
|
+
parserOptions: {
|
|
11
|
+
ecmaFeatures: {
|
|
12
|
+
globalReturn: boolean;
|
|
13
|
+
};
|
|
14
|
+
ecmaVersion: number;
|
|
15
|
+
emitDecoratorMetadata: boolean;
|
|
16
|
+
experimentalDecorators: boolean;
|
|
17
|
+
isolatedDeclarations: boolean;
|
|
18
|
+
projectService: boolean;
|
|
19
|
+
warnOnUnsupportedTypeScriptVersion: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
mocha: {
|
|
23
|
+
plugins: readonly ["mocha", "chai-friendly", "chai-expect"];
|
|
24
|
+
};
|
|
25
|
+
svelte: {
|
|
26
|
+
plugins: readonly ["svelte"];
|
|
27
|
+
languageOptions: {
|
|
28
|
+
parser: "svelte";
|
|
29
|
+
};
|
|
30
|
+
parserOptions: {
|
|
31
|
+
parser: "ts";
|
|
32
|
+
extraFileExtensions: string[];
|
|
33
|
+
};
|
|
34
|
+
processor: string;
|
|
35
|
+
};
|
|
36
|
+
html: {
|
|
37
|
+
plugins: readonly ["html"];
|
|
38
|
+
languageOptions: {
|
|
39
|
+
parser: "html";
|
|
40
|
+
};
|
|
41
|
+
parserOptions: {
|
|
42
|
+
frontmatter: boolean;
|
|
43
|
+
};
|
|
44
|
+
language: string;
|
|
45
|
+
};
|
|
46
|
+
css: {
|
|
47
|
+
plugins: readonly ["css"];
|
|
48
|
+
languageOptions: {
|
|
49
|
+
tolerant: boolean;
|
|
50
|
+
};
|
|
51
|
+
language: string;
|
|
52
|
+
};
|
|
53
|
+
json: {
|
|
54
|
+
plugins: readonly ["json", "jsonc"];
|
|
55
|
+
languageOptions: {
|
|
56
|
+
allowTrailingCommas: boolean;
|
|
57
|
+
};
|
|
58
|
+
language: string;
|
|
59
|
+
};
|
|
60
|
+
yml: {
|
|
61
|
+
plugins: readonly ["yml"];
|
|
62
|
+
languageOptions: {
|
|
63
|
+
parser: "yml";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
68
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import js from "./js.js";
|
|
2
|
+
import ts from "./ts.js";
|
|
3
|
+
import mocha from "./mocha.js";
|
|
4
|
+
import svelte from "./svelte.js";
|
|
5
|
+
import html from "./html.js";
|
|
6
|
+
import css from "./css.js";
|
|
7
|
+
import json from "./json.js";
|
|
8
|
+
import yml from "./yml.js";
|
|
9
|
+
export default {
|
|
10
|
+
js,
|
|
11
|
+
ts,
|
|
12
|
+
mocha,
|
|
13
|
+
svelte,
|
|
14
|
+
html,
|
|
15
|
+
css,
|
|
16
|
+
json,
|
|
17
|
+
yml,
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,GAAG;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/settings/js.ts"],"names":[],"mappings":";;;AAAA,wBAEE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/settings/js.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,OAAO,EAAE,CAAC,YAAY,CAAU;CACjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/settings/json.ts"],"names":[],"mappings":";;;;;;;AAAA,wBASE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/settings/json.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,OAAO,EAAE;QACP,MAAM;QACN,OAAO;KACC;IACV,eAAe,EAAE;QACf,mBAAmB,EAAE,IAAI;KAC1B;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../src/settings/mocha.ts"],"names":[],"mappings":";;;AAAA,wBAME"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../src/settings/mocha.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,OAAO,EAAE;QACP,OAAO;QACP,eAAe;QACf,aAAa;KACL;CACX,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: readonly ["svelte"];
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "svelte";
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
parser: "ts";
|
|
8
|
+
extraFileExtensions: string[];
|
|
9
|
+
};
|
|
10
|
+
processor: string;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../src/settings/svelte.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wBAUE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../src/settings/svelte.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,OAAO,EAAE,CAAC,QAAQ,CAAU;IAC5B,eAAe,EAAE;QACf,MAAM,EAAE,QAAiB;KAC1B;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAa;QACrB,mBAAmB,EAAE,CAAC,SAAS,CAAC;KACjC;IACD,SAAS,EAAE,eAAe;CAC3B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: readonly ["@typescript-eslint"];
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "ts";
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
ecmaFeatures: {
|
|
8
|
+
globalReturn: boolean;
|
|
9
|
+
};
|
|
10
|
+
ecmaVersion: number;
|
|
11
|
+
emitDecoratorMetadata: boolean;
|
|
12
|
+
experimentalDecorators: boolean;
|
|
13
|
+
isolatedDeclarations: boolean;
|
|
14
|
+
projectService: boolean;
|
|
15
|
+
warnOnUnsupportedTypeScriptVersion: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=ts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wBA6BE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: ["@typescript-eslint"],
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "ts",
|
|
5
|
+
},
|
|
6
|
+
parserOptions: {
|
|
7
|
+
ecmaFeatures: {
|
|
8
|
+
globalReturn: true,
|
|
9
|
+
},
|
|
10
|
+
ecmaVersion: 2023,
|
|
11
|
+
emitDecoratorMetadata: false,
|
|
12
|
+
experimentalDecorators: false,
|
|
13
|
+
isolatedDeclarations: false,
|
|
14
|
+
projectService: true,
|
|
15
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":"AACA,eAAe;IACb,OAAO,EAAE,CAAC,oBAAoB,CAAU;IACxC,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;KACtB;IACD,aAAa,EAAE;QAQb,YAAY,EAAE;YAEZ,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EAAE,IAAI;QACjB,qBAAqB,EAAE,KAAK;QAC5B,sBAAsB,EAAE,KAAK;QAE7B,oBAAoB,EAAE,KAAK;QAK3B,cAAc,EAAE,IAAI;QACpB,kCAAkC,EAAE,KAAK;KAC1C;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../src/settings/yml.ts"],"names":[],"mappings":";;;;;;AACA,wBAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../src/settings/yml.ts"],"names":[],"mappings":"AACA,eAAe;IACb,OAAO,EAAE,CAAC,KAAK,CAAU;IACzB,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;KACvB;CACF,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": "32.
|
|
6
|
+
"version": "32.9.0-rc.1",
|
|
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": [
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@eslint/css": "0.13.0",
|
|
55
55
|
"@eslint/json": "0.13.2",
|
|
56
|
-
"@eslinted/core": "
|
|
57
|
-
"@eslinted/defaults": "
|
|
56
|
+
"@eslinted/core": "28.0.0-rc.2",
|
|
57
|
+
"@eslinted/defaults": "16.0.0-rc.0",
|
|
58
58
|
"@html-eslint/eslint-plugin": "0.47.0",
|
|
59
59
|
"@stylistic/eslint-plugin": "5.4.0",
|
|
60
60
|
"eslint-plugin-chai-expect": "3.1.0",
|
package/src/index.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import Core from "@eslinted/core";
|
|
2
|
-
import defaults from "@eslinted/defaults";
|
|
3
|
-
import imports from "./imports";
|
|
4
2
|
import {
|
|
5
3
|
scopes,
|
|
6
4
|
optional,
|
|
7
5
|
tree,
|
|
8
6
|
} from "./scope";
|
|
7
|
+
import imports from "./imports";
|
|
8
|
+
import settings from "./settings";
|
|
9
|
+
import defaults from "@eslinted/defaults";
|
|
9
10
|
|
|
10
11
|
export default function (
|
|
11
|
-
extensions: Parameters<typeof Core>[
|
|
12
|
+
extensions: Parameters<typeof Core>[5]["extensions"] = {},
|
|
12
13
|
) {
|
|
13
14
|
return Core(
|
|
14
15
|
scopes,
|
|
15
16
|
optional,
|
|
16
17
|
tree,
|
|
17
18
|
imports,
|
|
19
|
+
settings,
|
|
18
20
|
{
|
|
19
21
|
defaults,
|
|
20
22
|
extensions,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// DOC: https://github.com/eslint/css?tab=readme-ov-file#languages
|
|
2
|
+
export default {
|
|
3
|
+
plugins: ["css"] as const,
|
|
4
|
+
languageOptions: {
|
|
5
|
+
tolerant: false /* @default: true | INFO: https://github.com/eslint/css?tab=readme-ov-file#tolerant-mode */,
|
|
6
|
+
// customSyntax: {} /* INFO: Tailwind: https://github.com/eslint/css?tab=readme-ov-file#configuring-tailwind-syntax | INFO: https://github.com/eslint/css?tab=readme-ov-file#configuring-custom-syntax */,
|
|
7
|
+
},
|
|
8
|
+
language: "css/css",
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: ["html"] as const,
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "html" as const,
|
|
5
|
+
},
|
|
6
|
+
parserOptions: {
|
|
7
|
+
// templateEngineSyntax: {} /* INFO: https://html-eslint.org/docs/integrating-template-engine */,
|
|
8
|
+
frontmatter: true /* @default: false | INFO: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
|
|
9
|
+
},
|
|
10
|
+
language: "html/html",
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import js from "./js";
|
|
2
|
+
import ts from "./ts";
|
|
3
|
+
import mocha from "./mocha";
|
|
4
|
+
import svelte from "./svelte";
|
|
5
|
+
import html from "./html";
|
|
6
|
+
import css from "./css";
|
|
7
|
+
import json from "./json";
|
|
8
|
+
import yml from "./yml";
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
js,
|
|
12
|
+
ts,
|
|
13
|
+
mocha,
|
|
14
|
+
svelte,
|
|
15
|
+
html,
|
|
16
|
+
css,
|
|
17
|
+
json,
|
|
18
|
+
yml,
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: [
|
|
3
|
+
"json",
|
|
4
|
+
"jsonc",
|
|
5
|
+
] as const,
|
|
6
|
+
languageOptions: {
|
|
7
|
+
allowTrailingCommas: true /* INFO: https://github.com/eslint/json?tab=readme-ov-file#allowing-trailing-commas-in-jsonc */,
|
|
8
|
+
},
|
|
9
|
+
language: "json/jsonc" /* INFO: `languageOptions.allowTrailingCommas` is only available on language `json/jsonc` */,
|
|
10
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// DOC: https://typescript-eslint.io/packages/parser/#configuration
|
|
2
|
+
export default {
|
|
3
|
+
plugins: ["@typescript-eslint"] as const,
|
|
4
|
+
languageOptions: {
|
|
5
|
+
parser: "ts" as const,
|
|
6
|
+
},
|
|
7
|
+
parserOptions: {
|
|
8
|
+
// INFO: `parserOptions.projectService` is the modern replacement for the deprecated `parserOptions.project`:
|
|
9
|
+
// - https://typescript-eslint.io/blog/project-service/
|
|
10
|
+
// - https://typescript-eslint.io/getting-started/typed-linting/
|
|
11
|
+
// - https://typescript-eslint.io/troubleshooting/typed-linting/
|
|
12
|
+
|
|
13
|
+
// disallowAutomaticSingleRunInference: false /* @default: false */,
|
|
14
|
+
// cacheLifetime: { glob: 30 } /* { glob: "Infinity" (never) | number | @default: 30 seconds } */,
|
|
15
|
+
ecmaFeatures: {
|
|
16
|
+
// jsx: false /* @default: false */,
|
|
17
|
+
globalReturn: true /* @default: false */,
|
|
18
|
+
},
|
|
19
|
+
ecmaVersion: 2023 /* number | @default: latest" */,
|
|
20
|
+
emitDecoratorMetadata: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
|
|
21
|
+
experimentalDecorators: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
|
|
22
|
+
// extraFileExtensions: [] /* string[] | @default: [] (none) | BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
|
|
23
|
+
isolatedDeclarations: false /* boolean | @default: undefined (inherits tsconfig, which has @default: false) */,
|
|
24
|
+
// jsDocParsingMode: "all" /* type-info | @default(if `parserOptions.project` is set): all | @default: none */,
|
|
25
|
+
// jsxFragmentName: null /* string | @default: null | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
26
|
+
// jsxPragma: "React" /* null | string (e.g. "preact") | @default: "React" | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
27
|
+
// lib: ["es2018"] /* string[] | @default: ["es2018"] | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
28
|
+
projectService: true /* ProjectServiceOptions (INFO: https://typescript-eslint.io/packages/parser/#projectserviceoptions) | true | @default: false */,
|
|
29
|
+
warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default: true */,
|
|
30
|
+
},
|
|
31
|
+
};
|