@alextheman/eslint-plugin 5.5.1 → 5.6.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 +203 -240
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +197 -234
- package/dist/utility/index.cjs +10 -17
- package/dist/utility/index.js +3 -11
- package/package.json +15 -14
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
//#region
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -58,10 +58,11 @@ let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
|
|
|
58
58
|
eslint_plugin_react_hooks = __toESM(eslint_plugin_react_hooks);
|
|
59
59
|
let eslint_plugin_package_json = require("eslint-plugin-package-json");
|
|
60
60
|
eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
|
|
61
|
+
let _eslint_compat = require("@eslint/compat");
|
|
61
62
|
let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
|
|
62
63
|
eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc);
|
|
63
64
|
|
|
64
|
-
//#region node_modules/.pnpm/globals@17.
|
|
65
|
+
//#region node_modules/.pnpm/globals@17.3.0/node_modules/globals/globals.json
|
|
65
66
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66
67
|
module.exports = {
|
|
67
68
|
"amd": {
|
|
@@ -503,6 +504,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
503
504
|
"HTMLFormElement": false,
|
|
504
505
|
"HTMLFrameElement": false,
|
|
505
506
|
"HTMLFrameSetElement": false,
|
|
507
|
+
"HTMLGeolocationElement": false,
|
|
506
508
|
"HTMLHeadElement": false,
|
|
507
509
|
"HTMLHeadingElement": false,
|
|
508
510
|
"HTMLHRElement": false,
|
|
@@ -1295,6 +1297,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1295
1297
|
"XRView": false,
|
|
1296
1298
|
"XRViewerPose": false,
|
|
1297
1299
|
"XRViewport": false,
|
|
1300
|
+
"XRVisibilityMaskChangeEvent": false,
|
|
1298
1301
|
"XRWebGLBinding": false,
|
|
1299
1302
|
"XRWebGLDepthInformation": false,
|
|
1300
1303
|
"XRWebGLLayer": false,
|
|
@@ -1541,6 +1544,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1541
1544
|
"GPUColorWrite": false,
|
|
1542
1545
|
"GPUCommandBuffer": false,
|
|
1543
1546
|
"GPUCommandEncoder": false,
|
|
1547
|
+
"GPUCompilationInfo": false,
|
|
1548
|
+
"GPUCompilationMessage": false,
|
|
1544
1549
|
"GPUComputePassEncoder": false,
|
|
1545
1550
|
"GPUComputePipeline": false,
|
|
1546
1551
|
"GPUDevice": false,
|
|
@@ -1589,6 +1594,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1589
1594
|
"PerformanceEntry": false,
|
|
1590
1595
|
"PerformanceMark": false,
|
|
1591
1596
|
"PerformanceMeasure": false,
|
|
1597
|
+
"PerformanceObserver": false,
|
|
1598
|
+
"PerformanceObserverEntryList": false,
|
|
1592
1599
|
"process": false,
|
|
1593
1600
|
"ProgressEvent": false,
|
|
1594
1601
|
"PromiseRejectionEvent": false,
|
|
@@ -4073,7 +4080,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4073
4080
|
}));
|
|
4074
4081
|
|
|
4075
4082
|
//#endregion
|
|
4076
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4083
|
+
//#region node_modules/.pnpm/globals@17.3.0/node_modules/globals/index.js
|
|
4077
4084
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4078
4085
|
module.exports = require_globals$1();
|
|
4079
4086
|
}));
|
|
@@ -4085,7 +4092,6 @@ const generalRestrictedImports = { patterns: [{
|
|
|
4085
4092
|
group: ["node_modules"],
|
|
4086
4093
|
message: "Do not import directly from node_modules."
|
|
4087
4094
|
}] };
|
|
4088
|
-
var generalRestrictedImports_default = generalRestrictedImports;
|
|
4089
4095
|
|
|
4090
4096
|
//#endregion
|
|
4091
4097
|
//#region src/utility/public/checkCallExpression.ts
|
|
@@ -4103,7 +4109,6 @@ var generalRestrictedImports_default = generalRestrictedImports;
|
|
|
4103
4109
|
function checkCallExpression(node, objectName, propertyName) {
|
|
4104
4110
|
return node.callee.type === _typescript_eslint_utils.AST_NODE_TYPES.MemberExpression && node.callee.object.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.callee.object.name === objectName && node.callee.property.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier && node.callee.property.name === propertyName;
|
|
4105
4111
|
}
|
|
4106
|
-
var checkCallExpression_default = checkCallExpression;
|
|
4107
4112
|
|
|
4108
4113
|
//#endregion
|
|
4109
4114
|
//#region src/utility/public/combineRestrictedImports.ts
|
|
@@ -4131,7 +4136,6 @@ function combineRestrictedImports(...groups) {
|
|
|
4131
4136
|
if (combinedGroup.patterns.length === 0) return (0, _alextheman_utility.omitProperties)(combinedGroup, "patterns");
|
|
4132
4137
|
return combinedGroup;
|
|
4133
4138
|
}
|
|
4134
|
-
var combineRestrictedImports_default = combineRestrictedImports;
|
|
4135
4139
|
|
|
4136
4140
|
//#endregion
|
|
4137
4141
|
//#region src/utility/public/createRuleSchemaFromZodSchema.ts
|
|
@@ -4147,7 +4151,6 @@ var combineRestrictedImports_default = combineRestrictedImports;
|
|
|
4147
4151
|
function createRuleSchemaFromZodSchema(schema) {
|
|
4148
4152
|
return [(0, _alextheman_utility.omitProperties)(zod.default.toJSONSchema(schema), "$schema")];
|
|
4149
4153
|
}
|
|
4150
|
-
var createRuleSchemaFromZodSchema_default = createRuleSchemaFromZodSchema;
|
|
4151
4154
|
|
|
4152
4155
|
//#endregion
|
|
4153
4156
|
//#region src/utility/public/fixOnCondition.ts
|
|
@@ -4167,7 +4170,6 @@ function fixOnCondition(fixable, fix) {
|
|
|
4167
4170
|
return fix(fixer);
|
|
4168
4171
|
};
|
|
4169
4172
|
}
|
|
4170
|
-
var fixOnCondition_default = fixOnCondition;
|
|
4171
4173
|
|
|
4172
4174
|
//#endregion
|
|
4173
4175
|
//#region src/utility/private/camelToKebab.ts
|
|
@@ -4175,16 +4177,14 @@ function camelToKebab(string) {
|
|
|
4175
4177
|
if (string[0] === string[0].toUpperCase()) throw new _alextheman_utility.DataError(string, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
|
|
4176
4178
|
return (0, _alextheman_utility.camelToKebab)(string, { preserveConsecutiveCapitals: false });
|
|
4177
4179
|
}
|
|
4178
|
-
var camelToKebab_default = camelToKebab;
|
|
4179
4180
|
|
|
4180
4181
|
//#endregion
|
|
4181
4182
|
//#region src/utility/private/createConfigGroup.ts
|
|
4182
4183
|
function createConfigGroup(group, configs) {
|
|
4183
4184
|
const newConfigs = {};
|
|
4184
|
-
for (const key in configs) newConfigs[`${
|
|
4185
|
+
for (const key in configs) newConfigs[`${camelToKebab(group)}/${camelToKebab(key)}`] = configs[key];
|
|
4185
4186
|
return newConfigs;
|
|
4186
4187
|
}
|
|
4187
|
-
var createConfigGroup_default = createConfigGroup;
|
|
4188
4188
|
|
|
4189
4189
|
//#endregion
|
|
4190
4190
|
//#region src/utility/public/flattenConfigs.ts
|
|
@@ -4227,10 +4227,9 @@ var createConfigGroup_default = createConfigGroup;
|
|
|
4227
4227
|
*/
|
|
4228
4228
|
function flattenConfigs(config) {
|
|
4229
4229
|
const allConfigs = {};
|
|
4230
|
-
for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs,
|
|
4230
|
+
for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs, createConfigGroup(...configGroupEntries));
|
|
4231
4231
|
return allConfigs;
|
|
4232
4232
|
}
|
|
4233
|
-
var flattenConfigs_default = flattenConfigs;
|
|
4234
4233
|
|
|
4235
4234
|
//#endregion
|
|
4236
4235
|
//#region src/utility/public/getImportSpecifiersAfterRemoving.ts
|
|
@@ -4256,26 +4255,24 @@ function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
|
|
|
4256
4255
|
return context.sourceCode.getText(specifier);
|
|
4257
4256
|
}).join(", ");
|
|
4258
4257
|
}
|
|
4259
|
-
var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
|
|
4260
4258
|
|
|
4261
4259
|
//#endregion
|
|
4262
4260
|
//#region src/configs/helpers/restrictedImports/testsRestrictedImports.ts
|
|
4263
|
-
const testsRestrictedImports =
|
|
4261
|
+
const testsRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [{
|
|
4264
4262
|
message: "Use test functions from vitest instead.",
|
|
4265
4263
|
name: "node:test"
|
|
4266
4264
|
}] });
|
|
4267
|
-
var testsRestrictedImports_default = testsRestrictedImports;
|
|
4268
4265
|
|
|
4269
4266
|
//#endregion
|
|
4270
|
-
//#region src/configs/
|
|
4271
|
-
const
|
|
4267
|
+
//#region src/configs/internal/tests.ts
|
|
4268
|
+
const internalTests = [{
|
|
4272
4269
|
files: ["**/*.test.{js,ts}"],
|
|
4273
4270
|
languageOptions: { globals: {
|
|
4274
4271
|
...import_globals.default.node,
|
|
4275
4272
|
...import_globals.default.browser,
|
|
4276
4273
|
...import_globals.default.vitest
|
|
4277
4274
|
} },
|
|
4278
|
-
name: "@alextheman/
|
|
4275
|
+
name: "@alextheman/internal/tests",
|
|
4279
4276
|
rules: {
|
|
4280
4277
|
"no-restricted-globals": [
|
|
4281
4278
|
"error",
|
|
@@ -4292,10 +4289,9 @@ const personalTests = [{
|
|
|
4292
4289
|
name: "expect"
|
|
4293
4290
|
}
|
|
4294
4291
|
],
|
|
4295
|
-
"no-restricted-imports": ["error",
|
|
4292
|
+
"no-restricted-imports": ["error", testsRestrictedImports]
|
|
4296
4293
|
}
|
|
4297
4294
|
}];
|
|
4298
|
-
var tests_default$2 = personalTests;
|
|
4299
4295
|
|
|
4300
4296
|
//#endregion
|
|
4301
4297
|
//#region src/configs/plugin/base.ts
|
|
@@ -4310,7 +4306,6 @@ function pluginBase(plugin) {
|
|
|
4310
4306
|
}
|
|
4311
4307
|
}];
|
|
4312
4308
|
}
|
|
4313
|
-
var base_default = pluginBase;
|
|
4314
4309
|
|
|
4315
4310
|
//#endregion
|
|
4316
4311
|
//#region src/configs/plugin/tests.ts
|
|
@@ -4326,18 +4321,16 @@ function pluginTests(plugin) {
|
|
|
4326
4321
|
}
|
|
4327
4322
|
}];
|
|
4328
4323
|
}
|
|
4329
|
-
var tests_default$1 = pluginTests;
|
|
4330
4324
|
|
|
4331
4325
|
//#endregion
|
|
4332
4326
|
//#region src/configs/combined/tests.ts
|
|
4333
4327
|
function combinedTests(plugin) {
|
|
4334
4328
|
return [
|
|
4335
4329
|
{ name: "@alextheman/combined/tests" },
|
|
4336
|
-
...
|
|
4337
|
-
...
|
|
4330
|
+
...pluginTests(plugin),
|
|
4331
|
+
...internalTests
|
|
4338
4332
|
];
|
|
4339
4333
|
}
|
|
4340
|
-
var tests_default = combinedTests;
|
|
4341
4334
|
|
|
4342
4335
|
//#endregion
|
|
4343
4336
|
//#region src/configs/helpers/javaScriptLanguageOptions.ts
|
|
@@ -4346,7 +4339,6 @@ const javaScriptLanguageOptions = { globals: {
|
|
|
4346
4339
|
...import_globals.default.browser,
|
|
4347
4340
|
...import_globals.default.vitest
|
|
4348
4341
|
} };
|
|
4349
|
-
var javaScriptLanguageOptions_default = javaScriptLanguageOptions;
|
|
4350
4342
|
|
|
4351
4343
|
//#endregion
|
|
4352
4344
|
//#region src/configs/helpers/unusedVarsIgnorePatterns.ts
|
|
@@ -4355,7 +4347,6 @@ const unusedVarsIgnorePatterns = {
|
|
|
4355
4347
|
caughtErrorsIgnorePattern: "^_",
|
|
4356
4348
|
varsIgnorePattern: "^_"
|
|
4357
4349
|
};
|
|
4358
|
-
var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
|
|
4359
4350
|
|
|
4360
4351
|
//#endregion
|
|
4361
4352
|
//#region src/configs/general/javaScript.ts
|
|
@@ -4371,7 +4362,7 @@ const generalJavaScript = [
|
|
|
4371
4362
|
"**/*.tsx"
|
|
4372
4363
|
],
|
|
4373
4364
|
ignores: ["dist"],
|
|
4374
|
-
languageOptions:
|
|
4365
|
+
languageOptions: javaScriptLanguageOptions,
|
|
4375
4366
|
name: "@alextheman/general/javascript",
|
|
4376
4367
|
plugins: {
|
|
4377
4368
|
import: eslint_plugin_import.default,
|
|
@@ -4405,9 +4396,9 @@ const generalJavaScript = [
|
|
|
4405
4396
|
"no-lonely-if": "error",
|
|
4406
4397
|
"no-new-wrappers": "error",
|
|
4407
4398
|
"no-param-reassign": "error",
|
|
4408
|
-
"no-restricted-imports": ["error",
|
|
4399
|
+
"no-restricted-imports": ["error", generalRestrictedImports],
|
|
4409
4400
|
"no-undef": "error",
|
|
4410
|
-
"no-unused-vars": ["error",
|
|
4401
|
+
"no-unused-vars": ["error", unusedVarsIgnorePatterns],
|
|
4411
4402
|
"no-useless-rename": "error",
|
|
4412
4403
|
"no-useless-return": "error",
|
|
4413
4404
|
"prefer-const": "error"
|
|
@@ -4415,12 +4406,10 @@ const generalJavaScript = [
|
|
|
4415
4406
|
settings: { "import/resolver": { node: true } }
|
|
4416
4407
|
}
|
|
4417
4408
|
];
|
|
4418
|
-
var javaScript_default$1 = generalJavaScript;
|
|
4419
4409
|
|
|
4420
4410
|
//#endregion
|
|
4421
4411
|
//#region src/configs/external/prettierConfig.ts
|
|
4422
4412
|
const prettierConfig = { printWidth: 100 };
|
|
4423
|
-
var prettierConfig_default = prettierConfig;
|
|
4424
4413
|
|
|
4425
4414
|
//#endregion
|
|
4426
4415
|
//#region src/configs/external/typeDocConfig.ts
|
|
@@ -4446,7 +4435,6 @@ function typeDocConfig(entryPoints = ["./src/index.ts"]) {
|
|
|
4446
4435
|
plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
|
|
4447
4436
|
};
|
|
4448
4437
|
}
|
|
4449
|
-
var typeDocConfig_default = typeDocConfig;
|
|
4450
4438
|
|
|
4451
4439
|
//#endregion
|
|
4452
4440
|
//#region src/configs/external/vitestConfig.ts
|
|
@@ -4460,7 +4448,6 @@ function vitestConfig(environment = "jsdom") {
|
|
|
4460
4448
|
}
|
|
4461
4449
|
});
|
|
4462
4450
|
}
|
|
4463
|
-
var vitestConfig_default = vitestConfig;
|
|
4464
4451
|
|
|
4465
4452
|
//#endregion
|
|
4466
4453
|
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
@@ -4469,7 +4456,6 @@ const reactLanguageOptions = {
|
|
|
4469
4456
|
globals: import_globals.default.browser,
|
|
4470
4457
|
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4471
4458
|
};
|
|
4472
|
-
var reactLanguageOptions_default = reactLanguageOptions;
|
|
4473
4459
|
|
|
4474
4460
|
//#endregion
|
|
4475
4461
|
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
@@ -4482,7 +4468,6 @@ const typeScriptLanguageOptions = {
|
|
|
4482
4468
|
tsconfigRootDir: process.cwd()
|
|
4483
4469
|
}
|
|
4484
4470
|
};
|
|
4485
|
-
var typeScriptLanguageOptions_default = typeScriptLanguageOptions;
|
|
4486
4471
|
|
|
4487
4472
|
//#endregion
|
|
4488
4473
|
//#region src/configs/helpers/sorting/sortClasses.ts
|
|
@@ -4510,7 +4495,6 @@ const sortClasses = {
|
|
|
4510
4495
|
specialCharacters: "keep",
|
|
4511
4496
|
type: "alphabetical"
|
|
4512
4497
|
};
|
|
4513
|
-
var sortClasses_default = sortClasses;
|
|
4514
4498
|
|
|
4515
4499
|
//#endregion
|
|
4516
4500
|
//#region src/configs/helpers/sorting/sortExports.ts
|
|
@@ -4531,7 +4515,6 @@ const sortExports = {
|
|
|
4531
4515
|
specialCharacters: "keep",
|
|
4532
4516
|
type: "alphabetical"
|
|
4533
4517
|
};
|
|
4534
|
-
var sortExports_default = sortExports;
|
|
4535
4518
|
|
|
4536
4519
|
//#endregion
|
|
4537
4520
|
//#region src/configs/helpers/sorting/sortImports.ts
|
|
@@ -4571,7 +4554,6 @@ const sortImports = {
|
|
|
4571
4554
|
specialCharacters: "keep",
|
|
4572
4555
|
type: "alphabetical"
|
|
4573
4556
|
};
|
|
4574
|
-
var sortImports_default = sortImports;
|
|
4575
4557
|
|
|
4576
4558
|
//#endregion
|
|
4577
4559
|
//#region src/configs/helpers/sorting/sortObjects.ts
|
|
@@ -4589,7 +4571,15 @@ const sortObjects = {
|
|
|
4589
4571
|
type: "alphabetical",
|
|
4590
4572
|
useConfigurationIf: {}
|
|
4591
4573
|
};
|
|
4592
|
-
|
|
4574
|
+
|
|
4575
|
+
//#endregion
|
|
4576
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4577
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4578
|
+
return {
|
|
4579
|
+
message: "Please use node:fs/promises instead.",
|
|
4580
|
+
name
|
|
4581
|
+
};
|
|
4582
|
+
})] });
|
|
4593
4583
|
|
|
4594
4584
|
//#endregion
|
|
4595
4585
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
@@ -4605,11 +4595,10 @@ const sortNamedImports = {
|
|
|
4605
4595
|
specialCharacters: "keep",
|
|
4606
4596
|
type: "alphabetical"
|
|
4607
4597
|
};
|
|
4608
|
-
var sortNamedImports_default = sortNamedImports;
|
|
4609
4598
|
|
|
4610
4599
|
//#endregion
|
|
4611
|
-
//#region src/configs/
|
|
4612
|
-
function
|
|
4600
|
+
//#region src/configs/internal/javaScript.ts
|
|
4601
|
+
function internalJavaScript(plugin) {
|
|
4613
4602
|
return [{
|
|
4614
4603
|
files: [
|
|
4615
4604
|
"**/*.js",
|
|
@@ -4617,8 +4606,8 @@ function personalJavaScript(plugin) {
|
|
|
4617
4606
|
"**/*.ts",
|
|
4618
4607
|
"**/*.tsx"
|
|
4619
4608
|
],
|
|
4620
|
-
languageOptions:
|
|
4621
|
-
name: "@alextheman/
|
|
4609
|
+
languageOptions: javaScriptLanguageOptions,
|
|
4610
|
+
name: "@alextheman/internal/javascript",
|
|
4622
4611
|
plugins: {
|
|
4623
4612
|
"@alextheman": plugin,
|
|
4624
4613
|
import: eslint_plugin_import.default,
|
|
@@ -4637,15 +4626,16 @@ function personalJavaScript(plugin) {
|
|
|
4637
4626
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
4638
4627
|
"no-else-return": "error",
|
|
4639
4628
|
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
4629
|
+
"no-restricted-imports": ["error", personalRestrictedImports],
|
|
4640
4630
|
"operator-assignment": ["error", "always"],
|
|
4641
|
-
"perfectionist/sort-classes": ["error",
|
|
4642
|
-
"perfectionist/sort-exports": ["error",
|
|
4643
|
-
"perfectionist/sort-imports": ["error",
|
|
4644
|
-
"perfectionist/sort-named-imports": ["error",
|
|
4631
|
+
"perfectionist/sort-classes": ["error", sortClasses],
|
|
4632
|
+
"perfectionist/sort-exports": ["error", sortExports],
|
|
4633
|
+
"perfectionist/sort-imports": ["error", sortImports],
|
|
4634
|
+
"perfectionist/sort-named-imports": ["error", sortNamedImports],
|
|
4645
4635
|
"prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
|
|
4646
4636
|
"prefer-destructuring": "error",
|
|
4647
4637
|
"prefer-template": "error",
|
|
4648
|
-
"prettier/prettier": ["warn",
|
|
4638
|
+
"prettier/prettier": ["warn", prettierConfig],
|
|
4649
4639
|
"sort-vars": "error"
|
|
4650
4640
|
}
|
|
4651
4641
|
}, {
|
|
@@ -4653,20 +4643,18 @@ function personalJavaScript(plugin) {
|
|
|
4653
4643
|
rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
|
|
4654
4644
|
}];
|
|
4655
4645
|
}
|
|
4656
|
-
var javaScriptBase_default = personalJavaScript;
|
|
4657
4646
|
|
|
4658
4647
|
//#endregion
|
|
4659
4648
|
//#region src/configs/combined/javaScript.ts
|
|
4660
4649
|
function combinedJavaScript(plugin) {
|
|
4661
4650
|
return [
|
|
4662
4651
|
{ name: "@alextheman/combined/javascript" },
|
|
4663
|
-
...
|
|
4664
|
-
...
|
|
4665
|
-
...
|
|
4666
|
-
...
|
|
4652
|
+
...pluginBase(plugin),
|
|
4653
|
+
...generalJavaScript,
|
|
4654
|
+
...internalJavaScript(plugin),
|
|
4655
|
+
...combinedTests(plugin)
|
|
4667
4656
|
];
|
|
4668
4657
|
}
|
|
4669
|
-
var javaScript_default = combinedJavaScript;
|
|
4670
4658
|
|
|
4671
4659
|
//#endregion
|
|
4672
4660
|
//#region src/configs/helpers/eslint-plugin-react-hooks.ts
|
|
@@ -4678,7 +4666,6 @@ const reactHooks = {
|
|
|
4678
4666
|
"flat/recommended-latest": eslint_plugin_react_hooks.default.configs.flat["recommended-latest"]
|
|
4679
4667
|
}
|
|
4680
4668
|
};
|
|
4681
|
-
var eslint_plugin_react_hooks_default = reactHooks;
|
|
4682
4669
|
|
|
4683
4670
|
//#endregion
|
|
4684
4671
|
//#region src/configs/general/react.ts
|
|
@@ -4687,15 +4674,15 @@ const generalReact = [
|
|
|
4687
4674
|
eslint_plugin_react.default.configs.flat["jsx-runtime"],
|
|
4688
4675
|
eslint_plugin_jsx_a11y.default.flatConfigs.recommended,
|
|
4689
4676
|
{
|
|
4690
|
-
languageOptions:
|
|
4677
|
+
languageOptions: reactLanguageOptions,
|
|
4691
4678
|
name: "@alextheman/general/react",
|
|
4692
4679
|
plugins: {
|
|
4693
4680
|
react: eslint_plugin_react.default,
|
|
4694
|
-
"react-hooks":
|
|
4681
|
+
"react-hooks": reactHooks,
|
|
4695
4682
|
"react-refresh": eslint_plugin_react_refresh.default
|
|
4696
4683
|
},
|
|
4697
4684
|
rules: {
|
|
4698
|
-
...
|
|
4685
|
+
...reactHooks.configs["flat/recommended"].rules,
|
|
4699
4686
|
"react/destructuring-assignment": [
|
|
4700
4687
|
"error",
|
|
4701
4688
|
"always",
|
|
@@ -4714,55 +4701,50 @@ const generalReact = [
|
|
|
4714
4701
|
settings: { react: { version: "detect" } }
|
|
4715
4702
|
}
|
|
4716
4703
|
];
|
|
4717
|
-
var react_default$2 = generalReact;
|
|
4718
4704
|
|
|
4719
4705
|
//#endregion
|
|
4720
4706
|
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4721
|
-
const reactRestrictedImports =
|
|
4707
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4722
4708
|
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4723
4709
|
regex: "^@mui/[^/]+$"
|
|
4724
4710
|
}] });
|
|
4725
|
-
var reactRestrictedImports_default = reactRestrictedImports;
|
|
4726
4711
|
|
|
4727
4712
|
//#endregion
|
|
4728
|
-
//#region src/configs/
|
|
4729
|
-
const
|
|
4730
|
-
languageOptions:
|
|
4731
|
-
name: "@alextheman/
|
|
4713
|
+
//#region src/configs/internal/react.ts
|
|
4714
|
+
const internalReact = [{
|
|
4715
|
+
languageOptions: reactLanguageOptions,
|
|
4716
|
+
name: "@alextheman/internal/react",
|
|
4732
4717
|
plugins: {
|
|
4733
4718
|
react: eslint_plugin_react.default,
|
|
4734
|
-
"react-hooks":
|
|
4719
|
+
"react-hooks": reactHooks,
|
|
4735
4720
|
"react-refresh": eslint_plugin_react_refresh.default
|
|
4736
4721
|
},
|
|
4737
4722
|
rules: {
|
|
4738
|
-
"no-restricted-imports": ["error",
|
|
4723
|
+
"no-restricted-imports": ["error", reactRestrictedImports],
|
|
4739
4724
|
"react-hooks/exhaustive-deps": "off",
|
|
4740
4725
|
"react-hooks/refs": "off",
|
|
4741
4726
|
"react-refresh/only-export-components": "off",
|
|
4742
4727
|
"react/jsx-boolean-value": "error"
|
|
4743
4728
|
}
|
|
4744
4729
|
}];
|
|
4745
|
-
var react_default$1 = personalReact;
|
|
4746
4730
|
|
|
4747
4731
|
//#endregion
|
|
4748
4732
|
//#region src/configs/combined/react.ts
|
|
4749
4733
|
const combinedReact = [
|
|
4750
4734
|
{ name: "@alextheman/combined/react" },
|
|
4751
|
-
...
|
|
4752
|
-
...
|
|
4735
|
+
...generalReact,
|
|
4736
|
+
...internalReact
|
|
4753
4737
|
];
|
|
4754
|
-
var react_default = combinedReact;
|
|
4755
4738
|
|
|
4756
4739
|
//#endregion
|
|
4757
4740
|
//#region src/configs/combined/javaScriptReact.ts
|
|
4758
4741
|
function combinedJavaScriptReact(plugin) {
|
|
4759
4742
|
return [
|
|
4760
4743
|
{ name: "@alextheman/combined/javascript-react" },
|
|
4761
|
-
...
|
|
4762
|
-
...
|
|
4744
|
+
...combinedJavaScript(plugin),
|
|
4745
|
+
...combinedReact
|
|
4763
4746
|
];
|
|
4764
4747
|
}
|
|
4765
|
-
var javaScriptReact_default = combinedJavaScriptReact;
|
|
4766
4748
|
|
|
4767
4749
|
//#endregion
|
|
4768
4750
|
//#region src/configs/general/packageJson.ts
|
|
@@ -4770,16 +4752,15 @@ const generalPackageJson = [eslint_plugin_package_json.default.configs.recommend
|
|
|
4770
4752
|
plugins: { "package-json": eslint_plugin_package_json.default },
|
|
4771
4753
|
rules: { "package-json/scripts-name-casing": "error" }
|
|
4772
4754
|
}];
|
|
4773
|
-
var packageJson_default = generalPackageJson;
|
|
4774
4755
|
|
|
4775
4756
|
//#endregion
|
|
4776
4757
|
//#region src/configs/general/typeScript.ts
|
|
4777
4758
|
const generalTypeScript = [
|
|
4778
|
-
...typescript_eslint.default.configs.recommended,
|
|
4779
|
-
...
|
|
4759
|
+
...(0, _eslint_compat.fixupConfigRules)(typescript_eslint.default.configs.recommended),
|
|
4760
|
+
...generalJavaScript,
|
|
4780
4761
|
{
|
|
4781
4762
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4782
|
-
languageOptions:
|
|
4763
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4783
4764
|
name: "@alextheman/general/typescript",
|
|
4784
4765
|
rules: {
|
|
4785
4766
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
@@ -4787,7 +4768,7 @@ const generalTypeScript = [
|
|
|
4787
4768
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
4788
4769
|
"@typescript-eslint/no-deprecated": "warn",
|
|
4789
4770
|
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
4790
|
-
"@typescript-eslint/no-unused-vars": ["error",
|
|
4771
|
+
"@typescript-eslint/no-unused-vars": ["error", unusedVarsIgnorePatterns],
|
|
4791
4772
|
"import/no-unresolved": "off",
|
|
4792
4773
|
"no-redeclare": "off",
|
|
4793
4774
|
"no-undef": "off",
|
|
@@ -4795,21 +4776,25 @@ const generalTypeScript = [
|
|
|
4795
4776
|
}
|
|
4796
4777
|
}
|
|
4797
4778
|
];
|
|
4798
|
-
var typeScript_default$2 = generalTypeScript;
|
|
4799
4779
|
|
|
4800
4780
|
//#endregion
|
|
4801
|
-
//#region src/configs/
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4781
|
+
//#region src/configs/internal/alexCLine.ts
|
|
4782
|
+
function internalAlexCLine(plugin) {
|
|
4783
|
+
return [
|
|
4784
|
+
...combinedTypeScript(plugin),
|
|
4785
|
+
{
|
|
4786
|
+
files: ["src/**/*.ts"],
|
|
4787
|
+
name: "@alextheman/internal/alex-c-line",
|
|
4788
|
+
plugins: { n: eslint_plugin_n.default },
|
|
4789
|
+
rules: { "n/hashbang": "off" }
|
|
4790
|
+
},
|
|
4791
|
+
{
|
|
4792
|
+
files: ["src/commands/index.ts", "src/configs/internal/**"],
|
|
4793
|
+
plugins: { perfectionist: eslint_plugin_perfectionist.default },
|
|
4794
|
+
rules: { "perfectionist/sort-objects": ["error", sortObjects] }
|
|
4795
|
+
}
|
|
4796
|
+
];
|
|
4797
|
+
}
|
|
4813
4798
|
|
|
4814
4799
|
//#endregion
|
|
4815
4800
|
//#region src/configs/helpers/requireJsdocOptions.ts
|
|
@@ -4821,13 +4806,12 @@ const requireJsdocOptions = {
|
|
|
4821
4806
|
MethodDefinition: true
|
|
4822
4807
|
}
|
|
4823
4808
|
};
|
|
4824
|
-
var requireJsdocOptions_default = requireJsdocOptions;
|
|
4825
4809
|
|
|
4826
4810
|
//#endregion
|
|
4827
|
-
//#region src/configs/
|
|
4828
|
-
const
|
|
4811
|
+
//#region src/configs/internal/jsdoc.ts
|
|
4812
|
+
const internalJsdoc = [eslint_plugin_jsdoc.default.configs["flat/recommended-typescript-error"], { rules: {
|
|
4829
4813
|
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
|
|
4830
|
-
"jsdoc/require-jsdoc": ["warn",
|
|
4814
|
+
"jsdoc/require-jsdoc": ["warn", requireJsdocOptions],
|
|
4831
4815
|
"jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
|
|
4832
4816
|
return {
|
|
4833
4817
|
context,
|
|
@@ -4849,20 +4833,18 @@ const personalTypeScriptPackage = [eslint_plugin_jsdoc.default.configs["flat/rec
|
|
|
4849
4833
|
{ startLines: 1 }
|
|
4850
4834
|
]
|
|
4851
4835
|
} }];
|
|
4852
|
-
var typeScriptPackage_default$1 = personalTypeScriptPackage;
|
|
4853
4836
|
|
|
4854
4837
|
//#endregion
|
|
4855
|
-
//#region src/configs/
|
|
4856
|
-
const
|
|
4838
|
+
//#region src/configs/internal/components.ts
|
|
4839
|
+
const internalComponents = [...internalJsdoc, { rules: {
|
|
4857
4840
|
"jsdoc/check-param-names": "off",
|
|
4858
4841
|
"jsdoc/require-param": ["error", { checkDestructured: false }],
|
|
4859
4842
|
"jsdoc/require-returns": "off"
|
|
4860
4843
|
} }];
|
|
4861
|
-
var components_default = personalComponents;
|
|
4862
4844
|
|
|
4863
4845
|
//#endregion
|
|
4864
4846
|
//#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
|
|
4865
|
-
const eslintPluginRestrictedImports =
|
|
4847
|
+
const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
|
|
4866
4848
|
{
|
|
4867
4849
|
importNames: ["default"],
|
|
4868
4850
|
message: "Do not import the plugin directly from the config files. Please create a function that takes in the plugin and returns the config instead.",
|
|
@@ -4885,14 +4867,14 @@ const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRe
|
|
|
4885
4867
|
name: "eslint-vitest-rule-tester"
|
|
4886
4868
|
}
|
|
4887
4869
|
] });
|
|
4888
|
-
var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
|
|
4889
4870
|
|
|
4890
4871
|
//#endregion
|
|
4891
|
-
//#region src/configs/
|
|
4892
|
-
function
|
|
4872
|
+
//#region src/configs/internal/eslintPlugin.ts
|
|
4873
|
+
function internalEslintPlugin(plugin) {
|
|
4893
4874
|
return [
|
|
4875
|
+
...combinedTypeScriptPackage(plugin),
|
|
4894
4876
|
{
|
|
4895
|
-
name: "@alextheman/
|
|
4877
|
+
name: "@alextheman/internal/eslint-plugin",
|
|
4896
4878
|
plugins: {
|
|
4897
4879
|
"@alextheman": plugin,
|
|
4898
4880
|
jsdoc: eslint_plugin_jsdoc.default,
|
|
@@ -4901,24 +4883,23 @@ function personalEslintPlugin(plugin) {
|
|
|
4901
4883
|
rules: {
|
|
4902
4884
|
"@alextheman/no-plugin-configs-access-from-src-configs": "error",
|
|
4903
4885
|
"jsdoc/require-jsdoc": "off",
|
|
4904
|
-
"no-restricted-imports": ["error",
|
|
4886
|
+
"no-restricted-imports": ["error", eslintPluginRestrictedImports]
|
|
4905
4887
|
}
|
|
4906
4888
|
},
|
|
4907
4889
|
{
|
|
4908
4890
|
files: ["src/rules/index.ts", "src/configs/**"],
|
|
4909
|
-
rules: { "perfectionist/sort-objects": ["error",
|
|
4891
|
+
rules: { "perfectionist/sort-objects": ["error", sortObjects] }
|
|
4910
4892
|
},
|
|
4911
4893
|
{
|
|
4912
4894
|
files: ["src/utility/public/**"],
|
|
4913
|
-
rules: { "jsdoc/require-jsdoc": ["error",
|
|
4895
|
+
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
4914
4896
|
}
|
|
4915
4897
|
];
|
|
4916
4898
|
}
|
|
4917
|
-
var eslintPlugin_default = personalEslintPlugin;
|
|
4918
4899
|
|
|
4919
4900
|
//#endregion
|
|
4920
4901
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
4921
|
-
const neurosongsBackEndRestrictedImports =
|
|
4902
|
+
const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, { paths: [
|
|
4922
4903
|
{
|
|
4923
4904
|
importNames: ["setPrismaClient"],
|
|
4924
4905
|
message: "Do not attempt to reset the Prisma Client outside setup files.",
|
|
@@ -4934,17 +4915,16 @@ const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(gene
|
|
|
4934
4915
|
name: "@neurosongs/prisma-client/prisma"
|
|
4935
4916
|
}
|
|
4936
4917
|
] });
|
|
4937
|
-
var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImports;
|
|
4938
4918
|
|
|
4939
4919
|
//#endregion
|
|
4940
|
-
//#region src/configs/
|
|
4941
|
-
const
|
|
4920
|
+
//#region src/configs/internal/neurosongsBackEnd.ts
|
|
4921
|
+
const internalNeurosongsBackEnd = [
|
|
4942
4922
|
{
|
|
4943
|
-
name: "@alextheman/
|
|
4923
|
+
name: "@alextheman/internal/neurosongs-back-end",
|
|
4944
4924
|
plugins: { n: eslint_plugin_n.default },
|
|
4945
4925
|
rules: {
|
|
4946
4926
|
"n/no-extraneous-import": "off",
|
|
4947
|
-
"no-restricted-imports": ["error",
|
|
4927
|
+
"no-restricted-imports": ["error", neurosongsBackEndRestrictedImports]
|
|
4948
4928
|
}
|
|
4949
4929
|
},
|
|
4950
4930
|
{
|
|
@@ -4960,11 +4940,10 @@ const personalNeurosongsBackEnd = [
|
|
|
4960
4940
|
] }
|
|
4961
4941
|
}
|
|
4962
4942
|
];
|
|
4963
|
-
var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
4964
4943
|
|
|
4965
4944
|
//#endregion
|
|
4966
4945
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
4967
|
-
const neurosongsFrontEndRestrictedImports =
|
|
4946
|
+
const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, reactRestrictedImports, {
|
|
4968
4947
|
paths: [{
|
|
4969
4948
|
importNames: ["PrismaClient"],
|
|
4970
4949
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead.",
|
|
@@ -4981,30 +4960,28 @@ const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(rea
|
|
|
4981
4960
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead."
|
|
4982
4961
|
}]
|
|
4983
4962
|
});
|
|
4984
|
-
var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedImports;
|
|
4985
4963
|
|
|
4986
4964
|
//#endregion
|
|
4987
|
-
//#region src/configs/
|
|
4988
|
-
const
|
|
4989
|
-
name: "@alextheman/
|
|
4965
|
+
//#region src/configs/internal/neurosongsFrontEnd.ts
|
|
4966
|
+
const internalNeurosongsFrontEnd = [{
|
|
4967
|
+
name: "@alextheman/internal/neurosongs-front-end",
|
|
4990
4968
|
plugins: { n: eslint_plugin_n.default },
|
|
4991
4969
|
rules: {
|
|
4992
4970
|
"n/no-extraneous-import": "off",
|
|
4993
|
-
"no-restricted-imports": ["error",
|
|
4971
|
+
"no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports]
|
|
4994
4972
|
}
|
|
4995
4973
|
}];
|
|
4996
|
-
var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
|
|
4997
4974
|
|
|
4998
4975
|
//#endregion
|
|
4999
|
-
//#region src/configs/
|
|
5000
|
-
function
|
|
4976
|
+
//#region src/configs/internal/typeScript.ts
|
|
4977
|
+
function internalTypeScript(plugin) {
|
|
5001
4978
|
return [{
|
|
5002
4979
|
files: ["**/*.ts", "**/*.tsx"],
|
|
5003
|
-
languageOptions:
|
|
5004
|
-
name: "@alextheman/
|
|
4980
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4981
|
+
name: "@alextheman/internal/typescript",
|
|
5005
4982
|
plugins: {
|
|
5006
4983
|
"@alextheman": plugin,
|
|
5007
|
-
"@typescript-eslint": typescript_eslint.default.plugin
|
|
4984
|
+
"@typescript-eslint": (0, _eslint_compat.fixupPluginRules)(typescript_eslint.default.plugin)
|
|
5008
4985
|
},
|
|
5009
4986
|
rules: {
|
|
5010
4987
|
"@alextheman/standardise-error-messages": "error",
|
|
@@ -5017,103 +4994,99 @@ function personalTypeScript(plugin) {
|
|
|
5017
4994
|
}
|
|
5018
4995
|
}];
|
|
5019
4996
|
}
|
|
5020
|
-
var typeScript_default$1 = personalTypeScript;
|
|
5021
4997
|
|
|
5022
4998
|
//#endregion
|
|
5023
|
-
//#region src/configs/
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
}
|
|
5035
|
-
|
|
4999
|
+
//#region src/configs/internal/utility.ts
|
|
5000
|
+
function internalUtility(plugin) {
|
|
5001
|
+
return [...combinedTypeScriptPackage(plugin), {
|
|
5002
|
+
name: "@alextheman/internal/utility",
|
|
5003
|
+
plugins: {
|
|
5004
|
+
"@typescript-eslint": typescript_eslint.default.plugin,
|
|
5005
|
+
jsdoc: eslint_plugin_jsdoc.default
|
|
5006
|
+
},
|
|
5007
|
+
rules: {
|
|
5008
|
+
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
5009
|
+
"jsdoc/require-jsdoc": ["error", requireJsdocOptions]
|
|
5010
|
+
}
|
|
5011
|
+
}];
|
|
5012
|
+
}
|
|
5036
5013
|
|
|
5037
5014
|
//#endregion
|
|
5038
5015
|
//#region src/configs/combined/typeScript.ts
|
|
5039
5016
|
function combinedTypeScript(plugin) {
|
|
5040
5017
|
return [
|
|
5041
5018
|
{ name: "@alextheman/combined/typescript" },
|
|
5042
|
-
...
|
|
5043
|
-
...
|
|
5044
|
-
...
|
|
5019
|
+
...combinedJavaScript(plugin),
|
|
5020
|
+
...generalTypeScript,
|
|
5021
|
+
...internalJavaScript(plugin),
|
|
5022
|
+
...internalTypeScript(plugin)
|
|
5045
5023
|
];
|
|
5046
5024
|
}
|
|
5047
|
-
var typeScript_default = combinedTypeScript;
|
|
5048
5025
|
|
|
5049
5026
|
//#endregion
|
|
5050
5027
|
//#region src/configs/combined/typeScriptPackage.ts
|
|
5051
5028
|
function combinedTypeScriptPackage(plugin) {
|
|
5052
5029
|
return [
|
|
5053
5030
|
{ name: "@alextheman/combined/typescript-package" },
|
|
5054
|
-
...
|
|
5055
|
-
...
|
|
5031
|
+
...combinedTypeScript(plugin),
|
|
5032
|
+
...internalJsdoc
|
|
5056
5033
|
];
|
|
5057
5034
|
}
|
|
5058
|
-
var typeScriptPackage_default = combinedTypeScriptPackage;
|
|
5059
5035
|
|
|
5060
5036
|
//#endregion
|
|
5061
5037
|
//#region src/configs/combined/typeScriptReact.ts
|
|
5062
5038
|
function combinedTypeScriptReact(plugin) {
|
|
5063
5039
|
return [
|
|
5064
5040
|
{ name: "@alextheman/combined/typescript-react" },
|
|
5065
|
-
...
|
|
5066
|
-
...
|
|
5041
|
+
...combinedTypeScript(plugin),
|
|
5042
|
+
...combinedReact
|
|
5067
5043
|
];
|
|
5068
5044
|
}
|
|
5069
|
-
var typeScriptReact_default = combinedTypeScriptReact;
|
|
5070
5045
|
|
|
5071
5046
|
//#endregion
|
|
5072
5047
|
//#region src/configs/index.ts
|
|
5073
5048
|
function createAlexPluginConfigs(plugin) {
|
|
5074
|
-
return
|
|
5049
|
+
return flattenConfigs({
|
|
5075
5050
|
combined: {
|
|
5076
|
-
javascript: [...
|
|
5077
|
-
javascriptReact: [...
|
|
5078
|
-
react: [...
|
|
5079
|
-
tests: [...
|
|
5080
|
-
typescript: [...
|
|
5081
|
-
typescriptPackage: [...
|
|
5082
|
-
typescriptReact: [...
|
|
5051
|
+
javascript: [...combinedJavaScript(plugin), ...generalPackageJson],
|
|
5052
|
+
javascriptReact: [...combinedJavaScriptReact(plugin), ...generalPackageJson],
|
|
5053
|
+
react: [...combinedReact, ...generalPackageJson],
|
|
5054
|
+
tests: [...combinedTests(plugin), ...generalPackageJson],
|
|
5055
|
+
typescript: [...combinedTypeScript(plugin), ...generalPackageJson],
|
|
5056
|
+
typescriptPackage: [...combinedTypeScriptPackage(plugin), ...generalPackageJson],
|
|
5057
|
+
typescriptReact: [...combinedTypeScriptReact(plugin), ...generalPackageJson]
|
|
5083
5058
|
},
|
|
5084
5059
|
general: {
|
|
5085
|
-
javascript:
|
|
5086
|
-
packageJson:
|
|
5087
|
-
react:
|
|
5088
|
-
typescript:
|
|
5060
|
+
javascript: generalJavaScript,
|
|
5061
|
+
packageJson: generalPackageJson,
|
|
5062
|
+
react: generalReact,
|
|
5063
|
+
typescript: generalTypeScript
|
|
5089
5064
|
},
|
|
5090
|
-
|
|
5091
|
-
alexCLine:
|
|
5092
|
-
components:
|
|
5093
|
-
eslintPlugin:
|
|
5094
|
-
javascript:
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
utility:
|
|
5065
|
+
internal: {
|
|
5066
|
+
alexCLine: internalAlexCLine(plugin),
|
|
5067
|
+
components: internalComponents,
|
|
5068
|
+
eslintPlugin: internalEslintPlugin(plugin),
|
|
5069
|
+
javascript: internalJavaScript(plugin),
|
|
5070
|
+
jsdoc: internalJsdoc,
|
|
5071
|
+
neurosongsBackEnd: internalNeurosongsBackEnd,
|
|
5072
|
+
neurosongsFrontEnd: internalNeurosongsFrontEnd,
|
|
5073
|
+
react: internalReact,
|
|
5074
|
+
tests: internalTests,
|
|
5075
|
+
typescript: internalTypeScript(plugin),
|
|
5076
|
+
utility: internalUtility(plugin)
|
|
5102
5077
|
},
|
|
5103
5078
|
plugin: {
|
|
5104
|
-
base:
|
|
5105
|
-
tests:
|
|
5079
|
+
base: pluginBase(plugin),
|
|
5080
|
+
tests: pluginTests(plugin)
|
|
5106
5081
|
}
|
|
5107
5082
|
});
|
|
5108
5083
|
}
|
|
5109
|
-
var configs_default = createAlexPluginConfigs;
|
|
5110
5084
|
|
|
5111
5085
|
//#endregion
|
|
5112
5086
|
//#region src/rules/helpers/createRule.ts
|
|
5113
5087
|
const createRule = _typescript_eslint_utils.ESLintUtils.RuleCreator((ruleName) => {
|
|
5114
5088
|
return ruleName;
|
|
5115
5089
|
});
|
|
5116
|
-
var createRule_default = createRule;
|
|
5117
5090
|
|
|
5118
5091
|
//#endregion
|
|
5119
5092
|
//#region src/rules/consistent-test-function.ts
|
|
@@ -5125,14 +5098,14 @@ const consistentTestFunctionOptionsSchema = zod.default.object({
|
|
|
5125
5098
|
function parseConsistentTestFunctionOptions(data) {
|
|
5126
5099
|
return consistentTestFunctionOptionsSchema.parse(data);
|
|
5127
5100
|
}
|
|
5128
|
-
const consistentTestFunction =
|
|
5101
|
+
const consistentTestFunction = createRule({
|
|
5129
5102
|
name: "consistent-test-function",
|
|
5130
5103
|
meta: {
|
|
5131
5104
|
docs: { description: "Enforce a consistent function (either `test` or `it`)" },
|
|
5132
5105
|
messages: { message: "Unexpected {{source}}. Please use {{preference}} instead." },
|
|
5133
5106
|
type: "suggestion",
|
|
5134
5107
|
fixable: "code",
|
|
5135
|
-
schema:
|
|
5108
|
+
schema: createRuleSchemaFromZodSchema(consistentTestFunctionOptionsSchema)
|
|
5136
5109
|
},
|
|
5137
5110
|
defaultOptions: [{
|
|
5138
5111
|
preference: "test",
|
|
@@ -5149,7 +5122,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5149
5122
|
source: node.callee.name,
|
|
5150
5123
|
preference
|
|
5151
5124
|
},
|
|
5152
|
-
fix:
|
|
5125
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5153
5126
|
return fixer.replaceText(node.callee, "test");
|
|
5154
5127
|
})
|
|
5155
5128
|
});
|
|
@@ -5160,7 +5133,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5160
5133
|
source: node.callee.name,
|
|
5161
5134
|
preference
|
|
5162
5135
|
},
|
|
5163
|
-
fix:
|
|
5136
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5164
5137
|
return fixer.replaceText(node.callee, "it");
|
|
5165
5138
|
})
|
|
5166
5139
|
});
|
|
@@ -5174,12 +5147,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5174
5147
|
source: specifier.imported.name,
|
|
5175
5148
|
preference
|
|
5176
5149
|
},
|
|
5177
|
-
fix:
|
|
5150
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5178
5151
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5179
5152
|
return specifier.type === _typescript_eslint_utils.AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5180
5153
|
});
|
|
5181
5154
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5182
|
-
const newSpecifiers =
|
|
5155
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "it");
|
|
5183
5156
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5184
5157
|
}
|
|
5185
5158
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5192,12 +5165,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5192
5165
|
source: specifier.imported.name,
|
|
5193
5166
|
preference
|
|
5194
5167
|
},
|
|
5195
|
-
fix:
|
|
5168
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5196
5169
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5197
5170
|
return specifier.type === _typescript_eslint_utils.AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5198
5171
|
});
|
|
5199
5172
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5200
|
-
const newSpecifiers =
|
|
5173
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "test");
|
|
5201
5174
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5202
5175
|
}
|
|
5203
5176
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5208,11 +5181,10 @@ const consistentTestFunction = createRule_default({
|
|
|
5208
5181
|
};
|
|
5209
5182
|
}
|
|
5210
5183
|
});
|
|
5211
|
-
var consistent_test_function_default = consistentTestFunction;
|
|
5212
5184
|
|
|
5213
5185
|
//#endregion
|
|
5214
5186
|
//#region src/rules/no-isolated-tests.ts
|
|
5215
|
-
const noIsolatedTests =
|
|
5187
|
+
const noIsolatedTests = createRule({
|
|
5216
5188
|
name: "no-isolated-tests",
|
|
5217
5189
|
meta: {
|
|
5218
5190
|
docs: { description: "Forbid the use of describe.only() and test.only()" },
|
|
@@ -5223,7 +5195,7 @@ const noIsolatedTests = createRule_default({
|
|
|
5223
5195
|
defaultOptions: [],
|
|
5224
5196
|
create(context) {
|
|
5225
5197
|
return { CallExpression(node) {
|
|
5226
|
-
if (
|
|
5198
|
+
if (checkCallExpression(node, "describe", "only") || checkCallExpression(node, "test", "only") || checkCallExpression(node, "it", "only")) return context.report({
|
|
5227
5199
|
node,
|
|
5228
5200
|
messageId: "message",
|
|
5229
5201
|
data: { source: node.callee.object.name }
|
|
@@ -5231,7 +5203,6 @@ const noIsolatedTests = createRule_default({
|
|
|
5231
5203
|
} };
|
|
5232
5204
|
}
|
|
5233
5205
|
});
|
|
5234
|
-
var no_isolated_tests_default = noIsolatedTests;
|
|
5235
5206
|
|
|
5236
5207
|
//#endregion
|
|
5237
5208
|
//#region src/rules/no-namespace-imports.ts
|
|
@@ -5239,13 +5210,13 @@ const noNamespaceImportsOptionsSchema = zod.default.object({ allow: zod.default.
|
|
|
5239
5210
|
function parseNoNamespaceImportsOptions(data) {
|
|
5240
5211
|
return noNamespaceImportsOptionsSchema.parse(data);
|
|
5241
5212
|
}
|
|
5242
|
-
const noNamespaceImports =
|
|
5213
|
+
const noNamespaceImports = createRule({
|
|
5243
5214
|
name: "no-namespace-imports",
|
|
5244
5215
|
meta: {
|
|
5245
5216
|
docs: { description: "Forbid the use of import *" },
|
|
5246
5217
|
messages: { message: "Import * from \"{{source}}\" is not allowed. Please use named imports instead." },
|
|
5247
5218
|
type: "suggestion",
|
|
5248
|
-
schema:
|
|
5219
|
+
schema: createRuleSchemaFromZodSchema(noNamespaceImportsOptionsSchema)
|
|
5249
5220
|
},
|
|
5250
5221
|
defaultOptions: [{ allow: [""] }],
|
|
5251
5222
|
create(context) {
|
|
@@ -5263,11 +5234,10 @@ const noNamespaceImports = createRule_default({
|
|
|
5263
5234
|
} };
|
|
5264
5235
|
}
|
|
5265
5236
|
});
|
|
5266
|
-
var no_namespace_imports_default = noNamespaceImports;
|
|
5267
5237
|
|
|
5268
5238
|
//#endregion
|
|
5269
5239
|
//#region src/rules/no-plugin-configs-access-from-src-configs.ts
|
|
5270
|
-
const noPluginConfigAccessFromSrcConfigs =
|
|
5240
|
+
const noPluginConfigAccessFromSrcConfigs = createRule({
|
|
5271
5241
|
name: "no-plugin-configs-access-from-src-configs",
|
|
5272
5242
|
meta: {
|
|
5273
5243
|
docs: { description: "Forbid access of plugin.configs in src/configs" },
|
|
@@ -5288,7 +5258,6 @@ const noPluginConfigAccessFromSrcConfigs = createRule_default({
|
|
|
5288
5258
|
} };
|
|
5289
5259
|
}
|
|
5290
5260
|
});
|
|
5291
|
-
var no_plugin_configs_access_from_src_configs_default = noPluginConfigAccessFromSrcConfigs;
|
|
5292
5261
|
|
|
5293
5262
|
//#endregion
|
|
5294
5263
|
//#region src/rules/no-relative-imports.ts
|
|
@@ -5296,7 +5265,7 @@ const noRelativeImportsOptionsSchema = zod.default.object({ depth: zod.default.i
|
|
|
5296
5265
|
function parseNoRelativeImportsOptions(data) {
|
|
5297
5266
|
return noRelativeImportsOptionsSchema.parse(data);
|
|
5298
5267
|
}
|
|
5299
|
-
const noRelativeImports =
|
|
5268
|
+
const noRelativeImports = createRule({
|
|
5300
5269
|
name: "no-relative-imports",
|
|
5301
5270
|
meta: {
|
|
5302
5271
|
docs: { description: "Forbid the use of relative imports" },
|
|
@@ -5307,7 +5276,7 @@ const noRelativeImports = createRule_default({
|
|
|
5307
5276
|
stupidPath: "For the love of God, please do not mix relative path parts in your import statements like that! How can you possibly be ok with {{source}}?!"
|
|
5308
5277
|
},
|
|
5309
5278
|
type: "suggestion",
|
|
5310
|
-
schema:
|
|
5279
|
+
schema: createRuleSchemaFromZodSchema(noRelativeImportsOptionsSchema)
|
|
5311
5280
|
},
|
|
5312
5281
|
defaultOptions: [{ depth: 0 }],
|
|
5313
5282
|
create(context) {
|
|
@@ -5356,11 +5325,10 @@ const noRelativeImports = createRule_default({
|
|
|
5356
5325
|
} };
|
|
5357
5326
|
}
|
|
5358
5327
|
});
|
|
5359
|
-
var no_relative_imports_default = noRelativeImports;
|
|
5360
5328
|
|
|
5361
5329
|
//#endregion
|
|
5362
5330
|
//#region src/rules/no-skipped-tests.ts
|
|
5363
|
-
const noSkippedTests =
|
|
5331
|
+
const noSkippedTests = createRule({
|
|
5364
5332
|
name: "no-skipped-tests",
|
|
5365
5333
|
meta: {
|
|
5366
5334
|
docs: { description: "Forbid the use of describe.skip() and test.skip()" },
|
|
@@ -5371,7 +5339,7 @@ const noSkippedTests = createRule_default({
|
|
|
5371
5339
|
defaultOptions: [],
|
|
5372
5340
|
create(context) {
|
|
5373
5341
|
return { CallExpression(node) {
|
|
5374
|
-
if (
|
|
5342
|
+
if (checkCallExpression(node, "describe", "skip") || checkCallExpression(node, "test", "skip") || checkCallExpression(node, "it", "skip")) return context.report({
|
|
5375
5343
|
node,
|
|
5376
5344
|
messageId: "message",
|
|
5377
5345
|
data: { source: node.callee.object.name }
|
|
@@ -5379,7 +5347,6 @@ const noSkippedTests = createRule_default({
|
|
|
5379
5347
|
} };
|
|
5380
5348
|
}
|
|
5381
5349
|
});
|
|
5382
|
-
var no_skipped_tests_default = noSkippedTests;
|
|
5383
5350
|
|
|
5384
5351
|
//#endregion
|
|
5385
5352
|
//#region src/rules/standardise-error-messages.ts
|
|
@@ -5387,7 +5354,7 @@ const standardiseErrorMessagesOptionsSchema = zod.default.object({ regex: zod.de
|
|
|
5387
5354
|
function parseStandardiseErrorMessagesOptions(data) {
|
|
5388
5355
|
return standardiseErrorMessagesOptionsSchema.parse(data);
|
|
5389
5356
|
}
|
|
5390
|
-
const schema =
|
|
5357
|
+
const schema = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5391
5358
|
const defaultErrorRegex = "^[A-Z]+(?:_[A-Z]+)*$";
|
|
5392
5359
|
function checkCurrentNode(context, node) {
|
|
5393
5360
|
const { regex: errorRegex = defaultErrorRegex } = parseStandardiseErrorMessagesOptions(context.options[0] ?? { regex: defaultErrorRegex });
|
|
@@ -5404,7 +5371,7 @@ function checkCurrentNode(context, node) {
|
|
|
5404
5371
|
});
|
|
5405
5372
|
}
|
|
5406
5373
|
}
|
|
5407
|
-
const standardiseErrorMessages =
|
|
5374
|
+
const standardiseErrorMessages = createRule({
|
|
5408
5375
|
name: "standardise-error-messages",
|
|
5409
5376
|
meta: {
|
|
5410
5377
|
docs: { description: "Enforce a consistent standard for error messages." },
|
|
@@ -5424,7 +5391,6 @@ const standardiseErrorMessages = createRule_default({
|
|
|
5424
5391
|
};
|
|
5425
5392
|
}
|
|
5426
5393
|
});
|
|
5427
|
-
var standardise_error_messages_default = standardiseErrorMessages;
|
|
5428
5394
|
|
|
5429
5395
|
//#endregion
|
|
5430
5396
|
//#region src/rules/use-normalized-imports.ts
|
|
@@ -5432,13 +5398,13 @@ const useNormalizedImportsOptionsSchema = zod.default.object({ fixable: zod.defa
|
|
|
5432
5398
|
function parseUseNormalizedImportsOptions(data) {
|
|
5433
5399
|
return useNormalizedImportsOptionsSchema.parse(data);
|
|
5434
5400
|
}
|
|
5435
|
-
const useNormalizedImports =
|
|
5401
|
+
const useNormalizedImports = createRule({
|
|
5436
5402
|
name: "use-normalized-imports",
|
|
5437
5403
|
meta: {
|
|
5438
5404
|
docs: { description: "Enforce the usage of normalized imports (i.e. import paths that you would only get from path.posix.normalize())" },
|
|
5439
5405
|
messages: { pathNotNormalized: "Import path {{nonNormalized}} is not normalised. Please use {{normalized}} instead." },
|
|
5440
5406
|
type: "suggestion",
|
|
5441
|
-
schema:
|
|
5407
|
+
schema: createRuleSchemaFromZodSchema(useNormalizedImportsOptionsSchema),
|
|
5442
5408
|
fixable: "code"
|
|
5443
5409
|
},
|
|
5444
5410
|
defaultOptions: [{ fixable: true }],
|
|
@@ -5453,7 +5419,7 @@ const useNormalizedImports = createRule_default({
|
|
|
5453
5419
|
nonNormalized: node.source.value,
|
|
5454
5420
|
normalized: normalizedPath
|
|
5455
5421
|
},
|
|
5456
|
-
fix:
|
|
5422
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5457
5423
|
const [quote] = node.source.raw;
|
|
5458
5424
|
return fixer.replaceText(node.source, `${quote}${normalizedPath}${quote}`);
|
|
5459
5425
|
})
|
|
@@ -5461,7 +5427,6 @@ const useNormalizedImports = createRule_default({
|
|
|
5461
5427
|
} };
|
|
5462
5428
|
}
|
|
5463
5429
|
});
|
|
5464
|
-
var use_normalized_imports_default = useNormalizedImports;
|
|
5465
5430
|
|
|
5466
5431
|
//#endregion
|
|
5467
5432
|
//#region src/rules/use-object-shorthand.ts
|
|
@@ -5469,14 +5434,14 @@ const useObjectShorthandOptionsSchema = zod.default.object({ fixable: zod.defaul
|
|
|
5469
5434
|
function parseUseObjectShorthandOptions(data) {
|
|
5470
5435
|
return useObjectShorthandOptionsSchema.parse(data);
|
|
5471
5436
|
}
|
|
5472
|
-
const useObjectShorthand =
|
|
5437
|
+
const useObjectShorthand = createRule({
|
|
5473
5438
|
name: "use-object-shorthand",
|
|
5474
5439
|
meta: {
|
|
5475
5440
|
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5476
5441
|
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5477
5442
|
type: "suggestion",
|
|
5478
5443
|
fixable: "code",
|
|
5479
|
-
schema:
|
|
5444
|
+
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5480
5445
|
},
|
|
5481
5446
|
defaultOptions: [{ fixable: true }],
|
|
5482
5447
|
create(context) {
|
|
@@ -5486,7 +5451,7 @@ const useObjectShorthand = createRule_default({
|
|
|
5486
5451
|
node,
|
|
5487
5452
|
messageId: "useShorthand",
|
|
5488
5453
|
data: { source: context.sourceCode.getText(node) },
|
|
5489
|
-
fix:
|
|
5454
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5490
5455
|
const key = node.key;
|
|
5491
5456
|
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5492
5457
|
})
|
|
@@ -5494,26 +5459,25 @@ const useObjectShorthand = createRule_default({
|
|
|
5494
5459
|
} };
|
|
5495
5460
|
}
|
|
5496
5461
|
});
|
|
5497
|
-
var use_object_shorthand_default = useObjectShorthand;
|
|
5498
5462
|
|
|
5499
5463
|
//#endregion
|
|
5500
5464
|
//#region src/rules/index.ts
|
|
5501
5465
|
var rules_default = {
|
|
5502
|
-
"consistent-test-function":
|
|
5503
|
-
"no-isolated-tests":
|
|
5504
|
-
"no-namespace-imports":
|
|
5505
|
-
"no-plugin-configs-access-from-src-configs":
|
|
5506
|
-
"no-relative-imports":
|
|
5507
|
-
"no-skipped-tests":
|
|
5508
|
-
"standardise-error-messages":
|
|
5509
|
-
"use-normalized-imports":
|
|
5510
|
-
"use-object-shorthand":
|
|
5466
|
+
"consistent-test-function": consistentTestFunction,
|
|
5467
|
+
"no-isolated-tests": noIsolatedTests,
|
|
5468
|
+
"no-namespace-imports": noNamespaceImports,
|
|
5469
|
+
"no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
|
|
5470
|
+
"no-relative-imports": noRelativeImports,
|
|
5471
|
+
"no-skipped-tests": noSkippedTests,
|
|
5472
|
+
"standardise-error-messages": standardiseErrorMessages,
|
|
5473
|
+
"use-normalized-imports": useNormalizedImports,
|
|
5474
|
+
"use-object-shorthand": useObjectShorthand
|
|
5511
5475
|
};
|
|
5512
5476
|
|
|
5513
5477
|
//#endregion
|
|
5514
5478
|
//#region package.json
|
|
5515
5479
|
var name = "@alextheman/eslint-plugin";
|
|
5516
|
-
var version = "5.
|
|
5480
|
+
var version = "5.6.0";
|
|
5517
5481
|
|
|
5518
5482
|
//#endregion
|
|
5519
5483
|
//#region src/alexPlugin.ts
|
|
@@ -5526,21 +5490,20 @@ const alexPlugin = {
|
|
|
5526
5490
|
configs: {},
|
|
5527
5491
|
rules: rules_default
|
|
5528
5492
|
};
|
|
5529
|
-
alexPlugin.configs =
|
|
5530
|
-
var alexPlugin_default = alexPlugin;
|
|
5493
|
+
alexPlugin.configs = createAlexPluginConfigs((0, _alextheman_utility.deepFreeze)((0, _alextheman_utility.deepCopy)(alexPlugin)));
|
|
5531
5494
|
|
|
5532
5495
|
//#endregion
|
|
5533
5496
|
//#region src/index.ts
|
|
5534
|
-
var src_default =
|
|
5497
|
+
var src_default = alexPlugin;
|
|
5535
5498
|
|
|
5536
5499
|
//#endregion
|
|
5537
|
-
exports.checkCallExpression =
|
|
5538
|
-
exports.combineRestrictedImports =
|
|
5539
|
-
exports.createRuleSchemaFromZodSchema =
|
|
5500
|
+
exports.checkCallExpression = checkCallExpression;
|
|
5501
|
+
exports.combineRestrictedImports = combineRestrictedImports;
|
|
5502
|
+
exports.createRuleSchemaFromZodSchema = createRuleSchemaFromZodSchema;
|
|
5540
5503
|
exports.default = src_default;
|
|
5541
|
-
exports.fixOnCondition =
|
|
5542
|
-
exports.flattenConfigs =
|
|
5543
|
-
exports.getImportSpecifiersAfterRemoving =
|
|
5544
|
-
exports.prettierConfig =
|
|
5545
|
-
exports.typeDocConfig =
|
|
5546
|
-
exports.vitestConfig =
|
|
5504
|
+
exports.fixOnCondition = fixOnCondition;
|
|
5505
|
+
exports.flattenConfigs = flattenConfigs;
|
|
5506
|
+
exports.getImportSpecifiersAfterRemoving = getImportSpecifiersAfterRemoving;
|
|
5507
|
+
exports.prettierConfig = prettierConfig;
|
|
5508
|
+
exports.typeDocConfig = typeDocConfig;
|
|
5509
|
+
exports.vitestConfig = vitestConfig;
|