@eslinted/core 13.0.0-rc.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/config/index.d.ts +23 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/{objects → config}/index.js.map +1 -1
- package/dist/config/rule.d.ts +7 -0
- package/dist/config/rule.d.ts.map +1 -0
- package/dist/config/rule.js +2 -0
- package/dist/config/rule.js.map +1 -0
- package/dist/factory/global.d.ts +12 -9
- package/dist/factory/global.d.ts.map +1 -1
- package/dist/factory/global.js +20 -18
- package/dist/factory/global.js.map +1 -1
- package/dist/factory/index.d.ts +2 -16
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +2 -21
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/options/index.d.ts +10 -9
- package/dist/factory/options/index.d.ts.map +1 -1
- package/dist/factory/options/index.js +8 -8
- package/dist/factory/options/index.js.map +1 -1
- package/dist/factory/options/option.d.ts +3002 -0
- package/dist/factory/options/option.d.ts.map +1 -0
- package/dist/factory/options/{option/index.js → option.js} +5 -3
- package/dist/factory/options/option.js.map +1 -0
- package/dist/factory/options/proto.d.ts +19 -0
- package/dist/factory/options/proto.d.ts.map +1 -0
- package/dist/factory/options/proto.js +2 -0
- package/dist/factory/options/proto.js.map +1 -0
- package/dist/factory/options/{html.d.ts → scopes/html.d.ts} +1 -1
- package/dist/factory/options/scopes/html.d.ts.map +1 -0
- package/dist/factory/options/{html.js → scopes/html.js} +1 -1
- package/dist/factory/options/scopes/html.js.map +1 -0
- package/dist/factory/options/{js.d.ts → scopes/js.d.ts} +1 -1
- package/dist/factory/options/scopes/js.d.ts.map +1 -0
- package/dist/factory/options/{js.js → scopes/js.js} +1 -1
- package/dist/factory/options/scopes/js.js.map +1 -0
- package/dist/factory/options/{json.d.ts → scopes/json.d.ts} +1 -1
- package/dist/factory/options/scopes/json.d.ts.map +1 -0
- package/dist/factory/options/{json.js → scopes/json.js} +1 -1
- package/dist/factory/options/scopes/json.js.map +1 -0
- package/dist/factory/options/{jsonc.d.ts → scopes/jsonc.d.ts} +1 -1
- package/dist/factory/options/scopes/jsonc.d.ts.map +1 -0
- package/dist/factory/options/{jsonc.js → scopes/jsonc.js} +1 -1
- package/dist/factory/options/scopes/jsonc.js.map +1 -0
- package/dist/factory/options/{mocha.d.ts → scopes/mocha.d.ts} +1 -1
- package/dist/factory/options/scopes/mocha.d.ts.map +1 -0
- package/dist/factory/options/{mocha.js → scopes/mocha.js} +1 -1
- package/dist/factory/options/scopes/mocha.js.map +1 -0
- package/dist/factory/options/{svelte.d.ts → scopes/svelte.d.ts} +1 -1
- package/dist/factory/options/scopes/svelte.d.ts.map +1 -0
- package/dist/factory/options/{svelte.js → scopes/svelte.js} +1 -1
- package/dist/factory/options/scopes/svelte.js.map +1 -0
- package/dist/factory/options/{ts.d.ts → scopes/ts.d.ts} +1 -1
- package/dist/factory/options/scopes/ts.d.ts.map +1 -0
- package/dist/factory/options/{ts.js → scopes/ts.js} +1 -1
- package/dist/factory/options/scopes/ts.js.map +1 -0
- package/dist/factory/options/{yml.d.ts → scopes/yml.d.ts} +1 -1
- package/dist/factory/options/scopes/yml.d.ts.map +1 -0
- package/dist/factory/options/{yml.js → scopes/yml.js} +1 -1
- package/dist/factory/options/scopes/yml.js.map +1 -0
- package/dist/factory/ruleset.d.ts +10 -0
- package/dist/factory/ruleset.d.ts.map +1 -0
- package/dist/factory/ruleset.js +18 -0
- package/dist/factory/ruleset.js.map +1 -0
- package/dist/factory/scoped.d.ts +13 -0
- package/dist/factory/scoped.d.ts.map +1 -0
- package/dist/factory/scoped.js +17 -0
- package/dist/factory/scoped.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/interface/imports/index.d.ts +3 -0
- package/dist/interface/imports/index.d.ts.map +1 -0
- package/dist/{objects/config → interface/imports}/index.js.map +1 -1
- package/dist/interface/index.d.ts +3 -3
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/input.d.ts +18 -0
- package/dist/interface/input.d.ts.map +1 -0
- package/dist/interface/input.js +2 -0
- package/dist/interface/input.js.map +1 -0
- package/dist/interface/output.d.ts +17 -0
- package/dist/interface/output.d.ts.map +1 -0
- package/dist/interface/output.js +2 -0
- package/dist/interface/output.js.map +1 -0
- package/dist/{scopes/index.d.ts → scopes.d.ts} +2 -2
- package/dist/scopes.d.ts.map +1 -0
- package/dist/{scopes/index.js → scopes.js} +1 -1
- package/dist/scopes.js.map +1 -0
- package/dist/scopes.spec.d.ts +2 -0
- package/dist/scopes.spec.d.ts.map +1 -0
- package/dist/{scopes/index.spec.js → scopes.spec.js} +2 -2
- package/dist/scopes.spec.js.map +1 -0
- package/package.json +1 -1
- package/src/config/index.ts +42 -0
- package/src/config/rule.ts +14 -0
- package/src/factory/global.ts +20 -18
- package/src/factory/index.ts +2 -35
- package/src/factory/options/index.ts +10 -13
- package/src/factory/options/{option/index.ts → option.ts} +18 -17
- package/src/factory/options/proto.ts +46 -0
- package/src/factory/options/{html.ts → scopes/html.ts} +1 -1
- package/src/factory/options/{js.ts → scopes/js.ts} +1 -1
- package/src/factory/options/{json.ts → scopes/json.ts} +1 -1
- package/src/factory/options/{jsonc.ts → scopes/jsonc.ts} +1 -1
- package/src/factory/options/{mocha.ts → scopes/mocha.ts} +1 -1
- package/src/factory/options/{svelte.ts → scopes/svelte.ts} +1 -1
- package/src/factory/options/{ts.ts → scopes/ts.ts} +1 -1
- package/src/factory/options/{yml.ts → scopes/yml.ts} +1 -1
- package/src/factory/ruleset.ts +27 -0
- package/src/factory/scoped.ts +17 -0
- package/src/index.ts +19 -35
- package/src/interface/imports/index.ts +16 -0
- package/src/interface/index.ts +3 -11
- package/src/interface/input.ts +26 -0
- package/src/interface/output.ts +24 -0
- package/src/{scopes/index.spec.ts → scopes.spec.ts} +1 -1
- package/src/{scopes/index.ts → scopes.ts} +1 -1
- package/dist/factory/files.d.ts +0 -7
- package/dist/factory/files.d.ts.map +0 -1
- package/dist/factory/files.js +0 -17
- package/dist/factory/files.js.map +0 -1
- package/dist/factory/ignores.d.ts +0 -7
- package/dist/factory/ignores.d.ts.map +0 -1
- package/dist/factory/ignores.js +0 -17
- package/dist/factory/ignores.js.map +0 -1
- package/dist/factory/options/html.d.ts.map +0 -1
- package/dist/factory/options/html.js.map +0 -1
- package/dist/factory/options/js.d.ts.map +0 -1
- package/dist/factory/options/js.js.map +0 -1
- package/dist/factory/options/json.d.ts.map +0 -1
- package/dist/factory/options/json.js.map +0 -1
- package/dist/factory/options/jsonc.d.ts.map +0 -1
- package/dist/factory/options/jsonc.js.map +0 -1
- package/dist/factory/options/mocha.d.ts.map +0 -1
- package/dist/factory/options/mocha.js.map +0 -1
- package/dist/factory/options/option/index.d.ts +0 -51
- package/dist/factory/options/option/index.d.ts.map +0 -1
- package/dist/factory/options/option/index.js.map +0 -1
- package/dist/factory/options/option/template/globals.d.ts +0 -3
- package/dist/factory/options/option/template/globals.d.ts.map +0 -1
- package/dist/factory/options/option/template/globals.js +0 -2
- package/dist/factory/options/option/template/globals.js.map +0 -1
- package/dist/factory/options/option/template/index.d.ts +0 -15
- package/dist/factory/options/option/template/index.d.ts.map +0 -1
- package/dist/factory/options/option/template/index.js.map +0 -1
- package/dist/factory/options/option/template/languageOptions.d.ts +0 -10
- package/dist/factory/options/option/template/languageOptions.d.ts.map +0 -1
- package/dist/factory/options/option/template/languageOptions.js +0 -2
- package/dist/factory/options/option/template/languageOptions.js.map +0 -1
- package/dist/factory/options/svelte.d.ts.map +0 -1
- package/dist/factory/options/svelte.js.map +0 -1
- package/dist/factory/options/ts.d.ts.map +0 -1
- package/dist/factory/options/ts.js.map +0 -1
- package/dist/factory/options/yml.d.ts.map +0 -1
- package/dist/factory/options/yml.js.map +0 -1
- package/dist/factory/rules/index.d.ts +0 -9
- package/dist/factory/rules/index.d.ts.map +0 -1
- package/dist/factory/rules/index.js +0 -15
- package/dist/factory/rules/index.js.map +0 -1
- package/dist/factory/rules/ruleset.d.ts +0 -10
- package/dist/factory/rules/ruleset.d.ts.map +0 -1
- package/dist/factory/rules/ruleset.js +0 -20
- package/dist/factory/rules/ruleset.js.map +0 -1
- package/dist/interface/input/global/ignores/defaults.d.ts +0 -3
- package/dist/interface/input/global/ignores/defaults.d.ts.map +0 -1
- package/dist/interface/input/global/ignores/defaults.js +0 -2
- package/dist/interface/input/global/ignores/defaults.js.map +0 -1
- package/dist/interface/input/global/ignores/extend.d.ts +0 -5
- package/dist/interface/input/global/ignores/extend.d.ts.map +0 -1
- package/dist/interface/input/global/ignores/extend.js +0 -2
- package/dist/interface/input/global/ignores/extend.js.map +0 -1
- package/dist/interface/input/global/ignores/index.d.ts +0 -8
- package/dist/interface/input/global/ignores/index.d.ts.map +0 -1
- package/dist/interface/input/global/ignores/index.js.map +0 -1
- package/dist/interface/input/global/index.d.ts +0 -6
- package/dist/interface/input/global/index.d.ts.map +0 -1
- package/dist/interface/input/global/index.js +0 -2
- package/dist/interface/input/global/index.js.map +0 -1
- package/dist/interface/input/imports/index.d.ts +0 -8
- package/dist/interface/input/imports/index.d.ts.map +0 -1
- package/dist/interface/input/imports/index.js +0 -2
- package/dist/interface/input/imports/index.js.map +0 -1
- package/dist/interface/input/imports/parsers/index.d.ts +0 -4
- package/dist/interface/input/imports/parsers/index.d.ts.map +0 -1
- package/dist/interface/input/imports/parsers/index.js +0 -2
- package/dist/interface/input/imports/parsers/index.js.map +0 -1
- package/dist/interface/input/imports/parsers/parser.d.ts +0 -3
- package/dist/interface/input/imports/parsers/parser.d.ts.map +0 -1
- package/dist/interface/input/imports/parsers/parser.js +0 -2
- package/dist/interface/input/imports/parsers/parser.js.map +0 -1
- package/dist/interface/input/imports/plugins.d.ts +0 -3
- package/dist/interface/input/imports/plugins.d.ts.map +0 -1
- package/dist/interface/input/imports/plugins.js +0 -2
- package/dist/interface/input/imports/plugins.js.map +0 -1
- package/dist/interface/input/index.d.ts +0 -7
- package/dist/interface/input/index.d.ts.map +0 -1
- package/dist/interface/input/index.js +0 -2
- package/dist/interface/input/index.js.map +0 -1
- package/dist/interface/input/scoped/files/defaults.d.ts +0 -3
- package/dist/interface/input/scoped/files/defaults.d.ts.map +0 -1
- package/dist/interface/input/scoped/files/defaults.js +0 -2
- package/dist/interface/input/scoped/files/defaults.js.map +0 -1
- package/dist/interface/input/scoped/files/includes.d.ts +0 -3
- package/dist/interface/input/scoped/files/includes.d.ts.map +0 -1
- package/dist/interface/input/scoped/files/includes.js +0 -2
- package/dist/interface/input/scoped/files/includes.js.map +0 -1
- package/dist/interface/input/scoped/files/index.d.ts +0 -8
- package/dist/interface/input/scoped/files/index.d.ts.map +0 -1
- package/dist/interface/input/scoped/files/index.js +0 -2
- package/dist/interface/input/scoped/files/index.js.map +0 -1
- package/dist/interface/input/scoped/ignores/defaults.d.ts +0 -3
- package/dist/interface/input/scoped/ignores/defaults.d.ts.map +0 -1
- package/dist/interface/input/scoped/ignores/defaults.js +0 -2
- package/dist/interface/input/scoped/ignores/defaults.js.map +0 -1
- package/dist/interface/input/scoped/ignores/extend.d.ts +0 -3
- package/dist/interface/input/scoped/ignores/extend.d.ts.map +0 -1
- package/dist/interface/input/scoped/ignores/extend.js +0 -2
- package/dist/interface/input/scoped/ignores/extend.js.map +0 -1
- package/dist/interface/input/scoped/ignores/index.d.ts +0 -8
- package/dist/interface/input/scoped/ignores/index.d.ts.map +0 -1
- package/dist/interface/input/scoped/ignores/index.js +0 -2
- package/dist/interface/input/scoped/ignores/index.js.map +0 -1
- package/dist/interface/input/scoped/index.d.ts +0 -10
- package/dist/interface/input/scoped/index.d.ts.map +0 -1
- package/dist/interface/input/scoped/index.js +0 -2
- package/dist/interface/input/scoped/index.js.map +0 -1
- package/dist/interface/input/scoped/rules/defaults.d.ts +0 -3
- package/dist/interface/input/scoped/rules/defaults.d.ts.map +0 -1
- package/dist/interface/input/scoped/rules/defaults.js +0 -2
- package/dist/interface/input/scoped/rules/defaults.js.map +0 -1
- package/dist/interface/input/scoped/rules/index.d.ts +0 -8
- package/dist/interface/input/scoped/rules/index.d.ts.map +0 -1
- package/dist/interface/input/scoped/rules/index.js +0 -2
- package/dist/interface/input/scoped/rules/index.js.map +0 -1
- package/dist/interface/input/scoped/rules/overrides.d.ts +0 -3
- package/dist/interface/input/scoped/rules/overrides.d.ts.map +0 -1
- package/dist/interface/input/scoped/rules/overrides.js +0 -2
- package/dist/interface/input/scoped/rules/overrides.js.map +0 -1
- package/dist/interface/input/settings/env.d.ts +0 -3
- package/dist/interface/input/settings/env.d.ts.map +0 -1
- package/dist/interface/input/settings/env.js +0 -2
- package/dist/interface/input/settings/env.js.map +0 -1
- package/dist/interface/input/settings/index.d.ts +0 -6
- package/dist/interface/input/settings/index.d.ts.map +0 -1
- package/dist/interface/input/settings/index.js +0 -2
- package/dist/interface/input/settings/index.js.map +0 -1
- package/dist/interface/output/global.d.ts +0 -6
- package/dist/interface/output/global.d.ts.map +0 -1
- package/dist/interface/output/global.js +0 -2
- package/dist/interface/output/global.js.map +0 -1
- package/dist/interface/output/index.d.ts +0 -8
- package/dist/interface/output/index.d.ts.map +0 -1
- package/dist/interface/output/index.js +0 -2
- package/dist/interface/output/index.js.map +0 -1
- package/dist/objects/config/global/ignores.d.ts +0 -6
- package/dist/objects/config/global/ignores.d.ts.map +0 -1
- package/dist/objects/config/global/ignores.js +0 -2
- package/dist/objects/config/global/ignores.js.map +0 -1
- package/dist/objects/config/global/system.d.ts +0 -14
- package/dist/objects/config/global/system.d.ts.map +0 -1
- package/dist/objects/config/global/system.js +0 -2
- package/dist/objects/config/global/system.js.map +0 -1
- package/dist/objects/config/index.d.ts +0 -6
- package/dist/objects/config/index.d.ts.map +0 -1
- package/dist/objects/config/index.js +0 -2
- package/dist/objects/config/property.d.ts +0 -2
- package/dist/objects/config/property.d.ts.map +0 -1
- package/dist/objects/config/property.js +0 -2
- package/dist/objects/config/property.js.map +0 -1
- package/dist/objects/config/scoped.d.ts +0 -11
- package/dist/objects/config/scoped.d.ts.map +0 -1
- package/dist/objects/config/scoped.js +0 -2
- package/dist/objects/config/scoped.js.map +0 -1
- package/dist/objects/index.d.ts +0 -4
- package/dist/objects/index.d.ts.map +0 -1
- package/dist/objects/index.js +0 -2
- package/dist/objects/plugins/index.d.ts +0 -5
- package/dist/objects/plugins/index.d.ts.map +0 -1
- package/dist/objects/plugins/index.js +0 -2
- package/dist/objects/plugins/index.js.map +0 -1
- package/dist/objects/plugins/plugin.d.ts +0 -2
- package/dist/objects/plugins/plugin.d.ts.map +0 -1
- package/dist/objects/plugins/plugin.js +0 -2
- package/dist/objects/plugins/plugin.js.map +0 -1
- package/dist/objects/rule/index.d.ts +0 -8
- package/dist/objects/rule/index.d.ts.map +0 -1
- package/dist/objects/rule/index.js +0 -2
- package/dist/objects/rule/index.js.map +0 -1
- package/dist/objects/rule/record/index.d.ts +0 -7
- package/dist/objects/rule/record/index.d.ts.map +0 -1
- package/dist/objects/rule/record/index.js +0 -2
- package/dist/objects/rule/record/index.js.map +0 -1
- package/dist/objects/rule/record/state.d.ts +0 -2
- package/dist/objects/rule/record/state.d.ts.map +0 -1
- package/dist/objects/rule/record/state.js +0 -2
- package/dist/objects/rule/record/state.js.map +0 -1
- package/dist/scopes/index.d.ts.map +0 -1
- package/dist/scopes/index.js.map +0 -1
- package/dist/scopes/index.spec.d.ts +0 -2
- package/dist/scopes/index.spec.d.ts.map +0 -1
- package/dist/scopes/index.spec.js.map +0 -1
- package/src/factory/files.ts +0 -26
- package/src/factory/ignores.ts +0 -26
- package/src/factory/options/option/template/globals.ts +0 -5
- package/src/factory/options/option/template/index.ts +0 -35
- package/src/factory/options/option/template/languageOptions.ts +0 -21
- package/src/factory/rules/index.ts +0 -26
- package/src/factory/rules/ruleset.ts +0 -28
- package/src/interface/input/global/ignores/defaults.ts +0 -6
- package/src/interface/input/global/ignores/extend.ts +0 -5
- package/src/interface/input/global/ignores/index.ts +0 -9
- package/src/interface/input/global/index.ts +0 -7
- package/src/interface/input/imports/index.ts +0 -12
- package/src/interface/input/imports/parsers/index.ts +0 -8
- package/src/interface/input/imports/parsers/parser.ts +0 -10
- package/src/interface/input/imports/plugins.ts +0 -3
- package/src/interface/input/index.ts +0 -20
- package/src/interface/input/scoped/files/defaults.ts +0 -6
- package/src/interface/input/scoped/files/includes.ts +0 -5
- package/src/interface/input/scoped/files/index.ts +0 -9
- package/src/interface/input/scoped/ignores/defaults.ts +0 -6
- package/src/interface/input/scoped/ignores/extend.ts +0 -5
- package/src/interface/input/scoped/ignores/index.ts +0 -9
- package/src/interface/input/scoped/index.ts +0 -15
- package/src/interface/input/scoped/rules/defaults.ts +0 -9
- package/src/interface/input/scoped/rules/index.ts +0 -13
- package/src/interface/input/scoped/rules/overrides.ts +0 -9
- package/src/interface/input/settings/env.ts +0 -6
- package/src/interface/input/settings/index.ts +0 -7
- package/src/interface/output/global.ts +0 -9
- package/src/interface/output/index.ts +0 -12
- package/src/objects/config/global/ignores.ts +0 -13
- package/src/objects/config/global/system.ts +0 -47
- package/src/objects/config/index.ts +0 -8
- package/src/objects/config/property.ts +0 -12
- package/src/objects/config/scoped.ts +0 -11
- package/src/objects/index.ts +0 -11
- package/src/objects/plugins/index.ts +0 -6
- package/src/objects/plugins/plugin.ts +0 -9
- package/src/objects/rule/index.ts +0 -8
- package/src/objects/rule/record/index.ts +0 -8
- package/src/objects/rule/record/state.ts +0 -5
- /package/dist/{factory/options/option/template → config}/index.js +0 -0
- /package/dist/interface/{input/global/ignores → imports}/index.js +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { RuleRecord } from "./rule.js";
|
2
|
+
export type * from "./rule.js";
|
3
|
+
export interface Config<Plugins extends string = string> {
|
4
|
+
name: `linted/${string}`;
|
5
|
+
plugins: Record<Plugins, {
|
6
|
+
configs: unknown;
|
7
|
+
}>;
|
8
|
+
files: string[];
|
9
|
+
ignores: string[];
|
10
|
+
rules: RuleRecord;
|
11
|
+
linterOptions: {
|
12
|
+
noInlineConfig: boolean;
|
13
|
+
reportUnusedDisableDirectives: "error" | "warn" | "off";
|
14
|
+
};
|
15
|
+
languageOptions: {
|
16
|
+
sourceType: "module" | "script";
|
17
|
+
ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
|
18
|
+
};
|
19
|
+
processor?: string;
|
20
|
+
language?: string;
|
21
|
+
settings?: Record<string, unknown>;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,mBAAmB,QAAQ,CAAC;AAC5B,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,EACN,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,EACP,QAAQ,GACR,CAAC,GACD,CAAC,GACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../src/config/rule.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,SAAS;IAC/B,MAAM;IACN,UAAU;CACX,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAC7B,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CACrC,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../src/config/rule.ts"],"names":[],"mappings":""}
|
package/dist/factory/global.d.ts
CHANGED
@@ -1,13 +1,16 @@
|
|
1
|
-
import type { Input } from "
|
2
|
-
export declare class
|
3
|
-
readonly plugins: Input["plugins"];
|
4
|
-
readonly
|
5
|
-
readonly
|
6
|
-
|
1
|
+
import type { Input } from "../index.js";
|
2
|
+
export declare class GlobalFactory {
|
3
|
+
readonly plugins: Input["imports"]["plugins"];
|
4
|
+
readonly defaultSettings: Input["defaults"]["settings"];
|
5
|
+
readonly defaultGlobalIgnores: Input["defaults"]["ignores"]["*"];
|
6
|
+
readonly globalExtensions: Input["extensions"]["*"];
|
7
|
+
constructor(plugins: Input["imports"]["plugins"], defaultSettings: Input["defaults"]["settings"], defaultGlobalIgnores: Input["defaults"]["ignores"]["*"], globalExtensions?: Input["extensions"]["*"]);
|
7
8
|
get configs(): readonly [
|
8
9
|
{
|
9
|
-
readonly name: "linted
|
10
|
-
readonly plugins: import("../index.js").
|
10
|
+
readonly name: "linted/*/settings";
|
11
|
+
readonly plugins: Record<import("../index.js").ImportPlugins, {
|
12
|
+
configs: unknown;
|
13
|
+
}>;
|
11
14
|
readonly linterOptions: {
|
12
15
|
readonly noInlineConfig: boolean;
|
13
16
|
readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
|
@@ -18,7 +21,7 @@ export declare class Global {
|
|
18
21
|
};
|
19
22
|
},
|
20
23
|
{
|
21
|
-
readonly name: "linted
|
24
|
+
readonly name: "linted/*/ignores";
|
22
25
|
readonly ignores: string[];
|
23
26
|
}
|
24
27
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/factory/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/factory/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,qBAAa,aAAa;aAEN,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;aACpC,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC;aAC9C,oBAAoB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC;aACvD,gBAAgB,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC;gBAH1C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,EACpC,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EAC9C,oBAAoB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,EACvD,gBAAgB,GAAE,KAAK,CAAC,YAAY,CAAC,CAAC,GAAG,CAAM;IAGjE,IAAW,OAAO;;;;;;;;;;;;;;;;OAiCjB;CACF"}
|
package/dist/factory/global.js
CHANGED
@@ -1,36 +1,38 @@
|
|
1
|
-
export class
|
1
|
+
export class GlobalFactory {
|
2
2
|
plugins;
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
defaultSettings;
|
4
|
+
defaultGlobalIgnores;
|
5
|
+
globalExtensions;
|
6
|
+
constructor(plugins, defaultSettings, defaultGlobalIgnores, globalExtensions = {}) {
|
6
7
|
this.plugins = plugins;
|
7
|
-
this.
|
8
|
-
this.
|
8
|
+
this.defaultSettings = defaultSettings;
|
9
|
+
this.defaultGlobalIgnores = defaultGlobalIgnores;
|
10
|
+
this.globalExtensions = globalExtensions;
|
9
11
|
}
|
10
12
|
get configs() {
|
11
|
-
const { plugins,
|
13
|
+
const { plugins, defaultSettings, defaultGlobalIgnores, globalExtensions, } = this;
|
12
14
|
return [
|
13
15
|
{
|
14
|
-
name: "linted
|
16
|
+
name: "linted/*/settings",
|
15
17
|
plugins,
|
16
18
|
linterOptions: {
|
17
|
-
noInlineConfig:
|
18
|
-
reportUnusedDisableDirectives:
|
19
|
+
noInlineConfig: globalExtensions?.noInlineConfig ?? defaultSettings.noInlineConfig,
|
20
|
+
reportUnusedDisableDirectives: globalExtensions?.reportUnusedDisableDirectives ?? defaultSettings.reportUnusedDisableDirectives,
|
19
21
|
},
|
20
22
|
languageOptions: {
|
21
|
-
sourceType:
|
22
|
-
ecmaVersion:
|
23
|
+
sourceType: globalExtensions?.sourceType ?? defaultSettings.sourceType,
|
24
|
+
ecmaVersion: globalExtensions?.ecmaVersion ?? defaultSettings.ecmaVersion,
|
23
25
|
},
|
24
26
|
},
|
25
27
|
{
|
26
|
-
name: "linted
|
27
|
-
ignores: typeof
|
28
|
-
?
|
28
|
+
name: "linted/*/ignores",
|
29
|
+
ignores: typeof globalExtensions?.ignores === "undefined" || globalExtensions.ignores.length < 1
|
30
|
+
? defaultGlobalIgnores
|
29
31
|
: [
|
30
|
-
...
|
32
|
+
...globalExtensions.override === true
|
31
33
|
? []
|
32
|
-
:
|
33
|
-
...
|
34
|
+
: defaultGlobalIgnores,
|
35
|
+
...globalExtensions.ignores,
|
34
36
|
],
|
35
37
|
},
|
36
38
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/factory/global.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/factory/global.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,aAAa;IAEN;IACA;IACA;IACA;IAJlB,YACkB,OAAoC,EACpC,eAA8C,EAC9C,oBAAuD,EACvD,mBAA6C,EAAE;QAH/C,YAAO,GAAP,OAAO,CAA6B;QACpC,oBAAe,GAAf,eAAe,CAA+B;QAC9C,yBAAoB,GAApB,oBAAoB,CAAmC;QACvD,qBAAgB,GAAhB,gBAAgB,CAA+B;IAC9D,CAAC;IAEJ,IAAW,OAAO;QAChB,MAAM,EACJ,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,gBAAgB,GACjB,GAAG,IAAI,CAAC;QAET,OAAO;YACL;gBACE,IAAI,EAAE,mBAAmB;gBACzB,OAAO;gBACP,aAAa,EAAE;oBACb,cAAc,EAAE,gBAAgB,EAAE,cAAc,IAAI,eAAe,CAAC,cAAc;oBAClF,6BAA6B,EAAE,gBAAgB,EAAE,6BAA6B,IAAI,eAAe,CAAC,6BAA6B;iBAChI;gBACD,eAAe,EAAE;oBACf,UAAU,EAAE,gBAAgB,EAAE,UAAU,IAAI,eAAe,CAAC,UAAU;oBACtE,WAAW,EAAE,gBAAgB,EAAE,WAAW,IAAI,eAAe,CAAC,WAAW;iBAC1E;aACF;YACD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,OAAO,gBAAgB,EAAE,OAAO,KAAK,WAAW,IAAI,gBAAgB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;oBAC9F,CAAC,CAAC,oBAAoB;oBACtB,CAAC,CAAC;wBACE,GAAG,gBAAgB,CAAC,QAAQ,KAAK,IAAI;4BACnC,CAAC,CAAC,EAAE;4BACJ,CAAC,CAAC,oBAAoB;wBACxB,GAAG,gBAAgB,CAAC,OAAO;qBAC5B;aACN;SACO,CAAC;IACb,CAAC;CACF"}
|
package/dist/factory/index.d.ts
CHANGED
@@ -1,19 +1,5 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
import { Ignores } from "./ignores.js";
|
4
|
-
import { Rules } from "./rules/index.js";
|
1
|
+
export * from "./global.js";
|
2
|
+
export * from "./scoped.js";
|
5
3
|
import Options from "./options/index.js";
|
6
4
|
export { Options };
|
7
|
-
export { Global } from "./global.js";
|
8
|
-
export declare class Factory {
|
9
|
-
readonly files: Files;
|
10
|
-
readonly ignores: Ignores;
|
11
|
-
readonly rules: Rules;
|
12
|
-
constructor(files: ConstructorParameters<typeof Files>[0], ignores: ConstructorParameters<typeof Ignores>[0], rules: ConstructorParameters<typeof Rules>[0]);
|
13
|
-
produce(scope: string): readonly [
|
14
|
-
string[],
|
15
|
-
string[],
|
16
|
-
import("./rules/ruleset.js").Ruleset
|
17
|
-
];
|
18
|
-
}
|
19
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/factory/index.js
CHANGED
@@ -1,24 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { Rules } from "./rules/index.js";
|
1
|
+
export * from "./global.js";
|
2
|
+
export * from "./scoped.js";
|
4
3
|
import Options from "./options/index.js";
|
5
4
|
export { Options };
|
6
|
-
export { Global } from "./global.js";
|
7
|
-
export class Factory {
|
8
|
-
files;
|
9
|
-
ignores;
|
10
|
-
rules;
|
11
|
-
constructor(files, ignores, rules) {
|
12
|
-
this.files = new Files(files);
|
13
|
-
this.ignores = new Ignores(ignores);
|
14
|
-
this.rules = new Rules(rules);
|
15
|
-
}
|
16
|
-
produce(scope) {
|
17
|
-
return [
|
18
|
-
this.files.files(scope),
|
19
|
-
this.ignores.ignores(scope),
|
20
|
-
this.rules.rules(scope),
|
21
|
-
];
|
22
|
-
}
|
23
|
-
}
|
24
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
|
-
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
|
1
|
+
import js from "./scopes/js.js";
|
2
|
+
import ts from "./scopes/ts.js";
|
3
|
+
import svelte from "./scopes/svelte.js";
|
4
|
+
import mocha from "./scopes/mocha.js";
|
5
|
+
import html from "./scopes/html.js";
|
6
|
+
import json from "./scopes/json.js";
|
7
|
+
import jsonc from "./scopes/jsonc.js";
|
8
|
+
import yml from "./scopes/yml.js";
|
9
|
+
export type * from "./option.js";
|
10
|
+
export type * from "./proto.js";
|
10
11
|
declare const _default: {
|
11
12
|
readonly js: typeof js;
|
12
13
|
readonly ts: typeof ts;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,SAAS,CAAC;;;;;;;;;;;AAC7B,wBASW"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import js from "./js.js";
|
2
|
-
import ts from "./ts.js";
|
3
|
-
import svelte from "./svelte.js";
|
4
|
-
import mocha from "./mocha.js";
|
5
|
-
import html from "./html.js";
|
6
|
-
import json from "./json.js";
|
7
|
-
import jsonc from "./jsonc.js";
|
8
|
-
import yml from "./yml.js";
|
1
|
+
import js from "./scopes/js.js";
|
2
|
+
import ts from "./scopes/ts.js";
|
3
|
+
import svelte from "./scopes/svelte.js";
|
4
|
+
import mocha from "./scopes/mocha.js";
|
5
|
+
import html from "./scopes/html.js";
|
6
|
+
import json from "./scopes/json.js";
|
7
|
+
import jsonc from "./scopes/jsonc.js";
|
8
|
+
import yml from "./scopes/yml.js";
|
9
9
|
export default {
|
10
10
|
js,
|
11
11
|
ts,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAI/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|