@eslinted/core 12.0.0-rc.4 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/output/global.d.ts +3 -3
- package/dist/interface/output/global.d.ts.map +1 -1
- package/dist/interface/output/index.d.ts +1 -1
- package/dist/interface/output/index.d.ts.map +1 -1
- package/dist/objects/config/index.d.ts +2 -2
- package/dist/objects/config/index.d.ts.map +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +13 -13
- package/src/interface/index.ts +2 -2
- package/src/interface/output/global.ts +2 -2
- package/src/interface/output/index.ts +1 -1
- package/src/objects/config/index.ts +2 -2
- package/src/objects/index.ts +2 -2
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export type { Scope } from "./scopes/index.js";
|
2
|
-
export type { Plugins, RuleEntry, RuleRecord, RuleState,
|
2
|
+
export type { Plugins, RuleEntry, RuleRecord, RuleState, GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "./objects/index.js";
|
3
3
|
import type { Input, Output } from "./interface/index.js";
|
4
4
|
export type { Input, Output, };
|
5
5
|
export default function (input: Input): Output;
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAuF7C"}
|
package/dist/index.js
CHANGED
@@ -21,17 +21,6 @@ export default function (input) {
|
|
21
21
|
.yml([parsers.yml], ...factory.produce("yml")).configs,
|
22
22
|
};
|
23
23
|
return [
|
24
|
-
{
|
25
|
-
name: "linted/global/ignores",
|
26
|
-
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
27
|
-
? globals.ignores.ignores
|
28
|
-
: [
|
29
|
-
...globals.extend.inherit === false
|
30
|
-
? []
|
31
|
-
: globals.ignores.ignores,
|
32
|
-
...globals.extend.ignores,
|
33
|
-
],
|
34
|
-
},
|
35
24
|
{
|
36
25
|
name: "linted/global/settings",
|
37
26
|
plugins,
|
@@ -44,6 +33,17 @@ export default function (input) {
|
|
44
33
|
ecmaVersion: settings.ecmaVersion,
|
45
34
|
},
|
46
35
|
},
|
36
|
+
{
|
37
|
+
name: "linted/global/ignores",
|
38
|
+
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
39
|
+
? globals.ignores.ignores
|
40
|
+
: [
|
41
|
+
...globals.extend.inherit === false
|
42
|
+
? []
|
43
|
+
: globals.ignores.ignores,
|
44
|
+
...globals.extend.ignores,
|
45
|
+
],
|
46
|
+
},
|
47
47
|
...scopes.flatMap(scope => options[scope]),
|
48
48
|
];
|
49
49
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;A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,WAAW,EAAE,QAAQ,CAAC,WAAW;iBAClC;aACF;YACD;gBACE,IAAI,EAAE,uBAAuB;gBAC7B,OAAO,EAAE,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;oBACzF,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;oBACzB,CAAC,CAAC;wBACE,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,KAAK;4BACjC,CAAC,CAAC,EAAE;4BACJ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;wBAC3B,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO;qBAC1B;aACN;YACD,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type { Scope, Plugins, RuleEntry, RuleRecord,
|
1
|
+
export type { Scope, Plugins, RuleEntry, RuleRecord, GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "../index.js";
|
2
2
|
export type { Input } from "./input/index.js";
|
3
3
|
export type { Output } from "./output/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { GlobalConfigSystem, GlobalConfigIgnores } from "./index.js";
|
2
2
|
export type GlobalConfigs = readonly [
|
3
|
-
|
4
|
-
|
3
|
+
GlobalConfigSystem,
|
4
|
+
GlobalConfigIgnores
|
5
5
|
];
|
6
6
|
//# sourceMappingURL=global.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,kBAAkB;IAClB,mBAAmB;CACpB,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type {
|
1
|
+
export type { GlobalConfigSystem, GlobalConfigIgnores, } from "../index.js";
|
2
2
|
import type { GlobalConfigs } from "./global.js";
|
3
3
|
import type { ScopedConfig } from "../index.js";
|
4
4
|
export type Output = [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export type { Plugins, RuleRecord, } from "../index.js";
|
2
2
|
export type { ConfigProperty } from "./property.js";
|
3
|
-
export type { ScopedConfig } from "./scoped.js";
|
4
|
-
export type { GlobalConfigIgnores } from "./global/ignores.js";
|
5
3
|
export type { GlobalConfigSystem } from "./global/system.js";
|
4
|
+
export type { GlobalConfigIgnores } from "./global/ignores.js";
|
5
|
+
export type { ScopedConfig } from "./scoped.js";
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/objects/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export type { Plugins } from "./plugins/index.js";
|
2
2
|
export type { RuleEntry, RuleRecord, RuleState, } from "./rule/index.js";
|
3
|
-
export type {
|
3
|
+
export type { GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "./config/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -4,9 +4,9 @@ export type {
|
|
4
4
|
RuleEntry,
|
5
5
|
RuleRecord,
|
6
6
|
RuleState,
|
7
|
-
ScopedConfig,
|
8
|
-
GlobalConfigIgnores,
|
9
7
|
GlobalConfigSystem,
|
8
|
+
GlobalConfigIgnores,
|
9
|
+
ScopedConfig,
|
10
10
|
} from "./objects";
|
11
11
|
|
12
12
|
import type {
|
@@ -85,17 +85,6 @@ export default function (input: Input): Output {
|
|
85
85
|
};
|
86
86
|
|
87
87
|
return [
|
88
|
-
{
|
89
|
-
name: "linted/global/ignores",
|
90
|
-
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
91
|
-
? globals.ignores.ignores
|
92
|
-
: [
|
93
|
-
...globals.extend.inherit === false
|
94
|
-
? []
|
95
|
-
: globals.ignores.ignores,
|
96
|
-
...globals.extend.ignores,
|
97
|
-
],
|
98
|
-
},
|
99
88
|
{
|
100
89
|
name: "linted/global/settings",
|
101
90
|
plugins,
|
@@ -108,6 +97,17 @@ export default function (input: Input): Output {
|
|
108
97
|
ecmaVersion: settings.ecmaVersion,
|
109
98
|
},
|
110
99
|
},
|
100
|
+
{
|
101
|
+
name: "linted/global/ignores",
|
102
|
+
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
103
|
+
? globals.ignores.ignores
|
104
|
+
: [
|
105
|
+
...globals.extend.inherit === false
|
106
|
+
? []
|
107
|
+
: globals.ignores.ignores,
|
108
|
+
...globals.extend.ignores,
|
109
|
+
],
|
110
|
+
},
|
111
111
|
...scopes.flatMap(scope => options[scope]),
|
112
112
|
];
|
113
113
|
}
|
package/src/interface/index.ts
CHANGED
@@ -3,6 +3,6 @@ export type {
|
|
3
3
|
RuleRecord,
|
4
4
|
} from "..";
|
5
5
|
export type { ConfigProperty } from "./property";
|
6
|
-
export type { ScopedConfig } from "./scoped";
|
7
|
-
export type { GlobalConfigIgnores } from "./global/ignores";
|
8
6
|
export type { GlobalConfigSystem } from "./global/system";
|
7
|
+
export type { GlobalConfigIgnores } from "./global/ignores";
|
8
|
+
export type { ScopedConfig } from "./scoped";
|