@eslinted/core 0.0.1-rc.6 → 0.0.1-rc.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -31
- package/dist/index.js.map +1 -1
- package/dist/interface/IConfig.d.ts +19 -0
- package/dist/interface/IConfig.d.ts.map +1 -0
- package/dist/interface/IConfig.js +2 -0
- package/dist/interface/IConfig.js.map +1 -0
- package/dist/ruleset/Ruleset.d.ts +12 -0
- package/dist/ruleset/Ruleset.d.ts.map +1 -0
- package/dist/ruleset/Ruleset.js +27 -0
- package/dist/ruleset/Ruleset.js.map +1 -0
- package/dist/ruleset/rule/Rule.d.ts +6 -0
- package/dist/ruleset/rule/Rule.d.ts.map +1 -0
- package/dist/ruleset/rule/Rule.js +9 -0
- package/dist/ruleset/rule/Rule.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +37 -53
- package/{interface/IConfig.d.ts → src/interface/IConfig.ts} +1 -1
- package/tsconfig.json +0 -1
- /package/{interface → src/interface}/files/IFiles.d.ts +0 -0
- /package/{interface → src/interface}/option/IOption.d.ts +0 -0
- /package/{interface → src/interface}/option/language/IOLanguage.d.ts +0 -0
- /package/{interface → src/interface}/option/language/ecma/IOLanguageEcma.d.ts +0 -0
- /package/{interface → src/interface}/option/language/globals/IOLanguageGlobals.d.ts +0 -0
- /package/{interface → src/interface}/option/language/parser/IOLanguageParser.d.ts +0 -0
- /package/{interface → src/interface}/option/language/parserOptions/IOLanguageParserOptions.d.ts +0 -0
- /package/{interface → src/interface}/option/language/source/IOLanguageSource.d.ts +0 -0
- /package/{interface → src/interface}/option/linter/IOLinter.d.ts +0 -0
- /package/{interface → src/interface}/option/name/IOName.d.ts +0 -0
- /package/{interface → src/interface}/option/plugins/IOPlugins.d.ts +0 -0
- /package/{interface → src/interface}/option/processor/IOProcessor.d.ts +0 -0
- /package/{interface → src/interface}/rules/IRules.d.ts +0 -0
- /package/{interface → src/interface}/rules/rule/IRule.d.ts +0 -0
- /package/{interface → src/interface}/rules/rule/state/RuleSeverity.d.ts +0 -0
- /package/src/{rulesets/ruleset → ruleset}/Ruleset.ts +0 -0
- /package/src/{rulesets/ruleset → ruleset}/rule/Rule.ts +0 -0
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
import type IConfig from "./interface/IConfig.js";
|
1
2
|
import type { Scopes } from "./scopes.js";
|
2
3
|
import type Plugins from "./plugins.js";
|
3
4
|
import type Parsers from "./parsers.js";
|
4
|
-
import type Ruleset from "./
|
5
|
-
export { default as Ruleset } from "./
|
6
|
-
export { Rule } from "./
|
5
|
+
import type Ruleset from "./ruleset/Ruleset.js";
|
6
|
+
export { default as Ruleset } from "./ruleset/Ruleset.js";
|
7
|
+
export { Rule } from "./ruleset/Ruleset.js";
|
8
|
+
export type { Scopes } from "./scopes.js";
|
9
|
+
export type { default as IConfig } from "./interface/IConfig.js";
|
7
10
|
export default function (plugins: Plugins, parsers: Parsers, files: Record<Scopes, string[]>, rulesets: {
|
8
11
|
[S in Scopes]: Ruleset<S>;
|
9
12
|
}): IConfig[];
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjE,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAC/B,QAAQ,EAAE;KAAG,CAAC,IAAI,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAAE,GACtC,OAAO,EAAE,CAkFX"}
|
package/dist/index.js
CHANGED
@@ -1,56 +1,37 @@
|
|
1
1
|
import scopes from "./scopes.js";
|
2
2
|
import options from "./options.js";
|
3
|
-
export { default as Ruleset } from "./
|
4
|
-
export { Rule } from "./
|
3
|
+
export { default as Ruleset } from "./ruleset/Ruleset.js";
|
4
|
+
export { Rule } from "./ruleset/Ruleset.js";
|
5
5
|
export default function (plugins, parsers, files, rulesets) {
|
6
6
|
try {
|
7
7
|
const instantiatedOptions = {
|
8
8
|
js: new options
|
9
|
-
.js(plugins
|
10
|
-
.js, ...files
|
11
|
-
.js)
|
9
|
+
.js(plugins.js, ...files.js)
|
12
10
|
.body,
|
13
11
|
ts: new options
|
14
|
-
.ts(plugins
|
15
|
-
.ts, parsers
|
16
|
-
.ts, ...files
|
17
|
-
.ts)
|
12
|
+
.ts(plugins.ts, parsers.ts, ...files.ts)
|
18
13
|
.body,
|
19
14
|
svelte: new options
|
20
|
-
.svelte(plugins
|
21
|
-
.svelte, parsers
|
22
|
-
.svelte, parsers
|
23
|
-
.ts, ...files
|
24
|
-
.svelte)
|
15
|
+
.svelte(plugins.svelte, parsers.svelte, parsers.ts, ...files.svelte)
|
25
16
|
.body,
|
26
17
|
html: new options
|
27
|
-
.html(plugins
|
28
|
-
.html, parsers
|
29
|
-
.html, ...files
|
30
|
-
.html)
|
18
|
+
.html(plugins.html, parsers.html, ...files.html)
|
31
19
|
.body,
|
32
20
|
json: new options
|
33
|
-
.json(plugins
|
34
|
-
.json, parsers
|
35
|
-
.json, ...files
|
36
|
-
.json)
|
21
|
+
.json(plugins.json, parsers.json, ...files.json)
|
37
22
|
.body,
|
38
23
|
jsonc: new options
|
39
|
-
.jsonc(plugins
|
40
|
-
.jsonc, parsers
|
41
|
-
.jsonc, ...files
|
42
|
-
.jsonc)
|
24
|
+
.jsonc(plugins.jsonc, parsers.jsonc, ...files.jsonc)
|
43
25
|
.body,
|
44
26
|
yml: new options
|
45
|
-
.yml(plugins
|
46
|
-
.yml, parsers
|
47
|
-
.yml, ...files
|
48
|
-
.yml)
|
27
|
+
.yml(plugins.yml, parsers.yml, ...files.yml)
|
49
28
|
.body,
|
50
29
|
};
|
51
30
|
return scopes
|
52
31
|
.map(scope => instantiatedOptions[scope].files.length > 0
|
53
|
-
? rulesets[scope]
|
32
|
+
? rulesets[scope]
|
33
|
+
.flat
|
34
|
+
.map(rules => {
|
54
35
|
return {
|
55
36
|
rules,
|
56
37
|
...instantiatedOptions[scope],
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,OAAO,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,OAAO,MAAM,cAAc,CAAC;AAOnC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG5C,MAAM,CAAC,OAAO,WACZ,OAAgB,EAChB,OAAgB,EAChB,KAA+B,EAC/B,QAAuC;IAEvC,IAAI,CAAC;QACH,MAAM,mBAAmB,GAIrB;YACF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,OAAO,CAAC,EAAE,EACV,GAAG,KAAK,CAAC,EAAE,CACZ;iBACA,IAAI;YACP,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,EAAE,EACV,GAAG,KAAK,CAAC,EAAE,CACZ;iBACA,IAAI;YACP,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,EAAE,EACV,GAAG,KAAK,CAAC,MAAM,CAChB;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,IAAI,EACZ,GAAG,KAAK,CAAC,IAAI,CACd;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,IAAI,EACZ,GAAG,KAAK,CAAC,IAAI,CACd;iBACA,IAAI;YACP,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,OAAO,CAAC,KAAK,EACb,OAAO,CAAC,KAAK,EACb,GAAG,KAAK,CAAC,KAAK,CACf;iBACA,IAAI;YACP,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,OAAO,CAAC,GAAG,EACX,OAAO,CAAC,GAAG,EACX,GAAG,KAAK,CAAC,GAAG,CACb;iBACA,IAAI;SACR,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CACF,KAAK,CAAC,EAAE,CACN,mBAAmB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;YACzC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;iBACd,IAAI;iBACJ,GAAG,CACF,KAAK,CAAC,EAAE;gBACN,OAAO;oBACL,KAAK;oBACL,GAAG,mBAAmB,CAAC,KAAK,CAAC;iBAC9B,CAAC;YACJ,CAAC,CACF;YACH,CAAC,CAAC,EAAE,CACT;aACA,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,6BAA6B,EAC7B,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export default interface IConfig {
|
2
|
+
rules: IRule;
|
3
|
+
files: string[];
|
4
|
+
name: `linted/scope:${string}`;
|
5
|
+
linterOptions: {
|
6
|
+
noInlineConfig: true;
|
7
|
+
reportUnusedDisableDirectives: "error";
|
8
|
+
};
|
9
|
+
languageOptions: {
|
10
|
+
sourceType?: "module" | "script";
|
11
|
+
ecmaVersion?: "latest";
|
12
|
+
globals?: Record<string, true>;
|
13
|
+
parser?: unknown;
|
14
|
+
parserOptions?: Record<string, unknown>;
|
15
|
+
};
|
16
|
+
plugins: Record<string, Record<"configs", unknown>>;
|
17
|
+
processor?: string;
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=IConfig.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../src/interface/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,gBAAgB,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../src/interface/IConfig.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import Rule from "./rule/Rule.js";
|
2
|
+
export { default as Rule } from "./rule/Rule.js";
|
3
|
+
export default class Ruleset<Language extends string> {
|
4
|
+
readonly language: literalful<Language>;
|
5
|
+
readonly ruleset: readonly Rule[];
|
6
|
+
readonly overrides: Rule[];
|
7
|
+
constructor(language: literalful<Language>, ...ruleset: readonly Rule[]);
|
8
|
+
get id(): `ruleset:${literalful<Language>}`;
|
9
|
+
get flat(): IRule[];
|
10
|
+
override(...overrides: (undefined | IRule)[]): this;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=Ruleset.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../src/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,QAAQ,SAAS,MAAM;aAKhC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IAJhD,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IACzC,SAAgB,SAAS,EAAE,IAAI,EAAE,CAAM;gBAGrB,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EAC9C,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE;IAK7B,IAAW,EAAE,sCAEZ;IAED,IAAW,IAAI,YAWd;IAEM,QAAQ,CAAC,GAAG,SAAS,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE;CAkBpD"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import Rule from "./rule/Rule.js";
|
2
|
+
export { default as Rule } from "./rule/Rule.js";
|
3
|
+
export default class Ruleset {
|
4
|
+
language;
|
5
|
+
ruleset;
|
6
|
+
overrides = [];
|
7
|
+
constructor(language, ...ruleset) {
|
8
|
+
this.language = language;
|
9
|
+
this.ruleset = [...ruleset];
|
10
|
+
}
|
11
|
+
get id() {
|
12
|
+
return `ruleset:${this.language}`;
|
13
|
+
}
|
14
|
+
get flat() {
|
15
|
+
return [
|
16
|
+
...this.ruleset.map(rules => rules.rules),
|
17
|
+
...this.overrides.map(rules => rules.rules),
|
18
|
+
];
|
19
|
+
}
|
20
|
+
override(...overrides) {
|
21
|
+
this.overrides.push(...overrides
|
22
|
+
.filter(override => typeof override !== "undefined")
|
23
|
+
.map(override => new Rule("override", override)));
|
24
|
+
return this;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=Ruleset.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../src/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,MAAM,CAAC,OAAO,OAAO,OAAO;IAKR;IAJF,OAAO,CAAkB;IACzB,SAAS,GAAW,EAAE,CAAC;IAEvC,YACkB,QAA8B,EAC9C,GAAG,OAAwB;QADX,aAAQ,GAAR,QAAQ,CAAsB;QAG9C,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAW,EAAE;QACX,OAAO,WAAW,IAAI,CAAC,QAAQ,EAAW,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACb,OAAO;YACL,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CACjB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,KAAK,CACd;YACD,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CACnB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,KAAK,CACd;SACF,CAAC;IACJ,CAAC;IAEM,QAAQ,CAAC,GAAG,SAAgC;QACjD,IAAI,CAAC,SAAS,CAAC,IAAI,CACjB,GAAG,SAAS;aACT,MAAM,CACL,QAAQ,CAAC,EAAE,CACT,OAAO,QAAQ,KAAK,WAAW,CAClC;aACA,GAAG,CACF,QAAQ,CAAC,EAAE,CACT,IAAI,IAAI,CACN,UAAU,EACV,QAAQ,CACT,CACJ,CACJ,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../src/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,IAAI;aAEL,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK;gBADZ,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK;CAE/B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../src/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,IAAI;IAEL;IACA;IAFlB,YACkB,EAAU,EACV,KAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAO;IAC3B,CAAC;CACL"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
import scopes from "./scopes.js";
|
2
2
|
import options from "./options.js";
|
3
|
+
import type IConfig from "./interface/IConfig.js";
|
3
4
|
import type { Scopes } from "./scopes.js";
|
4
5
|
import type Plugins from "./plugins.js";
|
5
6
|
import type Parsers from "./parsers.js";
|
6
|
-
import type Ruleset from "./
|
7
|
+
import type Ruleset from "./ruleset/Ruleset.js";
|
7
8
|
|
8
|
-
export { default as Ruleset } from "./
|
9
|
-
export { Rule } from "./
|
9
|
+
export { default as Ruleset } from "./ruleset/Ruleset.js";
|
10
|
+
export { Rule } from "./ruleset/Ruleset.js";
|
11
|
+
export type { Scopes } from "./scopes.js";
|
12
|
+
export type { default as IConfig } from "./interface/IConfig.js";
|
10
13
|
export default function (
|
11
14
|
plugins: Plugins,
|
12
15
|
parsers: Parsers,
|
@@ -21,72 +24,51 @@ export default function (
|
|
21
24
|
} = {
|
22
25
|
js: new options
|
23
26
|
.js(
|
24
|
-
plugins
|
25
|
-
|
26
|
-
...files
|
27
|
-
.js,
|
27
|
+
plugins.js,
|
28
|
+
...files.js,
|
28
29
|
)
|
29
30
|
.body,
|
30
31
|
ts: new options
|
31
32
|
.ts(
|
32
|
-
plugins
|
33
|
-
|
34
|
-
|
35
|
-
.ts,
|
36
|
-
...files
|
37
|
-
.ts,
|
33
|
+
plugins.ts,
|
34
|
+
parsers.ts,
|
35
|
+
...files.ts,
|
38
36
|
)
|
39
37
|
.body,
|
40
38
|
svelte: new options
|
41
39
|
.svelte(
|
42
|
-
plugins
|
43
|
-
|
44
|
-
parsers
|
45
|
-
|
46
|
-
parsers
|
47
|
-
.ts,
|
48
|
-
...files
|
49
|
-
.svelte,
|
40
|
+
plugins.svelte,
|
41
|
+
parsers.svelte,
|
42
|
+
parsers.ts,
|
43
|
+
...files.svelte,
|
50
44
|
)
|
51
45
|
.body,
|
52
46
|
html: new options
|
53
47
|
.html(
|
54
|
-
plugins
|
55
|
-
|
56
|
-
|
57
|
-
.html,
|
58
|
-
...files
|
59
|
-
.html,
|
48
|
+
plugins.html,
|
49
|
+
parsers.html,
|
50
|
+
...files.html,
|
60
51
|
)
|
61
52
|
.body,
|
62
53
|
json: new options
|
63
54
|
.json(
|
64
|
-
plugins
|
65
|
-
|
66
|
-
|
67
|
-
.json,
|
68
|
-
...files
|
69
|
-
.json,
|
55
|
+
plugins.json,
|
56
|
+
parsers.json,
|
57
|
+
...files.json,
|
70
58
|
)
|
71
59
|
.body,
|
72
60
|
jsonc: new options
|
73
61
|
.jsonc(
|
74
|
-
plugins
|
75
|
-
|
76
|
-
|
77
|
-
.jsonc,
|
78
|
-
...files
|
79
|
-
.jsonc,
|
62
|
+
plugins.jsonc,
|
63
|
+
parsers.jsonc,
|
64
|
+
...files.jsonc,
|
80
65
|
)
|
81
66
|
.body,
|
82
67
|
yml: new options
|
83
68
|
.yml(
|
84
|
-
plugins
|
85
|
-
|
86
|
-
|
87
|
-
.yml,
|
88
|
-
...files
|
89
|
-
.yml,
|
69
|
+
plugins.yml,
|
70
|
+
parsers.yml,
|
71
|
+
...files.yml,
|
90
72
|
)
|
91
73
|
.body,
|
92
74
|
};
|
@@ -95,14 +77,16 @@ export default function (
|
|
95
77
|
.map(
|
96
78
|
scope =>
|
97
79
|
instantiatedOptions[scope].files.length > 0
|
98
|
-
? rulesets[scope]
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
80
|
+
? rulesets[scope]
|
81
|
+
.flat
|
82
|
+
.map(
|
83
|
+
rules => {
|
84
|
+
return {
|
85
|
+
rules,
|
86
|
+
...instantiatedOptions[scope],
|
87
|
+
};
|
88
|
+
},
|
89
|
+
)
|
106
90
|
: [],
|
107
91
|
)
|
108
92
|
.flat();
|
package/tsconfig.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/{interface → src/interface}/option/language/parserOptions/IOLanguageParserOptions.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|