linted 32.9.0-rc.0 → 32.9.0-rc.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/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 +64 -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 +12 -0
- package/dist/settings/svelte.d.ts.map +1 -0
- package/dist/settings/svelte.js +11 -0
- package/dist/settings/svelte.js.map +1 -0
- package/dist/settings/ts.d.ts +16 -0
- package/dist/settings/ts.d.ts.map +1 -0
- package/dist/settings/ts.js +15 -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 +32 -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,64 @@
|
|
|
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
|
+
projectService: boolean;
|
|
15
|
+
warnOnUnsupportedTypeScriptVersion: boolean;
|
|
16
|
+
extraFileExtensions: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
mocha: {
|
|
20
|
+
plugins: readonly ["mocha", "chai-friendly", "chai-expect"];
|
|
21
|
+
};
|
|
22
|
+
svelte: {
|
|
23
|
+
plugins: readonly ["svelte"];
|
|
24
|
+
languageOptions: {
|
|
25
|
+
parser: "svelte";
|
|
26
|
+
};
|
|
27
|
+
parserOptions: {
|
|
28
|
+
parser: "ts";
|
|
29
|
+
};
|
|
30
|
+
processor: string;
|
|
31
|
+
};
|
|
32
|
+
html: {
|
|
33
|
+
plugins: readonly ["html"];
|
|
34
|
+
languageOptions: {
|
|
35
|
+
parser: "html";
|
|
36
|
+
};
|
|
37
|
+
parserOptions: {
|
|
38
|
+
frontmatter: boolean;
|
|
39
|
+
};
|
|
40
|
+
language: string;
|
|
41
|
+
};
|
|
42
|
+
css: {
|
|
43
|
+
plugins: readonly ["css"];
|
|
44
|
+
languageOptions: {
|
|
45
|
+
tolerant: boolean;
|
|
46
|
+
};
|
|
47
|
+
language: string;
|
|
48
|
+
};
|
|
49
|
+
json: {
|
|
50
|
+
plugins: readonly ["json", "jsonc"];
|
|
51
|
+
languageOptions: {
|
|
52
|
+
allowTrailingCommas: boolean;
|
|
53
|
+
};
|
|
54
|
+
language: string;
|
|
55
|
+
};
|
|
56
|
+
yml: {
|
|
57
|
+
plugins: readonly ["yml"];
|
|
58
|
+
languageOptions: {
|
|
59
|
+
parser: "yml";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
64
|
+
//# 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 @@
|
|
|
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;KAEtB;IACD,SAAS,EAAE,eAAe;CAC3B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
plugins: readonly ["@typescript-eslint"];
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "ts";
|
|
5
|
+
};
|
|
6
|
+
parserOptions: {
|
|
7
|
+
ecmaFeatures: {
|
|
8
|
+
globalReturn: boolean;
|
|
9
|
+
};
|
|
10
|
+
projectService: boolean;
|
|
11
|
+
warnOnUnsupportedTypeScriptVersion: boolean;
|
|
12
|
+
extraFileExtensions: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=ts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../src/settings/ts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wBA8BE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: ["@typescript-eslint"],
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "ts",
|
|
5
|
+
},
|
|
6
|
+
parserOptions: {
|
|
7
|
+
ecmaFeatures: {
|
|
8
|
+
globalReturn: true,
|
|
9
|
+
},
|
|
10
|
+
projectService: true,
|
|
11
|
+
warnOnUnsupportedTypeScriptVersion: false,
|
|
12
|
+
extraFileExtensions: [".svelte"],
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
//# 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;QAGb,YAAY,EAAE;YAEZ,YAAY,EAAE,IAAI;SACnB;QAUD,cAAc,EAAE,IAAI;QAMpB,kCAAkC,EAAE,KAAK;QACzC,mBAAmB,EAAE,CAAC,SAAS,CAAC;KACjC;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.9.0-rc.
|
|
6
|
+
"version": "32.9.0-rc.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": [
|
|
@@ -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,11 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
plugins: ["svelte"] as const,
|
|
3
|
+
languageOptions: {
|
|
4
|
+
parser: "svelte" as const,
|
|
5
|
+
},
|
|
6
|
+
parserOptions: {
|
|
7
|
+
parser: "ts" as const,
|
|
8
|
+
// extraFileExtensions: [".svelte"] /* inherits TS, needed for performance reasons: BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
|
|
9
|
+
},
|
|
10
|
+
processor: "svelte/svelte",
|
|
11
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
// disallowAutomaticSingleRunInference: false /* @default false */,
|
|
9
|
+
// cacheLifetime: { glob: 30 } /* { glob: "Infinity" (never) | number | @default 30 seconds } */,
|
|
10
|
+
ecmaFeatures: {
|
|
11
|
+
// jsx: false /* @default false */,
|
|
12
|
+
globalReturn: true /* @default false */,
|
|
13
|
+
},
|
|
14
|
+
// ecmaVersion: "latest" /* number | @default latest" */,
|
|
15
|
+
// emitDecoratorMetadata: true /* boolean | @default undefined (inherits tsconfig, which has @default false) */,
|
|
16
|
+
// experimentalDecorators: true /* boolean | @default undefined (inherits tsconfig, which has @default false) */,
|
|
17
|
+
// extraFileExtensions: [] /* string[] | @default [] (none) | BUG: https://typescript-eslint.io/troubleshooting/typed-linting/performance/#changes-to-extrafileextensions-with-projectservice */,
|
|
18
|
+
// isolatedDeclarations: true /* boolean | @default undefined (inherits tsconfig, which has @default false) */,
|
|
19
|
+
// jsDocParsingMode: "all" /* type-info | @default(if `parserOptions.project` is set): all | @default none */,
|
|
20
|
+
// jsxFragmentName: null /* string | @default null | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
21
|
+
// jsxPragma: "React" /* null | string (e.g. "preact") | @default "React" | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
22
|
+
// lib: ["es2018"] /* string[] | @default ["es2018"] | INFO: if `parserOptions.project` is set, this will automatically be detected from the compiler. */,
|
|
23
|
+
projectService: true /* ProjectServiceOptions | true | @default false */,
|
|
24
|
+
// INFO: `parserOptions.projectService` is the modern replacement for the deprecated `parserOptions.project`:
|
|
25
|
+
// - https://typescript-eslint.io/blog/project-service/
|
|
26
|
+
// - https://typescript-eslint.io/packages/parser/#projectserviceoptions
|
|
27
|
+
// - https://typescript-eslint.io/getting-started/typed-linting/
|
|
28
|
+
// - https://typescript-eslint.io/troubleshooting/typed-linting/
|
|
29
|
+
warnOnUnsupportedTypeScriptVersion: false /* preference due to nuisance | @default true */,
|
|
30
|
+
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 */,
|
|
31
|
+
},
|
|
32
|
+
};
|