@breadstone-infrastructure/eslint-config 0.0.12-beta.8 → 0.0.13
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/Configs/Config.d.ts +74 -0
- package/Configs/Config.d.ts.map +1 -0
- package/Configs/Config.js +156 -0
- package/Configs/Config.js.map +1 -0
- package/Configs/Config2.d.ts +73 -0
- package/Configs/Config2.d.ts.map +1 -0
- package/Configs/Config2.js +101 -0
- package/Configs/Config2.js.map +1 -0
- package/Configs/{Angular.d.ts → Presets/Angular.d.ts} +1 -1
- package/Configs/Presets/Angular.d.ts.map +1 -0
- package/Configs/{Angular.js → Presets/Angular.js} +1 -1
- package/Configs/Presets/Angular.js.map +1 -0
- package/Configs/Presets/Angular2.d.ts +8 -0
- package/Configs/Presets/Angular2.d.ts.map +1 -0
- package/Configs/Presets/Angular2.js +155 -0
- package/Configs/Presets/Angular2.js.map +1 -0
- package/Configs/Presets/Custom.d.ts +4 -0
- package/Configs/Presets/Custom.d.ts.map +1 -0
- package/Configs/Presets/Custom.js.map +1 -0
- package/Configs/{Html.d.ts → Presets/Html.d.ts} +1 -1
- package/Configs/Presets/Html.d.ts.map +1 -0
- package/Configs/Presets/Html.js.map +1 -0
- package/Configs/Presets/Html2.d.ts +56 -0
- package/Configs/Presets/Html2.d.ts.map +1 -0
- package/Configs/Presets/Html2.js +143 -0
- package/Configs/Presets/Html2.js.map +1 -0
- package/Configs/Presets/Import.d.ts +4 -0
- package/Configs/Presets/Import.d.ts.map +1 -0
- package/Configs/{Import.js → Presets/Import.js} +2 -1
- package/Configs/Presets/Import.js.map +1 -0
- package/Configs/Presets/Import2.d.ts +6 -0
- package/Configs/Presets/Import2.d.ts.map +1 -0
- package/Configs/Presets/Import2.js +39 -0
- package/Configs/Presets/Import2.js.map +1 -0
- package/Configs/{Base.d.ts → Presets/Javascript.d.ts} +2 -2
- package/Configs/Presets/Javascript.d.ts.map +1 -0
- package/Configs/{Base.js → Presets/Javascript.js} +2 -2
- package/Configs/Presets/Javascript.js.map +1 -0
- package/Configs/Presets/Javascript2.d.ts +216 -0
- package/Configs/Presets/Javascript2.d.ts.map +1 -0
- package/Configs/Presets/Javascript2.js +505 -0
- package/Configs/Presets/Javascript2.js.map +1 -0
- package/Configs/Presets/Json.d.ts +4 -0
- package/Configs/Presets/Json.d.ts.map +1 -0
- package/Configs/Presets/Json.js.map +1 -0
- package/Configs/Presets/Json2.d.ts +8 -0
- package/Configs/Presets/Json2.d.ts.map +1 -0
- package/Configs/Presets/Json2.js +22 -0
- package/Configs/Presets/Json2.js.map +1 -0
- package/Configs/Presets/Lit.d.ts +4 -0
- package/Configs/Presets/Lit.d.ts.map +1 -0
- package/Configs/{Lit.js → Presets/Lit.js} +1 -1
- package/Configs/Presets/Lit.js.map +1 -0
- package/Configs/Presets/Lit2.d.ts +8 -0
- package/Configs/Presets/Lit2.d.ts.map +1 -0
- package/Configs/Presets/Lit2.js +56 -0
- package/Configs/Presets/Lit2.js.map +1 -0
- package/Configs/Presets/Markdown.d.ts +4 -0
- package/Configs/Presets/Markdown.d.ts.map +1 -0
- package/Configs/Presets/Markdown.js.map +1 -0
- package/Configs/Presets/Markdown2.d.ts +8 -0
- package/Configs/Presets/Markdown2.d.ts.map +1 -0
- package/Configs/Presets/Markdown2.js +18 -0
- package/Configs/Presets/Markdown2.js.map +1 -0
- package/Configs/{Stylistic.d.ts → Presets/Stylistic.d.ts} +1 -1
- package/Configs/Presets/Stylistic.d.ts.map +1 -0
- package/Configs/{Stylistic.js → Presets/Stylistic.js} +1 -1
- package/Configs/Presets/Stylistic.js.map +1 -0
- package/Configs/Presets/Stylistic2.d.ts +73 -0
- package/Configs/Presets/Stylistic2.d.ts.map +1 -0
- package/Configs/Presets/Stylistic2.js +436 -0
- package/Configs/Presets/Stylistic2.js.map +1 -0
- package/Configs/{Typescript.d.ts → Presets/Typescript.d.ts} +17 -2
- package/Configs/Presets/Typescript.d.ts.map +1 -0
- package/Configs/{Typescript.js → Presets/Typescript.js} +27 -3
- package/Configs/Presets/Typescript.js.map +1 -0
- package/Configs/Presets/Typescript2.d.ts +147 -0
- package/Configs/Presets/Typescript2.d.ts.map +1 -0
- package/Configs/Presets/Typescript2.js +546 -0
- package/Configs/Presets/Typescript2.js.map +1 -0
- package/Index.d.ts +2 -71
- package/Index.d.ts.map +1 -1
- package/Index.js +2 -126
- package/Index.js.map +1 -1
- package/package.json +10 -8
- package/Configs/Angular.d.ts.map +0 -1
- package/Configs/Angular.js.map +0 -1
- package/Configs/Base.d.ts.map +0 -1
- package/Configs/Base.js.map +0 -1
- package/Configs/Custom.d.ts +0 -4
- package/Configs/Custom.d.ts.map +0 -1
- package/Configs/Custom.js.map +0 -1
- package/Configs/Html.d.ts.map +0 -1
- package/Configs/Html.js.map +0 -1
- package/Configs/Import.d.ts +0 -4
- package/Configs/Import.d.ts.map +0 -1
- package/Configs/Import.js.map +0 -1
- package/Configs/Json.d.ts +0 -4
- package/Configs/Json.d.ts.map +0 -1
- package/Configs/Json.js.map +0 -1
- package/Configs/Lit.d.ts +0 -4
- package/Configs/Lit.d.ts.map +0 -1
- package/Configs/Lit.js.map +0 -1
- package/Configs/Markdown.d.ts +0 -4
- package/Configs/Markdown.d.ts.map +0 -1
- package/Configs/Markdown.js.map +0 -1
- package/Configs/Stylistic.d.ts.map +0 -1
- package/Configs/Stylistic.js.map +0 -1
- package/Configs/Typescript.d.ts.map +0 -1
- package/Configs/Typescript.js.map +0 -1
- /package/Configs/{Custom.js → Presets/Custom.js} +0 -0
- /package/Configs/{Html.js → Presets/Html.js} +0 -0
- /package/Configs/{Json.js → Presets/Json.js} +0 -0
- /package/Configs/{Markdown.js → Presets/Markdown.js} +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The standalone configurations
|
|
3
|
+
* Its useful when you want to use a specific configuration
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
* @deprecated - Please use standaloneConfigs2 instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare const standaloneConfigs: {
|
|
9
|
+
base: import("../Utils/Config.js").Config;
|
|
10
|
+
typescript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
11
|
+
stylistic: import("../Utils/Config.js").Config;
|
|
12
|
+
lit: import("../Utils/Config.js").Config;
|
|
13
|
+
angular: import("../Utils/Config.js").Config;
|
|
14
|
+
custom: import("../Utils/Config.js").Config;
|
|
15
|
+
json: import("../Utils/Config.js").Config;
|
|
16
|
+
markdown: import("../Utils/Config.js").Config;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The configurations
|
|
20
|
+
* Its useful when you want to use a complete configuration
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
* @deprecated - Please use configs2 instead.
|
|
24
|
+
*/
|
|
25
|
+
export declare const configs: {
|
|
26
|
+
/**
|
|
27
|
+
* The base configurations
|
|
28
|
+
* - Contains all rules of the base configuration
|
|
29
|
+
* - Contains all rules of the typescript configuration
|
|
30
|
+
* - Contains all rules of the stylistic configuration
|
|
31
|
+
* - Contains all rules of the import configuration
|
|
32
|
+
*/
|
|
33
|
+
base: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
34
|
+
/**
|
|
35
|
+
* The lit configurations
|
|
36
|
+
* - Contains all rules of the base configuration
|
|
37
|
+
* - Contains all rules of the typescript configuration
|
|
38
|
+
* - Contains all rules of the stylistic configuration
|
|
39
|
+
* - Contains all rules of the lit configuration
|
|
40
|
+
* - Contains all rules of the import configuration
|
|
41
|
+
* - Contains all rules of the html configuration
|
|
42
|
+
*/
|
|
43
|
+
lit: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
44
|
+
/**
|
|
45
|
+
* The angular configurations
|
|
46
|
+
* - Contains all rules of the base configuration
|
|
47
|
+
* - Contains all rules of the typescript configuration
|
|
48
|
+
* - Contains all rules of the stylistic configuration
|
|
49
|
+
* - Contains all rules of the angular configuration
|
|
50
|
+
* - Contains all rules of the import configuration
|
|
51
|
+
*/
|
|
52
|
+
angular: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
53
|
+
/**
|
|
54
|
+
* The vue configurations
|
|
55
|
+
* - Contains all rules of the base configuration
|
|
56
|
+
* - Contains all rules of the typescript configuration
|
|
57
|
+
* - Contains all rules of the stylistic configuration
|
|
58
|
+
* - Contains all rules of the vue configuration
|
|
59
|
+
* - Contains all rules of the import configuration
|
|
60
|
+
* - Contains all rules of the html configuration
|
|
61
|
+
*/
|
|
62
|
+
vue: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
63
|
+
/**
|
|
64
|
+
* The react configurations
|
|
65
|
+
* - Contains all rules of the base configuration
|
|
66
|
+
* - Contains all rules of the typescript configuration
|
|
67
|
+
* - Contains all rules of the stylistic configuration
|
|
68
|
+
* - Contains all rules of the react configuration
|
|
69
|
+
* - Contains all rules of the import configuration
|
|
70
|
+
* - Contains all rules of the html configuration
|
|
71
|
+
*/
|
|
72
|
+
react: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Configs/Config.ts"],"names":[],"mappings":"AAeA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;CAU7B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;IAEhB;;;;;;OAMG;;IAeH;;;;;;;;OAQG;;IAkBH;;;;;;;OAOG;;IAiBH;;;;;;;;OAQG;;IAiBH;;;;;;;;OAQG;;CAiBN,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import angularConfig from './Presets/Angular.js';
|
|
3
|
+
import baseConfig from './Presets/Javascript.js';
|
|
4
|
+
// import importConfig from './Configs/Import.js';
|
|
5
|
+
import customConfig from './Presets/Custom.js';
|
|
6
|
+
import litConfig from './Presets/Lit.js';
|
|
7
|
+
import stylisticConfig from './Presets/Stylistic.js';
|
|
8
|
+
import typescriptConfig from './Presets/Typescript.js';
|
|
9
|
+
// import htmlConfig from './Configs/Html.js';
|
|
10
|
+
import jsonConfig from './Presets/Json.js';
|
|
11
|
+
import markdown from './Presets/Markdown.js';
|
|
12
|
+
// #endregion
|
|
13
|
+
/**
|
|
14
|
+
* The standalone configurations
|
|
15
|
+
* Its useful when you want to use a specific configuration
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
* @deprecated - Please use standaloneConfigs2 instead.
|
|
19
|
+
*/
|
|
20
|
+
export const standaloneConfigs = {
|
|
21
|
+
base: baseConfig,
|
|
22
|
+
typescript: typescriptConfig,
|
|
23
|
+
stylistic: stylisticConfig,
|
|
24
|
+
lit: litConfig,
|
|
25
|
+
angular: angularConfig,
|
|
26
|
+
custom: customConfig,
|
|
27
|
+
// html: htmlConfig,
|
|
28
|
+
json: jsonConfig,
|
|
29
|
+
markdown: markdown
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The configurations
|
|
33
|
+
* Its useful when you want to use a complete configuration
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
* @deprecated - Please use configs2 instead.
|
|
37
|
+
*/
|
|
38
|
+
export const configs = {
|
|
39
|
+
/**
|
|
40
|
+
* The base configurations
|
|
41
|
+
* - Contains all rules of the base configuration
|
|
42
|
+
* - Contains all rules of the typescript configuration
|
|
43
|
+
* - Contains all rules of the stylistic configuration
|
|
44
|
+
* - Contains all rules of the import configuration
|
|
45
|
+
*/
|
|
46
|
+
base: [
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
48
|
+
...standaloneConfigs.base,
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
50
|
+
...standaloneConfigs.typescript,
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
52
|
+
...standaloneConfigs.stylistic,
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
54
|
+
...standaloneConfigs.json,
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
56
|
+
...standaloneConfigs.markdown
|
|
57
|
+
// ...importConfig
|
|
58
|
+
],
|
|
59
|
+
/**
|
|
60
|
+
* The lit configurations
|
|
61
|
+
* - Contains all rules of the base configuration
|
|
62
|
+
* - Contains all rules of the typescript configuration
|
|
63
|
+
* - Contains all rules of the stylistic configuration
|
|
64
|
+
* - Contains all rules of the lit configuration
|
|
65
|
+
* - Contains all rules of the import configuration
|
|
66
|
+
* - Contains all rules of the html configuration
|
|
67
|
+
*/
|
|
68
|
+
lit: [
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
70
|
+
...standaloneConfigs.base,
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
72
|
+
...standaloneConfigs.typescript,
|
|
73
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
74
|
+
...standaloneConfigs.stylistic,
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
76
|
+
...standaloneConfigs.lit,
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
78
|
+
...standaloneConfigs.json,
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
80
|
+
...standaloneConfigs.markdown
|
|
81
|
+
// ...standaloneConfigs.html
|
|
82
|
+
// ...importConfig
|
|
83
|
+
],
|
|
84
|
+
/**
|
|
85
|
+
* The angular configurations
|
|
86
|
+
* - Contains all rules of the base configuration
|
|
87
|
+
* - Contains all rules of the typescript configuration
|
|
88
|
+
* - Contains all rules of the stylistic configuration
|
|
89
|
+
* - Contains all rules of the angular configuration
|
|
90
|
+
* - Contains all rules of the import configuration
|
|
91
|
+
*/
|
|
92
|
+
angular: [
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
94
|
+
...standaloneConfigs.base,
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
96
|
+
...standaloneConfigs.typescript,
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
98
|
+
...standaloneConfigs.stylistic,
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
100
|
+
...standaloneConfigs.angular,
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
102
|
+
...standaloneConfigs.json,
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
104
|
+
...standaloneConfigs.markdown
|
|
105
|
+
// ...importConfig
|
|
106
|
+
],
|
|
107
|
+
/**
|
|
108
|
+
* The vue configurations
|
|
109
|
+
* - Contains all rules of the base configuration
|
|
110
|
+
* - Contains all rules of the typescript configuration
|
|
111
|
+
* - Contains all rules of the stylistic configuration
|
|
112
|
+
* - Contains all rules of the vue configuration
|
|
113
|
+
* - Contains all rules of the import configuration
|
|
114
|
+
* - Contains all rules of the html configuration
|
|
115
|
+
*/
|
|
116
|
+
vue: [
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
118
|
+
...standaloneConfigs.base,
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
120
|
+
...standaloneConfigs.typescript,
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
122
|
+
...standaloneConfigs.stylistic,
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
124
|
+
...standaloneConfigs.json,
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
126
|
+
...standaloneConfigs.markdown
|
|
127
|
+
// ...standaloneConfigs.html
|
|
128
|
+
// ...importConfig
|
|
129
|
+
// todo: vue rules are missing here
|
|
130
|
+
],
|
|
131
|
+
/**
|
|
132
|
+
* The react configurations
|
|
133
|
+
* - Contains all rules of the base configuration
|
|
134
|
+
* - Contains all rules of the typescript configuration
|
|
135
|
+
* - Contains all rules of the stylistic configuration
|
|
136
|
+
* - Contains all rules of the react configuration
|
|
137
|
+
* - Contains all rules of the import configuration
|
|
138
|
+
* - Contains all rules of the html configuration
|
|
139
|
+
*/
|
|
140
|
+
react: [
|
|
141
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
142
|
+
...standaloneConfigs.base,
|
|
143
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
144
|
+
...standaloneConfigs.typescript,
|
|
145
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
146
|
+
...standaloneConfigs.stylistic,
|
|
147
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
148
|
+
...standaloneConfigs.json,
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
150
|
+
...standaloneConfigs.markdown
|
|
151
|
+
// ...standaloneConfigs.html
|
|
152
|
+
// ...importConfig
|
|
153
|
+
// todo: react rules are missing here
|
|
154
|
+
]
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=Config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.js","sourceRoot":"","sources":["../../src/Configs/Config.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,kDAAkD;AAClD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD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4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,UAAU;QAC/B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,SAAS;QAC9B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,OAAO;QAC5B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,IAAI;QACzB,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,QAAQ;QAC7B,kBAAkB;KACrB;IAED;;;;;;;;OAQG;IACH,GAAG,EAAE;QACD,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,IAAI;QACzB,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,UAAU;QAC/B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,SAAS;QAC9B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,IAAI;QACzB,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,QAAQ;QAC7B,4BAA4B;QAC5B,kBAAkB;QAClB,mCAAmC;KACtC;IAED;;;;;;;;OAQG;IACH,KAAK,EAAE;QACH,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,IAAI;QACzB,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,UAAU;QAC/B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,SAAS;QAC9B,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,IAAI;QACzB,4DAA4D;QAC5D,GAAG,iBAAiB,CAAC,QAAQ;QAC7B,4BAA4B;QAC5B,kBAAkB;QAClB,qCAAqC;KAExC;CACJ,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The standalone configurations
|
|
3
|
+
* Its useful when you want to use a specific configuration
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const standaloneConfigs2: {
|
|
8
|
+
readonly javascript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
9
|
+
readonly markdown: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
10
|
+
readonly json: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
11
|
+
readonly stylistic: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
12
|
+
readonly typescript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
13
|
+
readonly lit: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
14
|
+
readonly angular: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The configurations
|
|
18
|
+
* Its useful when you want to use a complete configuration
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export declare const configs2: {
|
|
23
|
+
/**
|
|
24
|
+
* The base configurations
|
|
25
|
+
* - Contains all rules of the javascript configuration
|
|
26
|
+
* - Contains all rules of the typescript configuration
|
|
27
|
+
* - Contains all rules of the stylistic configuration
|
|
28
|
+
* - Contains all rules of the json configuration
|
|
29
|
+
* - Contains all rules of the markdown configuration
|
|
30
|
+
*/
|
|
31
|
+
base: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
32
|
+
/**
|
|
33
|
+
* The base configurations
|
|
34
|
+
* - Contains all rules of the javascript configuration
|
|
35
|
+
* - Contains all rules of the typescript configuration
|
|
36
|
+
* - Contains all rules of the stylistic configuration
|
|
37
|
+
* - Contains all rules of the json configuration
|
|
38
|
+
* - Contains all rules of the markdown configuration
|
|
39
|
+
* - Contains all rules of the lit configuration
|
|
40
|
+
*/
|
|
41
|
+
lit: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
42
|
+
/**
|
|
43
|
+
* The angular configurations
|
|
44
|
+
* - Contains all rules of the javascript configuration
|
|
45
|
+
* - Contains all rules of the typescript configuration
|
|
46
|
+
* - Contains all rules of the stylistic configuration
|
|
47
|
+
* - Contains all rules of the json configuration
|
|
48
|
+
* - Contains all rules of the markdown configuration
|
|
49
|
+
* - Contains all rules of the angular configuration
|
|
50
|
+
*/
|
|
51
|
+
angular: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
52
|
+
/**
|
|
53
|
+
* The vue configurations
|
|
54
|
+
* - Contains all rules of the javascript configuration
|
|
55
|
+
* - Contains all rules of the typescript configuration
|
|
56
|
+
* - Contains all rules of the stylistic configuration
|
|
57
|
+
* - Contains all rules of the json configuration
|
|
58
|
+
* - Contains all rules of the markdown configuration
|
|
59
|
+
* - Contains all rules of the vue configuration
|
|
60
|
+
*/
|
|
61
|
+
vue: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
62
|
+
/**
|
|
63
|
+
* The react configurations
|
|
64
|
+
* - Contains all rules of the javascript configuration
|
|
65
|
+
* - Contains all rules of the typescript configuration
|
|
66
|
+
* - Contains all rules of the stylistic configuration
|
|
67
|
+
* - Contains all rules of the json configuration
|
|
68
|
+
* - Contains all rules of the markdown configuration
|
|
69
|
+
* - Contains all rules of the react configuration
|
|
70
|
+
*/
|
|
71
|
+
react: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=Config2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config2.d.ts","sourceRoot":"","sources":["../../src/Configs/Config2.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;CAUrB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IAEjB;;;;;;;OAOG;;IAUH;;;;;;;;OAQG;;IAWH;;;;;;;;OAQG;;IAWH;;;;;;;;OAQG;;IAWH;;;;;;;;OAQG;;CAWN,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import javascriptConfig from './Presets/Javascript2.js';
|
|
3
|
+
import markdownConfig from './Presets/Markdown2.js';
|
|
4
|
+
import stylisticConfig from './Presets/Stylistic2.js';
|
|
5
|
+
import typescriptConfig from './Presets/Typescript2.js';
|
|
6
|
+
import litConfig from './Presets/Lit2.js';
|
|
7
|
+
import jsonConfig from './Presets/Json2.js';
|
|
8
|
+
import angularConfig from './Presets/Angular2.js';
|
|
9
|
+
// import importConfig from './Presets/Import2.js';
|
|
10
|
+
// import htmlConfig from './Presets/Html2.js';
|
|
11
|
+
import tseslint from 'typescript-eslint';
|
|
12
|
+
// #endregion
|
|
13
|
+
/**
|
|
14
|
+
* The standalone configurations
|
|
15
|
+
* Its useful when you want to use a specific configuration
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export const standaloneConfigs2 = {
|
|
20
|
+
javascript: javascriptConfig,
|
|
21
|
+
markdown: markdownConfig,
|
|
22
|
+
json: jsonConfig,
|
|
23
|
+
stylistic: stylisticConfig,
|
|
24
|
+
typescript: typescriptConfig,
|
|
25
|
+
lit: litConfig,
|
|
26
|
+
angular: angularConfig
|
|
27
|
+
// import: importConfig
|
|
28
|
+
// html: htmlConfig
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The configurations
|
|
32
|
+
* Its useful when you want to use a complete configuration
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export const configs2 = {
|
|
37
|
+
/**
|
|
38
|
+
* The base configurations
|
|
39
|
+
* - Contains all rules of the javascript configuration
|
|
40
|
+
* - Contains all rules of the typescript configuration
|
|
41
|
+
* - Contains all rules of the stylistic configuration
|
|
42
|
+
* - Contains all rules of the json configuration
|
|
43
|
+
* - Contains all rules of the markdown configuration
|
|
44
|
+
*/
|
|
45
|
+
base: tseslint.config(standaloneConfigs2.javascript, standaloneConfigs2.typescript, standaloneConfigs2.stylistic,
|
|
46
|
+
// standaloneConfigs2.import,
|
|
47
|
+
standaloneConfigs2.json, standaloneConfigs2.markdown),
|
|
48
|
+
/**
|
|
49
|
+
* The base configurations
|
|
50
|
+
* - Contains all rules of the javascript configuration
|
|
51
|
+
* - Contains all rules of the typescript configuration
|
|
52
|
+
* - Contains all rules of the stylistic configuration
|
|
53
|
+
* - Contains all rules of the json configuration
|
|
54
|
+
* - Contains all rules of the markdown configuration
|
|
55
|
+
* - Contains all rules of the lit configuration
|
|
56
|
+
*/
|
|
57
|
+
lit: tseslint.config(standaloneConfigs2.javascript, standaloneConfigs2.typescript, standaloneConfigs2.stylistic,
|
|
58
|
+
// standaloneConfigs2.import,
|
|
59
|
+
standaloneConfigs2.json, standaloneConfigs2.markdown, standaloneConfigs2.lit),
|
|
60
|
+
/**
|
|
61
|
+
* The angular configurations
|
|
62
|
+
* - Contains all rules of the javascript configuration
|
|
63
|
+
* - Contains all rules of the typescript configuration
|
|
64
|
+
* - Contains all rules of the stylistic configuration
|
|
65
|
+
* - Contains all rules of the json configuration
|
|
66
|
+
* - Contains all rules of the markdown configuration
|
|
67
|
+
* - Contains all rules of the angular configuration
|
|
68
|
+
*/
|
|
69
|
+
angular: tseslint.config(standaloneConfigs2.javascript, standaloneConfigs2.typescript, standaloneConfigs2.stylistic,
|
|
70
|
+
// standaloneConfigs2.import,
|
|
71
|
+
standaloneConfigs2.json, standaloneConfigs2.markdown, standaloneConfigs2.angular),
|
|
72
|
+
/**
|
|
73
|
+
* The vue configurations
|
|
74
|
+
* - Contains all rules of the javascript configuration
|
|
75
|
+
* - Contains all rules of the typescript configuration
|
|
76
|
+
* - Contains all rules of the stylistic configuration
|
|
77
|
+
* - Contains all rules of the json configuration
|
|
78
|
+
* - Contains all rules of the markdown configuration
|
|
79
|
+
* - Contains all rules of the vue configuration
|
|
80
|
+
*/
|
|
81
|
+
vue: tseslint.config(standaloneConfigs2.javascript, standaloneConfigs2.typescript, standaloneConfigs2.stylistic,
|
|
82
|
+
// standaloneConfigs2.import,
|
|
83
|
+
standaloneConfigs2.json, standaloneConfigs2.markdown
|
|
84
|
+
// todo: vue rules are missing here
|
|
85
|
+
),
|
|
86
|
+
/**
|
|
87
|
+
* The react configurations
|
|
88
|
+
* - Contains all rules of the javascript configuration
|
|
89
|
+
* - Contains all rules of the typescript configuration
|
|
90
|
+
* - Contains all rules of the stylistic configuration
|
|
91
|
+
* - Contains all rules of the json configuration
|
|
92
|
+
* - Contains all rules of the markdown configuration
|
|
93
|
+
* - Contains all rules of the react configuration
|
|
94
|
+
*/
|
|
95
|
+
react: tseslint.config(standaloneConfigs2.javascript, standaloneConfigs2.typescript, standaloneConfigs2.stylistic,
|
|
96
|
+
// standaloneConfigs2.import,
|
|
97
|
+
standaloneConfigs2.json, standaloneConfigs2.markdown
|
|
98
|
+
// todo: react rules are missing here
|
|
99
|
+
)
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=Config2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config2.js","sourceRoot":"","sources":["../../src/Configs/Config2.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,UAAU,MAAM,oBAAoB,CAAC;AAC5C,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,mDAAmD;AACnD,+CAA+C;AAC/C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAEzC,aAAa;AAEb;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,GAAG,EAAE,SAAS;IACd,OAAO,EAAE,aAAa;IACtB,uBAAuB;IACvB,mBAAmB;CACb,CAAC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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Angular.d.ts","sourceRoot":"","sources":["../../../src/Configs/Presets/Angular.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIpD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC;;;;GAIG;wBA6IE,MAAM;AA5IX,wBA4IY"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// #region Imports
|
|
2
2
|
import angularPlugin from '@angular-eslint/eslint-plugin';
|
|
3
3
|
import angularTemplatePlugin from '@angular-eslint/eslint-plugin-template';
|
|
4
|
-
import { Level } from '
|
|
4
|
+
import { Level } from '../../Utils/Level.js';
|
|
5
5
|
// #endregion
|
|
6
6
|
/**
|
|
7
7
|
* The version of this configuration.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Angular.js","sourceRoot":"","sources":["../../../src/Configs/Presets/Angular.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,aAAa;AAEb;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC;;;;GAIG;AACH,eAAe;IACX,0CAA0C;IAC1C,4FAA4F;IAC5F,aAAa,CAAC,OAAO,CAAC,GAAG;IACzB,qBAAqB,CAAC,OAAO,CAAC,GAAG;IACjC,+CAA+C;IAC/C,qIAAqI;IACrI,gFAAgF;IAChF;QACI,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE;YACN,OAAO,EAAE,OAAO;SACnB;QACD,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,KAAK,EAAE;YACH,iDAAiD,EAAE,OAAO;YAC1D,yDAAyD,EAAE,OAAO;YAClE,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@@
|
|
|
1
|
+
{"version":3,"file":"Angular2.d.ts","sourceRoot":"","sources":["../../../src/Configs/Presets/Angular2.ts"],"names":[],"mappings":"AASA;;;;GAIG;;AACH,wBAgJE"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
// #region Imports
|
|
2
|
+
import { Level } from '../../Utils/Level.js';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
import angulareslint from 'angular-eslint';
|
|
6
|
+
// #endregion
|
|
7
|
+
/**
|
|
8
|
+
* The configuration
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export default tseslint.config(
|
|
13
|
+
// For upgrade reasons, we use always all.
|
|
14
|
+
// This has the advantage that when we upgrade the plugin we always use the latest rule set.
|
|
15
|
+
angulareslint.configs.templateAll, angulareslint.configs.tsAll,
|
|
16
|
+
// Now we override all rules that we are known.
|
|
17
|
+
// If here are missing rules, it means that the rule is not known to us or at this time when we wrote this code it was not available.
|
|
18
|
+
// If we change anything here, we should also inform the team about the changes.
|
|
19
|
+
{
|
|
20
|
+
name: 'mosaik-angular',
|
|
21
|
+
files: ['**/*.html'],
|
|
22
|
+
languageOptions: {
|
|
23
|
+
globals: {
|
|
24
|
+
...globals.browser,
|
|
25
|
+
...globals.es2015,
|
|
26
|
+
...globals.node
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
rules: {
|
|
30
|
+
'@angular-eslint/template-accessibility-alt-text': 'error',
|
|
31
|
+
'@angular-eslint/template-accessibility-elements-content': 'error',
|
|
32
|
+
'@angular-eslint/template-accessibility-label-for': 'error',
|
|
33
|
+
'@angular-eslint/template-accessibility-tabindex-no-positive': 'error',
|
|
34
|
+
'@angular-eslint/template-accessibility-table-scope': 'error',
|
|
35
|
+
'@angular-eslint/template-accessibility-valid-aria': 'error',
|
|
36
|
+
'@angular-eslint/template-click-events-have-key-events': 'error',
|
|
37
|
+
'@angular-eslint/template-mouse-events-have-key-events': 'error',
|
|
38
|
+
'@angular-eslint/template-no-any': 'error',
|
|
39
|
+
'@angular-eslint/template-no-autofocus': 'error',
|
|
40
|
+
'@angular-eslint/template-no-distracting-elements': 'error',
|
|
41
|
+
'@angular-eslint/template-no-negated-async': 'error',
|
|
42
|
+
'@angular-eslint/template-no-call-expression': 'error',
|
|
43
|
+
'@angular-eslint/template-conditional-complexity': [
|
|
44
|
+
'warn',
|
|
45
|
+
4
|
|
46
|
+
],
|
|
47
|
+
'@angular-eslint/template-i18n': 'off',
|
|
48
|
+
'@angular-eslint/template-use-track-by-function': 'error',
|
|
49
|
+
'@angular-eslint/banana-in-box': 'error',
|
|
50
|
+
'@angular-eslint/no-unused-css': 'error',
|
|
51
|
+
'@angular-eslint/template-cyclomatic-complexity': [
|
|
52
|
+
'warn',
|
|
53
|
+
20
|
|
54
|
+
],
|
|
55
|
+
'@angular-eslint/contextual-decorator': Level.Warn,
|
|
56
|
+
'@angular-eslint/contextual-lifecycle': Level.Error,
|
|
57
|
+
'@angular-eslint/no-attribute-decorator': Level.Off,
|
|
58
|
+
'@angular-eslint/no-lifecycle-call': Level.Error,
|
|
59
|
+
'@angular-eslint/no-output-native': Level.Error,
|
|
60
|
+
'@angular-eslint/no-pipe-impure': Level.Off,
|
|
61
|
+
'@angular-eslint/prefer-on-push-component-change-detection': Level.Warn,
|
|
62
|
+
'@angular-eslint/use-injectable-provided-in': Level.Off,
|
|
63
|
+
'@angular-eslint/use-lifecycle-interface': Level.Error,
|
|
64
|
+
'@angular-eslint/component-max-inline-declarations': [
|
|
65
|
+
Level.Error,
|
|
66
|
+
{
|
|
67
|
+
animations: 20,
|
|
68
|
+
styles: 8,
|
|
69
|
+
template: 8
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
'@angular-eslint/no-conflicting-lifecycle': Level.Error,
|
|
73
|
+
'@angular-eslint/no-forward-ref': Level.Off,
|
|
74
|
+
'@angular-eslint/no-input-prefix': [
|
|
75
|
+
Level.Error,
|
|
76
|
+
{
|
|
77
|
+
prefixes: [
|
|
78
|
+
'can',
|
|
79
|
+
'should'
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
'@angular-eslint/no-input-rename': Level.Off,
|
|
84
|
+
'@angular-eslint/no-output-on-prefix': Level.Error,
|
|
85
|
+
'@angular-eslint/no-output-rename': Level.Off,
|
|
86
|
+
'@angular-eslint/prefer-output-readonly': Level.Error,
|
|
87
|
+
'@angular-eslint/relative-url-prefix': Level.Error,
|
|
88
|
+
'@angular-eslint/use-component-selector': Level.Error,
|
|
89
|
+
'@angular-eslint/use-component-view-encapsulation': Level.Off,
|
|
90
|
+
'@angular-eslint/use-pipe-transform-interface': Level.Error,
|
|
91
|
+
'@angular-eslint/component-class-suffix': [
|
|
92
|
+
Level.Error,
|
|
93
|
+
{
|
|
94
|
+
suffixes: [
|
|
95
|
+
'Component',
|
|
96
|
+
'View',
|
|
97
|
+
'Template'
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
'@angular-eslint/component-selector': [
|
|
102
|
+
Level.Warn,
|
|
103
|
+
{
|
|
104
|
+
type: [
|
|
105
|
+
'element',
|
|
106
|
+
'attribute'
|
|
107
|
+
],
|
|
108
|
+
prefix: [
|
|
109
|
+
'ng',
|
|
110
|
+
'ngx',
|
|
111
|
+
'labs',
|
|
112
|
+
'cdk',
|
|
113
|
+
'app'
|
|
114
|
+
],
|
|
115
|
+
style: 'kebab-case'
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
'@angular-eslint/directive-class-suffix': [
|
|
119
|
+
Level.Error,
|
|
120
|
+
{
|
|
121
|
+
suffixes: [
|
|
122
|
+
'Directive',
|
|
123
|
+
'Component',
|
|
124
|
+
'View',
|
|
125
|
+
'Template',
|
|
126
|
+
'Base'
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
'@angular-eslint/directive-selector': [
|
|
131
|
+
Level.Warn,
|
|
132
|
+
{
|
|
133
|
+
type: [
|
|
134
|
+
'element',
|
|
135
|
+
'attribute'
|
|
136
|
+
],
|
|
137
|
+
prefix: [
|
|
138
|
+
'ngx',
|
|
139
|
+
'labs',
|
|
140
|
+
'ui',
|
|
141
|
+
'uix',
|
|
142
|
+
'bs',
|
|
143
|
+
'kit'
|
|
144
|
+
],
|
|
145
|
+
style: 'camelCase'
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
'@angular-eslint/no-host-metadata-property': Level.Off,
|
|
149
|
+
'@angular-eslint/no-inputs-metadata-property': Level.Error,
|
|
150
|
+
'@angular-eslint/no-outputs-metadata-property': Level.Error,
|
|
151
|
+
'@angular-eslint/no-queries-metadata-property': Level.Error,
|
|
152
|
+
'@angular-eslint/pipe-prefix': Level.Error
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
//# sourceMappingURL=Angular2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Angular2.js","sourceRoot":"","sources":["../../../src/Configs/Presets/Angular2.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAE3C,aAAa;AAEb;;;;GAIG;AACH,eAAe,QAAQ,CAAC,MAAM;AAC1B,0CAA0C;AAC1C,4FAA4F;AAC5F,aAAa,CAAC,OAAO,CAAC,WAAW,EACjC,aAAa,CAAC,OAAO,CAAC,KAAK;AAC3B,+CAA+C;AAC/C,qIAAqI;AACrI,gFAAgF;AAChF;IACI,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,CAAC,WAAW,CAAC;IACpB,eAAe,EAAE;QACb,OAAO,EAAE;YACL,GAAG,OAAO,CAAC,OAAO;YAClB,GAAG,OAAO,CAAC,MAAM;YACjB,G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QAC3D,6BAA6B,EAAE,KAAK,CAAC,KAAK;KAC7C;CACJ,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Custom.d.ts","sourceRoot":"","sources":["../../../src/Configs/Presets/Custom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;wBA0F/C,MAAM;AA5EX,wBA4EY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Custom.js","sourceRoot":"","sources":["../../../src/Configs/Presets/Custom.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAGlB,mCAAmC;AACnC,+EAA+E;AAC/E,2EAA2E;AAC3E,iFAAiF;AACjF,2FAA2F;AAC3F,qFAAqF;AACrF,yEAAyE;AACzE,+EAA+E;AAC/E,qEAAqE;AACrE,6CAA6C;AAE7C,aAAa;AAEb,eAAe;AACX,IAAI;AACJ,sBAAsB;AACtB,iBAAiB;AACjB,oBAAoB;AACpB,uBAAuB;AACvB,4DAA4D;AAC5D,kEAAkE;AAClE,uDAAuD;AACvD,gBAAgB;AAChB,YAAY;AACZ,SAAS;AACT,eAAe;AACf,wCAAwC;AACxC,0BAA0B;AAC1B,gBAAgB;AAChB,4BAA4B;AAC5B,8CAA8C;AAC9C,oBAAoB;AACpB,gBAAgB;AAChB,aAAa;AACb,2CAA2C;AAC3C,0BAA0B;AAC1B,gBAAgB;AAChB,4BAA4B;AAC5B,8CAA8C;AAC9C,oBAAoB;AACpB,gBAAgB;AAChB,aAAa;AACb,8CAA8C;AAC9C,QAAQ;AACR,KAAK;AACL,IAAI;AACJ,0CAA0C;AAC1C,4BAA4B;AAC5B,iBAAiB;AACjB,oBAAoB;AACpB,uBAAuB;AACvB,gEAAgE;AAChE,4DAA4D;AAC5D,kEAAkE;AAClE,4EAA4E;AAC5E,sEAAsE;AACtE,gBAAgB;AAChB,YAAY;AACZ,SAAS;AACT,eAAe;AACf,wDAAwD;AACxD,sDAAsD;AACtD,yDAAyD;AACzD,8DAA8D;AAC9D,2DAA2D;AAC3D,QAAQ;AACR,KAAK;AACL,IAAI;AACJ,0CAA0C;AAC1C,4BAA4B;AAC5B,iBAAiB;AACjB,oBAAoB;AACpB,uBAAuB;AACvB,gEAAgE;AAChE,4DAA4D;AAC5D,kEAAkE;AAClE,4EAA4E;AAC5E,sEAAsE;AACtE,gBAAgB;AAChB,YAAY;AACZ,SAAS;AACT,eAAe;AACf,wDAAwD;AACxD,sDAAsD;AACtD,yDAAyD;AACzD,8DAA8D;AAC9D,2DAA2D;AAC3D,QAAQ;AACR,IAAI;CACG,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Config } from '
|
|
1
|
+
import type { Config } from '../../Utils/Config.js';
|
|
2
2
|
/**
|
|
3
3
|
* | Name | Description | URL |
|
|
4
4
|
* |------------------------------------|------------------------------------------------------------------------------------------|----------------------------------------------------------------------|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Html.d.ts","sourceRoot":"","sources":["../../../src/Configs/Presets/Html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;wBA+EE,MAAM;AA9EX,wBA8EY"}
|