@alextheman/eslint-plugin 5.13.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +131 -61
- package/dist/index.js +116 -46
- package/dist/internal/index.cjs +130 -3
- package/dist/internal/index.d.cts +85 -74
- package/dist/internal/index.d.ts +85 -74
- package/dist/internal/index.js +126 -3
- package/dist/utility/index.cjs +3 -2
- package/dist/utility/index.js +2 -1
- package/package.json +17 -17
package/dist/internal/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -23,8 +23,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
//#endregion
|
|
25
25
|
let typescript_eslint = require("typescript-eslint");
|
|
26
|
-
typescript_eslint = __toESM(typescript_eslint);
|
|
27
|
-
|
|
26
|
+
typescript_eslint = __toESM(typescript_eslint, 1);
|
|
27
|
+
let _alextheman_utility = require("@alextheman/utility");
|
|
28
|
+
//#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
|
|
28
29
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
30
|
module.exports = {
|
|
30
31
|
"amd": {
|
|
@@ -130,6 +131,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
130
131
|
"AudioNode": false,
|
|
131
132
|
"AudioParam": false,
|
|
132
133
|
"AudioParamMap": false,
|
|
134
|
+
"AudioPlaybackStats": false,
|
|
133
135
|
"AudioProcessingEvent": false,
|
|
134
136
|
"AudioScheduledSourceNode": false,
|
|
135
137
|
"AudioSinkInfo": false,
|
|
@@ -921,6 +923,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
921
923
|
"RTCSessionDescription": false,
|
|
922
924
|
"RTCStatsReport": false,
|
|
923
925
|
"RTCTrackEvent": false,
|
|
926
|
+
"Sanitizer": false,
|
|
924
927
|
"scheduler": false,
|
|
925
928
|
"Scheduler": false,
|
|
926
929
|
"Scheduling": false,
|
|
@@ -1122,6 +1125,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1122
1125
|
"TextTrackList": false,
|
|
1123
1126
|
"TextUpdateEvent": false,
|
|
1124
1127
|
"TimeEvent": false,
|
|
1128
|
+
"TimelineTrigger": false,
|
|
1129
|
+
"TimelineTriggerRange": false,
|
|
1130
|
+
"TimelineTriggerRangeList": false,
|
|
1125
1131
|
"TimeRanges": false,
|
|
1126
1132
|
"ToggleEvent": false,
|
|
1127
1133
|
"toolbar": false,
|
|
@@ -1567,6 +1573,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1567
1573
|
"PromiseRejectionEvent": false,
|
|
1568
1574
|
"prompt": false,
|
|
1569
1575
|
"queueMicrotask": false,
|
|
1576
|
+
"QuotaExceededError": false,
|
|
1570
1577
|
"ReadableByteStreamController": false,
|
|
1571
1578
|
"ReadableStream": false,
|
|
1572
1579
|
"ReadableStreamBYOBReader": false,
|
|
@@ -2357,6 +2364,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2357
2364
|
"WeakRef": false,
|
|
2358
2365
|
"WeakSet": false
|
|
2359
2366
|
},
|
|
2367
|
+
"es2027": {
|
|
2368
|
+
"AggregateError": false,
|
|
2369
|
+
"Array": false,
|
|
2370
|
+
"ArrayBuffer": false,
|
|
2371
|
+
"Atomics": false,
|
|
2372
|
+
"BigInt": false,
|
|
2373
|
+
"BigInt64Array": false,
|
|
2374
|
+
"BigUint64Array": false,
|
|
2375
|
+
"Boolean": false,
|
|
2376
|
+
"DataView": false,
|
|
2377
|
+
"Date": false,
|
|
2378
|
+
"decodeURI": false,
|
|
2379
|
+
"decodeURIComponent": false,
|
|
2380
|
+
"encodeURI": false,
|
|
2381
|
+
"encodeURIComponent": false,
|
|
2382
|
+
"Error": false,
|
|
2383
|
+
"escape": false,
|
|
2384
|
+
"eval": false,
|
|
2385
|
+
"EvalError": false,
|
|
2386
|
+
"FinalizationRegistry": false,
|
|
2387
|
+
"Float16Array": false,
|
|
2388
|
+
"Float32Array": false,
|
|
2389
|
+
"Float64Array": false,
|
|
2390
|
+
"Function": false,
|
|
2391
|
+
"globalThis": false,
|
|
2392
|
+
"Infinity": false,
|
|
2393
|
+
"Int16Array": false,
|
|
2394
|
+
"Int32Array": false,
|
|
2395
|
+
"Int8Array": false,
|
|
2396
|
+
"Intl": false,
|
|
2397
|
+
"isFinite": false,
|
|
2398
|
+
"isNaN": false,
|
|
2399
|
+
"Iterator": false,
|
|
2400
|
+
"JSON": false,
|
|
2401
|
+
"Map": false,
|
|
2402
|
+
"Math": false,
|
|
2403
|
+
"NaN": false,
|
|
2404
|
+
"Number": false,
|
|
2405
|
+
"Object": false,
|
|
2406
|
+
"parseFloat": false,
|
|
2407
|
+
"parseInt": false,
|
|
2408
|
+
"Promise": false,
|
|
2409
|
+
"Proxy": false,
|
|
2410
|
+
"RangeError": false,
|
|
2411
|
+
"ReferenceError": false,
|
|
2412
|
+
"Reflect": false,
|
|
2413
|
+
"RegExp": false,
|
|
2414
|
+
"Set": false,
|
|
2415
|
+
"SharedArrayBuffer": false,
|
|
2416
|
+
"String": false,
|
|
2417
|
+
"Symbol": false,
|
|
2418
|
+
"SyntaxError": false,
|
|
2419
|
+
"TypeError": false,
|
|
2420
|
+
"Uint16Array": false,
|
|
2421
|
+
"Uint32Array": false,
|
|
2422
|
+
"Uint8Array": false,
|
|
2423
|
+
"Uint8ClampedArray": false,
|
|
2424
|
+
"undefined": false,
|
|
2425
|
+
"unescape": false,
|
|
2426
|
+
"URIError": false,
|
|
2427
|
+
"WeakMap": false,
|
|
2428
|
+
"WeakRef": false,
|
|
2429
|
+
"WeakSet": false
|
|
2430
|
+
},
|
|
2360
2431
|
"es3": {
|
|
2361
2432
|
"Array": false,
|
|
2362
2433
|
"Boolean": false,
|
|
@@ -4074,6 +4145,58 @@ const unusedVarsIgnorePatterns = {
|
|
|
4074
4145
|
varsIgnorePattern: "^_"
|
|
4075
4146
|
};
|
|
4076
4147
|
//#endregion
|
|
4148
|
+
//#region src/configs/helpers/restrictedImports/generalRestrictedImports.ts
|
|
4149
|
+
const generalRestrictedImports = { patterns: [{
|
|
4150
|
+
group: ["node_modules"],
|
|
4151
|
+
message: "Do not import directly from node_modules."
|
|
4152
|
+
}] };
|
|
4153
|
+
//#endregion
|
|
4154
|
+
//#region src/utility/public/combineRestrictedImports.ts
|
|
4155
|
+
/**
|
|
4156
|
+
* Combines multiple option groups for the native ESLint `no-restricted-imports` rule, without overwriting previous configurations.
|
|
4157
|
+
*
|
|
4158
|
+
* @category Utility
|
|
4159
|
+
*
|
|
4160
|
+
* @param groups - Option groups to combine, applied in the order provided.
|
|
4161
|
+
*
|
|
4162
|
+
* @returns A new object combining all paths and patterns from the given groups, suitable as an option to pass to `no-restricted-imports`.
|
|
4163
|
+
*/
|
|
4164
|
+
function combineRestrictedImports(...groups) {
|
|
4165
|
+
const paths = [];
|
|
4166
|
+
const patterns = [];
|
|
4167
|
+
for (const group of groups) {
|
|
4168
|
+
if (group.paths) paths.push(...group.paths);
|
|
4169
|
+
if (group.patterns) patterns.push(...group.patterns);
|
|
4170
|
+
}
|
|
4171
|
+
const combinedGroup = {
|
|
4172
|
+
paths,
|
|
4173
|
+
patterns
|
|
4174
|
+
};
|
|
4175
|
+
if (combinedGroup.paths.length === 0) return (0, _alextheman_utility.omitProperties)(combinedGroup, "paths");
|
|
4176
|
+
if (combinedGroup.patterns.length === 0) return (0, _alextheman_utility.omitProperties)(combinedGroup, "patterns");
|
|
4177
|
+
return combinedGroup;
|
|
4178
|
+
}
|
|
4179
|
+
//#endregion
|
|
4180
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4181
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4182
|
+
return {
|
|
4183
|
+
message: "Please use node:fs/promises instead.",
|
|
4184
|
+
name
|
|
4185
|
+
};
|
|
4186
|
+
})] });
|
|
4187
|
+
//#endregion
|
|
4188
|
+
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4189
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4190
|
+
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4191
|
+
regex: "^@mui/[^/]+$"
|
|
4192
|
+
}] });
|
|
4193
|
+
//#endregion
|
|
4194
|
+
//#region src/configs/helpers/restrictedImports/testsRestrictedImports.ts
|
|
4195
|
+
const testsRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [{
|
|
4196
|
+
message: "Use test functions from vitest instead.",
|
|
4197
|
+
name: "node:test"
|
|
4198
|
+
}] });
|
|
4199
|
+
//#endregion
|
|
4077
4200
|
//#region src/configs/helpers/sorting/sortClasses.ts
|
|
4078
4201
|
const sortClasses = {
|
|
4079
4202
|
customGroups: [],
|
|
@@ -4173,10 +4296,14 @@ const sortObjects = {
|
|
|
4173
4296
|
useConfigurationIf: {}
|
|
4174
4297
|
};
|
|
4175
4298
|
//#endregion
|
|
4299
|
+
exports.generalRestrictedImports = generalRestrictedImports;
|
|
4300
|
+
exports.personalRestrictedImports = personalRestrictedImports;
|
|
4176
4301
|
exports.reactLanguageOptions = reactLanguageOptions;
|
|
4302
|
+
exports.reactRestrictedImports = reactRestrictedImports;
|
|
4177
4303
|
exports.sortClasses = sortClasses;
|
|
4178
4304
|
exports.sortExports = sortExports;
|
|
4179
4305
|
exports.sortImports = sortImports;
|
|
4180
4306
|
exports.sortObjects = sortObjects;
|
|
4307
|
+
exports.testsRestrictedImports = testsRestrictedImports;
|
|
4181
4308
|
exports.typeScriptLanguageOptions = typeScriptLanguageOptions;
|
|
4182
4309
|
exports.unusedVarsIgnorePatterns = unusedVarsIgnorePatterns;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Linter } from "eslint";
|
|
2
|
-
|
|
3
2
|
//#region src/configs/helpers/reactLanguageOptions.d.ts
|
|
4
3
|
declare const reactLanguageOptions: Linter.LanguageOptions;
|
|
5
4
|
//#endregion
|
|
@@ -13,78 +12,6 @@ declare const unusedVarsIgnorePatterns: {
|
|
|
13
12
|
varsIgnorePattern: string;
|
|
14
13
|
};
|
|
15
14
|
//#endregion
|
|
16
|
-
//#region src/configs/helpers/sorting/sortClasses.d.ts
|
|
17
|
-
declare const sortClasses: {
|
|
18
|
-
customGroups: never[];
|
|
19
|
-
fallbackSort: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
groups: (string | string[])[];
|
|
23
|
-
ignoreCase: boolean;
|
|
24
|
-
newlinesBetween: number;
|
|
25
|
-
order: string;
|
|
26
|
-
partitionByComment: boolean;
|
|
27
|
-
partitionByNewLine: boolean;
|
|
28
|
-
specialCharacters: string;
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/configs/helpers/sorting/sortExports.d.ts
|
|
33
|
-
declare const sortExports: {
|
|
34
|
-
customGroups: never[];
|
|
35
|
-
fallbackSort: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
groups: string[];
|
|
39
|
-
ignoreCase: boolean;
|
|
40
|
-
newlinesBetween: number;
|
|
41
|
-
order: string;
|
|
42
|
-
partitionByComment: boolean;
|
|
43
|
-
partitionByNewLine: boolean;
|
|
44
|
-
specialCharacters: string;
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/configs/helpers/sorting/sortImports.d.ts
|
|
49
|
-
declare const sortImports: {
|
|
50
|
-
customGroups: ({
|
|
51
|
-
elementNamePattern: string[];
|
|
52
|
-
groupName: string;
|
|
53
|
-
selector?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
elementNamePattern: string[];
|
|
56
|
-
groupName: string;
|
|
57
|
-
selector: string;
|
|
58
|
-
})[];
|
|
59
|
-
groups: string[];
|
|
60
|
-
ignoreCase: boolean;
|
|
61
|
-
internalPattern: string[];
|
|
62
|
-
newlinesBetween: number;
|
|
63
|
-
order: string;
|
|
64
|
-
partitionByComment: boolean;
|
|
65
|
-
partitionByNewLine: boolean;
|
|
66
|
-
specialCharacters: string;
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/configs/helpers/sorting/sortObjects.d.ts
|
|
71
|
-
declare const sortObjects: {
|
|
72
|
-
customGroups: never[];
|
|
73
|
-
fallbackSort: {
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
groups: never[];
|
|
77
|
-
ignoreCase: boolean;
|
|
78
|
-
newlinesBetween: string;
|
|
79
|
-
order: string;
|
|
80
|
-
partitionByComment: boolean;
|
|
81
|
-
partitionByNewLine: boolean;
|
|
82
|
-
specialCharacters: string;
|
|
83
|
-
styledComponents: boolean;
|
|
84
|
-
type: string;
|
|
85
|
-
useConfigurationIf: {};
|
|
86
|
-
};
|
|
87
|
-
//#endregion
|
|
88
15
|
//#region src/utility/public/NoRestrictedImportsOptions.d.ts
|
|
89
16
|
interface RestrictedPathImportBase {
|
|
90
17
|
message: string;
|
|
@@ -157,4 +84,88 @@ interface NoRestrictedImportsOptionsPathsAndPatterns {
|
|
|
157
84
|
*/
|
|
158
85
|
type NoRestrictedImportsOptions = NoRestrictedImportsOptionsPathsOnly | NoRestrictedImportsOptionsPatternsOnly | NoRestrictedImportsOptionsPathsAndPatterns;
|
|
159
86
|
//#endregion
|
|
160
|
-
|
|
87
|
+
//#region src/configs/helpers/restrictedImports/generalRestrictedImports.d.ts
|
|
88
|
+
declare const generalRestrictedImports: NoRestrictedImportsOptions;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.d.ts
|
|
91
|
+
declare const personalRestrictedImports: NoRestrictedImportsOptions;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.d.ts
|
|
94
|
+
declare const reactRestrictedImports: NoRestrictedImportsOptions;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/configs/helpers/restrictedImports/testsRestrictedImports.d.ts
|
|
97
|
+
declare const testsRestrictedImports: NoRestrictedImportsOptions;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/configs/helpers/sorting/sortClasses.d.ts
|
|
100
|
+
declare const sortClasses: {
|
|
101
|
+
customGroups: never[];
|
|
102
|
+
fallbackSort: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
groups: (string | string[])[];
|
|
106
|
+
ignoreCase: boolean;
|
|
107
|
+
newlinesBetween: number;
|
|
108
|
+
order: string;
|
|
109
|
+
partitionByComment: boolean;
|
|
110
|
+
partitionByNewLine: boolean;
|
|
111
|
+
specialCharacters: string;
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/configs/helpers/sorting/sortExports.d.ts
|
|
116
|
+
declare const sortExports: {
|
|
117
|
+
customGroups: never[];
|
|
118
|
+
fallbackSort: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
groups: string[];
|
|
122
|
+
ignoreCase: boolean;
|
|
123
|
+
newlinesBetween: number;
|
|
124
|
+
order: string;
|
|
125
|
+
partitionByComment: boolean;
|
|
126
|
+
partitionByNewLine: boolean;
|
|
127
|
+
specialCharacters: string;
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/configs/helpers/sorting/sortImports.d.ts
|
|
132
|
+
declare const sortImports: {
|
|
133
|
+
customGroups: ({
|
|
134
|
+
elementNamePattern: string[];
|
|
135
|
+
groupName: string;
|
|
136
|
+
selector?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
elementNamePattern: string[];
|
|
139
|
+
groupName: string;
|
|
140
|
+
selector: string;
|
|
141
|
+
})[];
|
|
142
|
+
groups: string[];
|
|
143
|
+
ignoreCase: boolean;
|
|
144
|
+
internalPattern: string[];
|
|
145
|
+
newlinesBetween: number;
|
|
146
|
+
order: string;
|
|
147
|
+
partitionByComment: boolean;
|
|
148
|
+
partitionByNewLine: boolean;
|
|
149
|
+
specialCharacters: string;
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/configs/helpers/sorting/sortObjects.d.ts
|
|
154
|
+
declare const sortObjects: {
|
|
155
|
+
customGroups: never[];
|
|
156
|
+
fallbackSort: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
groups: never[];
|
|
160
|
+
ignoreCase: boolean;
|
|
161
|
+
newlinesBetween: string;
|
|
162
|
+
order: string;
|
|
163
|
+
partitionByComment: boolean;
|
|
164
|
+
partitionByNewLine: boolean;
|
|
165
|
+
specialCharacters: string;
|
|
166
|
+
styledComponents: boolean;
|
|
167
|
+
type: string;
|
|
168
|
+
useConfigurationIf: {};
|
|
169
|
+
};
|
|
170
|
+
//#endregion
|
|
171
|
+
export { type NoRestrictedImportsOptions, type RestrictedPathImport, type RestrictedPatternImport, generalRestrictedImports, personalRestrictedImports, reactLanguageOptions, reactRestrictedImports, sortClasses, sortExports, sortImports, sortObjects, testsRestrictedImports, typeScriptLanguageOptions, unusedVarsIgnorePatterns };
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Linter } from "eslint";
|
|
2
|
-
|
|
3
2
|
//#region src/configs/helpers/reactLanguageOptions.d.ts
|
|
4
3
|
declare const reactLanguageOptions: Linter.LanguageOptions;
|
|
5
4
|
//#endregion
|
|
@@ -13,78 +12,6 @@ declare const unusedVarsIgnorePatterns: {
|
|
|
13
12
|
varsIgnorePattern: string;
|
|
14
13
|
};
|
|
15
14
|
//#endregion
|
|
16
|
-
//#region src/configs/helpers/sorting/sortClasses.d.ts
|
|
17
|
-
declare const sortClasses: {
|
|
18
|
-
customGroups: never[];
|
|
19
|
-
fallbackSort: {
|
|
20
|
-
type: string;
|
|
21
|
-
};
|
|
22
|
-
groups: (string | string[])[];
|
|
23
|
-
ignoreCase: boolean;
|
|
24
|
-
newlinesBetween: number;
|
|
25
|
-
order: string;
|
|
26
|
-
partitionByComment: boolean;
|
|
27
|
-
partitionByNewLine: boolean;
|
|
28
|
-
specialCharacters: string;
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/configs/helpers/sorting/sortExports.d.ts
|
|
33
|
-
declare const sortExports: {
|
|
34
|
-
customGroups: never[];
|
|
35
|
-
fallbackSort: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
groups: string[];
|
|
39
|
-
ignoreCase: boolean;
|
|
40
|
-
newlinesBetween: number;
|
|
41
|
-
order: string;
|
|
42
|
-
partitionByComment: boolean;
|
|
43
|
-
partitionByNewLine: boolean;
|
|
44
|
-
specialCharacters: string;
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/configs/helpers/sorting/sortImports.d.ts
|
|
49
|
-
declare const sortImports: {
|
|
50
|
-
customGroups: ({
|
|
51
|
-
elementNamePattern: string[];
|
|
52
|
-
groupName: string;
|
|
53
|
-
selector?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
elementNamePattern: string[];
|
|
56
|
-
groupName: string;
|
|
57
|
-
selector: string;
|
|
58
|
-
})[];
|
|
59
|
-
groups: string[];
|
|
60
|
-
ignoreCase: boolean;
|
|
61
|
-
internalPattern: string[];
|
|
62
|
-
newlinesBetween: number;
|
|
63
|
-
order: string;
|
|
64
|
-
partitionByComment: boolean;
|
|
65
|
-
partitionByNewLine: boolean;
|
|
66
|
-
specialCharacters: string;
|
|
67
|
-
type: string;
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/configs/helpers/sorting/sortObjects.d.ts
|
|
71
|
-
declare const sortObjects: {
|
|
72
|
-
customGroups: never[];
|
|
73
|
-
fallbackSort: {
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
groups: never[];
|
|
77
|
-
ignoreCase: boolean;
|
|
78
|
-
newlinesBetween: string;
|
|
79
|
-
order: string;
|
|
80
|
-
partitionByComment: boolean;
|
|
81
|
-
partitionByNewLine: boolean;
|
|
82
|
-
specialCharacters: string;
|
|
83
|
-
styledComponents: boolean;
|
|
84
|
-
type: string;
|
|
85
|
-
useConfigurationIf: {};
|
|
86
|
-
};
|
|
87
|
-
//#endregion
|
|
88
15
|
//#region src/utility/public/NoRestrictedImportsOptions.d.ts
|
|
89
16
|
interface RestrictedPathImportBase {
|
|
90
17
|
message: string;
|
|
@@ -157,4 +84,88 @@ interface NoRestrictedImportsOptionsPathsAndPatterns {
|
|
|
157
84
|
*/
|
|
158
85
|
type NoRestrictedImportsOptions = NoRestrictedImportsOptionsPathsOnly | NoRestrictedImportsOptionsPatternsOnly | NoRestrictedImportsOptionsPathsAndPatterns;
|
|
159
86
|
//#endregion
|
|
160
|
-
|
|
87
|
+
//#region src/configs/helpers/restrictedImports/generalRestrictedImports.d.ts
|
|
88
|
+
declare const generalRestrictedImports: NoRestrictedImportsOptions;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.d.ts
|
|
91
|
+
declare const personalRestrictedImports: NoRestrictedImportsOptions;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.d.ts
|
|
94
|
+
declare const reactRestrictedImports: NoRestrictedImportsOptions;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/configs/helpers/restrictedImports/testsRestrictedImports.d.ts
|
|
97
|
+
declare const testsRestrictedImports: NoRestrictedImportsOptions;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/configs/helpers/sorting/sortClasses.d.ts
|
|
100
|
+
declare const sortClasses: {
|
|
101
|
+
customGroups: never[];
|
|
102
|
+
fallbackSort: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
groups: (string | string[])[];
|
|
106
|
+
ignoreCase: boolean;
|
|
107
|
+
newlinesBetween: number;
|
|
108
|
+
order: string;
|
|
109
|
+
partitionByComment: boolean;
|
|
110
|
+
partitionByNewLine: boolean;
|
|
111
|
+
specialCharacters: string;
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/configs/helpers/sorting/sortExports.d.ts
|
|
116
|
+
declare const sortExports: {
|
|
117
|
+
customGroups: never[];
|
|
118
|
+
fallbackSort: {
|
|
119
|
+
type: string;
|
|
120
|
+
};
|
|
121
|
+
groups: string[];
|
|
122
|
+
ignoreCase: boolean;
|
|
123
|
+
newlinesBetween: number;
|
|
124
|
+
order: string;
|
|
125
|
+
partitionByComment: boolean;
|
|
126
|
+
partitionByNewLine: boolean;
|
|
127
|
+
specialCharacters: string;
|
|
128
|
+
type: string;
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/configs/helpers/sorting/sortImports.d.ts
|
|
132
|
+
declare const sortImports: {
|
|
133
|
+
customGroups: ({
|
|
134
|
+
elementNamePattern: string[];
|
|
135
|
+
groupName: string;
|
|
136
|
+
selector?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
elementNamePattern: string[];
|
|
139
|
+
groupName: string;
|
|
140
|
+
selector: string;
|
|
141
|
+
})[];
|
|
142
|
+
groups: string[];
|
|
143
|
+
ignoreCase: boolean;
|
|
144
|
+
internalPattern: string[];
|
|
145
|
+
newlinesBetween: number;
|
|
146
|
+
order: string;
|
|
147
|
+
partitionByComment: boolean;
|
|
148
|
+
partitionByNewLine: boolean;
|
|
149
|
+
specialCharacters: string;
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/configs/helpers/sorting/sortObjects.d.ts
|
|
154
|
+
declare const sortObjects: {
|
|
155
|
+
customGroups: never[];
|
|
156
|
+
fallbackSort: {
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
groups: never[];
|
|
160
|
+
ignoreCase: boolean;
|
|
161
|
+
newlinesBetween: string;
|
|
162
|
+
order: string;
|
|
163
|
+
partitionByComment: boolean;
|
|
164
|
+
partitionByNewLine: boolean;
|
|
165
|
+
specialCharacters: string;
|
|
166
|
+
styledComponents: boolean;
|
|
167
|
+
type: string;
|
|
168
|
+
useConfigurationIf: {};
|
|
169
|
+
};
|
|
170
|
+
//#endregion
|
|
171
|
+
export { type NoRestrictedImportsOptions, type RestrictedPathImport, type RestrictedPatternImport, generalRestrictedImports, personalRestrictedImports, reactLanguageOptions, reactRestrictedImports, sortClasses, sortExports, sortImports, sortObjects, testsRestrictedImports, typeScriptLanguageOptions, unusedVarsIgnorePatterns };
|