@alextheman/eslint-plugin 5.5.2 → 5.6.1
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 +195 -243
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +189 -237
- package/dist/utility/index.cjs +10 -17
- package/dist/utility/index.js +3 -11
- package/package.json +16 -15
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,17 +4571,15 @@ const sortObjects = {
|
|
|
4589
4571
|
type: "alphabetical",
|
|
4590
4572
|
useConfigurationIf: {}
|
|
4591
4573
|
};
|
|
4592
|
-
var sortObjects_default = sortObjects;
|
|
4593
4574
|
|
|
4594
4575
|
//#endregion
|
|
4595
4576
|
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4596
|
-
const personalRestrictedImports =
|
|
4577
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4597
4578
|
return {
|
|
4598
4579
|
message: "Please use node:fs/promises instead.",
|
|
4599
4580
|
name
|
|
4600
4581
|
};
|
|
4601
4582
|
})] });
|
|
4602
|
-
var personalRestrictedImports_default = personalRestrictedImports;
|
|
4603
4583
|
|
|
4604
4584
|
//#endregion
|
|
4605
4585
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
@@ -4615,11 +4595,10 @@ const sortNamedImports = {
|
|
|
4615
4595
|
specialCharacters: "keep",
|
|
4616
4596
|
type: "alphabetical"
|
|
4617
4597
|
};
|
|
4618
|
-
var sortNamedImports_default = sortNamedImports;
|
|
4619
4598
|
|
|
4620
4599
|
//#endregion
|
|
4621
|
-
//#region src/configs/
|
|
4622
|
-
function
|
|
4600
|
+
//#region src/configs/internal/javaScript.ts
|
|
4601
|
+
function internalJavaScript(plugin) {
|
|
4623
4602
|
return [{
|
|
4624
4603
|
files: [
|
|
4625
4604
|
"**/*.js",
|
|
@@ -4627,8 +4606,8 @@ function personalJavaScript(plugin) {
|
|
|
4627
4606
|
"**/*.ts",
|
|
4628
4607
|
"**/*.tsx"
|
|
4629
4608
|
],
|
|
4630
|
-
languageOptions:
|
|
4631
|
-
name: "@alextheman/
|
|
4609
|
+
languageOptions: javaScriptLanguageOptions,
|
|
4610
|
+
name: "@alextheman/internal/javascript",
|
|
4632
4611
|
plugins: {
|
|
4633
4612
|
"@alextheman": plugin,
|
|
4634
4613
|
import: eslint_plugin_import.default,
|
|
@@ -4647,16 +4626,16 @@ function personalJavaScript(plugin) {
|
|
|
4647
4626
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
4648
4627
|
"no-else-return": "error",
|
|
4649
4628
|
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
4650
|
-
"no-restricted-imports": ["error",
|
|
4629
|
+
"no-restricted-imports": ["error", personalRestrictedImports],
|
|
4651
4630
|
"operator-assignment": ["error", "always"],
|
|
4652
|
-
"perfectionist/sort-classes": ["error",
|
|
4653
|
-
"perfectionist/sort-exports": ["error",
|
|
4654
|
-
"perfectionist/sort-imports": ["error",
|
|
4655
|
-
"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],
|
|
4656
4635
|
"prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
|
|
4657
4636
|
"prefer-destructuring": "error",
|
|
4658
4637
|
"prefer-template": "error",
|
|
4659
|
-
"prettier/prettier": ["warn",
|
|
4638
|
+
"prettier/prettier": ["warn", prettierConfig],
|
|
4660
4639
|
"sort-vars": "error"
|
|
4661
4640
|
}
|
|
4662
4641
|
}, {
|
|
@@ -4664,20 +4643,18 @@ function personalJavaScript(plugin) {
|
|
|
4664
4643
|
rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
|
|
4665
4644
|
}];
|
|
4666
4645
|
}
|
|
4667
|
-
var javaScriptBase_default = personalJavaScript;
|
|
4668
4646
|
|
|
4669
4647
|
//#endregion
|
|
4670
4648
|
//#region src/configs/combined/javaScript.ts
|
|
4671
4649
|
function combinedJavaScript(plugin) {
|
|
4672
4650
|
return [
|
|
4673
4651
|
{ name: "@alextheman/combined/javascript" },
|
|
4674
|
-
...
|
|
4675
|
-
...
|
|
4676
|
-
...
|
|
4677
|
-
...
|
|
4652
|
+
...pluginBase(plugin),
|
|
4653
|
+
...generalJavaScript,
|
|
4654
|
+
...internalJavaScript(plugin),
|
|
4655
|
+
...combinedTests(plugin)
|
|
4678
4656
|
];
|
|
4679
4657
|
}
|
|
4680
|
-
var javaScript_default = combinedJavaScript;
|
|
4681
4658
|
|
|
4682
4659
|
//#endregion
|
|
4683
4660
|
//#region src/configs/helpers/eslint-plugin-react-hooks.ts
|
|
@@ -4689,7 +4666,6 @@ const reactHooks = {
|
|
|
4689
4666
|
"flat/recommended-latest": eslint_plugin_react_hooks.default.configs.flat["recommended-latest"]
|
|
4690
4667
|
}
|
|
4691
4668
|
};
|
|
4692
|
-
var eslint_plugin_react_hooks_default = reactHooks;
|
|
4693
4669
|
|
|
4694
4670
|
//#endregion
|
|
4695
4671
|
//#region src/configs/general/react.ts
|
|
@@ -4698,15 +4674,15 @@ const generalReact = [
|
|
|
4698
4674
|
eslint_plugin_react.default.configs.flat["jsx-runtime"],
|
|
4699
4675
|
eslint_plugin_jsx_a11y.default.flatConfigs.recommended,
|
|
4700
4676
|
{
|
|
4701
|
-
languageOptions:
|
|
4677
|
+
languageOptions: reactLanguageOptions,
|
|
4702
4678
|
name: "@alextheman/general/react",
|
|
4703
4679
|
plugins: {
|
|
4704
4680
|
react: eslint_plugin_react.default,
|
|
4705
|
-
"react-hooks":
|
|
4681
|
+
"react-hooks": reactHooks,
|
|
4706
4682
|
"react-refresh": eslint_plugin_react_refresh.default
|
|
4707
4683
|
},
|
|
4708
4684
|
rules: {
|
|
4709
|
-
...
|
|
4685
|
+
...reactHooks.configs["flat/recommended"].rules,
|
|
4710
4686
|
"react/destructuring-assignment": [
|
|
4711
4687
|
"error",
|
|
4712
4688
|
"always",
|
|
@@ -4725,55 +4701,50 @@ const generalReact = [
|
|
|
4725
4701
|
settings: { react: { version: "detect" } }
|
|
4726
4702
|
}
|
|
4727
4703
|
];
|
|
4728
|
-
var react_default$2 = generalReact;
|
|
4729
4704
|
|
|
4730
4705
|
//#endregion
|
|
4731
4706
|
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4732
|
-
const reactRestrictedImports =
|
|
4707
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4733
4708
|
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4734
4709
|
regex: "^@mui/[^/]+$"
|
|
4735
4710
|
}] });
|
|
4736
|
-
var reactRestrictedImports_default = reactRestrictedImports;
|
|
4737
4711
|
|
|
4738
4712
|
//#endregion
|
|
4739
|
-
//#region src/configs/
|
|
4740
|
-
const
|
|
4741
|
-
languageOptions:
|
|
4742
|
-
name: "@alextheman/
|
|
4713
|
+
//#region src/configs/internal/react.ts
|
|
4714
|
+
const internalReact = [{
|
|
4715
|
+
languageOptions: reactLanguageOptions,
|
|
4716
|
+
name: "@alextheman/internal/react",
|
|
4743
4717
|
plugins: {
|
|
4744
4718
|
react: eslint_plugin_react.default,
|
|
4745
|
-
"react-hooks":
|
|
4719
|
+
"react-hooks": reactHooks,
|
|
4746
4720
|
"react-refresh": eslint_plugin_react_refresh.default
|
|
4747
4721
|
},
|
|
4748
4722
|
rules: {
|
|
4749
|
-
"no-restricted-imports": ["error",
|
|
4723
|
+
"no-restricted-imports": ["error", reactRestrictedImports],
|
|
4750
4724
|
"react-hooks/exhaustive-deps": "off",
|
|
4751
4725
|
"react-hooks/refs": "off",
|
|
4752
4726
|
"react-refresh/only-export-components": "off",
|
|
4753
4727
|
"react/jsx-boolean-value": "error"
|
|
4754
4728
|
}
|
|
4755
4729
|
}];
|
|
4756
|
-
var react_default$1 = personalReact;
|
|
4757
4730
|
|
|
4758
4731
|
//#endregion
|
|
4759
4732
|
//#region src/configs/combined/react.ts
|
|
4760
4733
|
const combinedReact = [
|
|
4761
4734
|
{ name: "@alextheman/combined/react" },
|
|
4762
|
-
...
|
|
4763
|
-
...
|
|
4735
|
+
...generalReact,
|
|
4736
|
+
...internalReact
|
|
4764
4737
|
];
|
|
4765
|
-
var react_default = combinedReact;
|
|
4766
4738
|
|
|
4767
4739
|
//#endregion
|
|
4768
4740
|
//#region src/configs/combined/javaScriptReact.ts
|
|
4769
4741
|
function combinedJavaScriptReact(plugin) {
|
|
4770
4742
|
return [
|
|
4771
4743
|
{ name: "@alextheman/combined/javascript-react" },
|
|
4772
|
-
...
|
|
4773
|
-
...
|
|
4744
|
+
...combinedJavaScript(plugin),
|
|
4745
|
+
...combinedReact
|
|
4774
4746
|
];
|
|
4775
4747
|
}
|
|
4776
|
-
var javaScriptReact_default = combinedJavaScriptReact;
|
|
4777
4748
|
|
|
4778
4749
|
//#endregion
|
|
4779
4750
|
//#region src/configs/general/packageJson.ts
|
|
@@ -4781,16 +4752,15 @@ const generalPackageJson = [eslint_plugin_package_json.default.configs.recommend
|
|
|
4781
4752
|
plugins: { "package-json": eslint_plugin_package_json.default },
|
|
4782
4753
|
rules: { "package-json/scripts-name-casing": "error" }
|
|
4783
4754
|
}];
|
|
4784
|
-
var packageJson_default = generalPackageJson;
|
|
4785
4755
|
|
|
4786
4756
|
//#endregion
|
|
4787
4757
|
//#region src/configs/general/typeScript.ts
|
|
4788
4758
|
const generalTypeScript = [
|
|
4789
|
-
...typescript_eslint.default.configs.recommended,
|
|
4790
|
-
...
|
|
4759
|
+
...(0, _eslint_compat.fixupConfigRules)(typescript_eslint.default.configs.recommended),
|
|
4760
|
+
...generalJavaScript,
|
|
4791
4761
|
{
|
|
4792
4762
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4793
|
-
languageOptions:
|
|
4763
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4794
4764
|
name: "@alextheman/general/typescript",
|
|
4795
4765
|
rules: {
|
|
4796
4766
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
@@ -4798,7 +4768,7 @@ const generalTypeScript = [
|
|
|
4798
4768
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
4799
4769
|
"@typescript-eslint/no-deprecated": "warn",
|
|
4800
4770
|
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
4801
|
-
"@typescript-eslint/no-unused-vars": ["error",
|
|
4771
|
+
"@typescript-eslint/no-unused-vars": ["error", unusedVarsIgnorePatterns],
|
|
4802
4772
|
"import/no-unresolved": "off",
|
|
4803
4773
|
"no-redeclare": "off",
|
|
4804
4774
|
"no-undef": "off",
|
|
@@ -4806,21 +4776,25 @@ const generalTypeScript = [
|
|
|
4806
4776
|
}
|
|
4807
4777
|
}
|
|
4808
4778
|
];
|
|
4809
|
-
var typeScript_default$2 = generalTypeScript;
|
|
4810
4779
|
|
|
4811
4780
|
//#endregion
|
|
4812
|
-
//#region src/configs/
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
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
|
+
}
|
|
4824
4798
|
|
|
4825
4799
|
//#endregion
|
|
4826
4800
|
//#region src/configs/helpers/requireJsdocOptions.ts
|
|
@@ -4832,13 +4806,12 @@ const requireJsdocOptions = {
|
|
|
4832
4806
|
MethodDefinition: true
|
|
4833
4807
|
}
|
|
4834
4808
|
};
|
|
4835
|
-
var requireJsdocOptions_default = requireJsdocOptions;
|
|
4836
4809
|
|
|
4837
4810
|
//#endregion
|
|
4838
|
-
//#region src/configs/
|
|
4839
|
-
const
|
|
4811
|
+
//#region src/configs/internal/jsdoc.ts
|
|
4812
|
+
const internalJsdoc = [eslint_plugin_jsdoc.default.configs["flat/recommended-typescript-error"], { rules: {
|
|
4840
4813
|
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
|
|
4841
|
-
"jsdoc/require-jsdoc": ["warn",
|
|
4814
|
+
"jsdoc/require-jsdoc": ["warn", requireJsdocOptions],
|
|
4842
4815
|
"jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
|
|
4843
4816
|
return {
|
|
4844
4817
|
context,
|
|
@@ -4860,20 +4833,18 @@ const personalTypeScriptPackage = [eslint_plugin_jsdoc.default.configs["flat/rec
|
|
|
4860
4833
|
{ startLines: 1 }
|
|
4861
4834
|
]
|
|
4862
4835
|
} }];
|
|
4863
|
-
var typeScriptPackage_default$1 = personalTypeScriptPackage;
|
|
4864
4836
|
|
|
4865
4837
|
//#endregion
|
|
4866
|
-
//#region src/configs/
|
|
4867
|
-
const
|
|
4838
|
+
//#region src/configs/internal/components.ts
|
|
4839
|
+
const internalComponents = [...internalJsdoc, { rules: {
|
|
4868
4840
|
"jsdoc/check-param-names": "off",
|
|
4869
4841
|
"jsdoc/require-param": ["error", { checkDestructured: false }],
|
|
4870
4842
|
"jsdoc/require-returns": "off"
|
|
4871
4843
|
} }];
|
|
4872
|
-
var components_default = personalComponents;
|
|
4873
4844
|
|
|
4874
4845
|
//#endregion
|
|
4875
4846
|
//#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
|
|
4876
|
-
const eslintPluginRestrictedImports =
|
|
4847
|
+
const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
|
|
4877
4848
|
{
|
|
4878
4849
|
importNames: ["default"],
|
|
4879
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.",
|
|
@@ -4896,14 +4867,14 @@ const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRe
|
|
|
4896
4867
|
name: "eslint-vitest-rule-tester"
|
|
4897
4868
|
}
|
|
4898
4869
|
] });
|
|
4899
|
-
var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
|
|
4900
4870
|
|
|
4901
4871
|
//#endregion
|
|
4902
|
-
//#region src/configs/
|
|
4903
|
-
function
|
|
4872
|
+
//#region src/configs/internal/eslintPlugin.ts
|
|
4873
|
+
function internalEslintPlugin(plugin) {
|
|
4904
4874
|
return [
|
|
4875
|
+
...combinedTypeScriptPackage(plugin),
|
|
4905
4876
|
{
|
|
4906
|
-
name: "@alextheman/
|
|
4877
|
+
name: "@alextheman/internal/eslint-plugin",
|
|
4907
4878
|
plugins: {
|
|
4908
4879
|
"@alextheman": plugin,
|
|
4909
4880
|
jsdoc: eslint_plugin_jsdoc.default,
|
|
@@ -4912,24 +4883,23 @@ function personalEslintPlugin(plugin) {
|
|
|
4912
4883
|
rules: {
|
|
4913
4884
|
"@alextheman/no-plugin-configs-access-from-src-configs": "error",
|
|
4914
4885
|
"jsdoc/require-jsdoc": "off",
|
|
4915
|
-
"no-restricted-imports": ["error",
|
|
4886
|
+
"no-restricted-imports": ["error", eslintPluginRestrictedImports]
|
|
4916
4887
|
}
|
|
4917
4888
|
},
|
|
4918
4889
|
{
|
|
4919
4890
|
files: ["src/rules/index.ts", "src/configs/**"],
|
|
4920
|
-
rules: { "perfectionist/sort-objects": ["error",
|
|
4891
|
+
rules: { "perfectionist/sort-objects": ["error", sortObjects] }
|
|
4921
4892
|
},
|
|
4922
4893
|
{
|
|
4923
4894
|
files: ["src/utility/public/**"],
|
|
4924
|
-
rules: { "jsdoc/require-jsdoc": ["error",
|
|
4895
|
+
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
4925
4896
|
}
|
|
4926
4897
|
];
|
|
4927
4898
|
}
|
|
4928
|
-
var eslintPlugin_default = personalEslintPlugin;
|
|
4929
4899
|
|
|
4930
4900
|
//#endregion
|
|
4931
4901
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
4932
|
-
const neurosongsBackEndRestrictedImports =
|
|
4902
|
+
const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, { paths: [
|
|
4933
4903
|
{
|
|
4934
4904
|
importNames: ["setPrismaClient"],
|
|
4935
4905
|
message: "Do not attempt to reset the Prisma Client outside setup files.",
|
|
@@ -4945,17 +4915,16 @@ const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(pers
|
|
|
4945
4915
|
name: "@neurosongs/prisma-client/prisma"
|
|
4946
4916
|
}
|
|
4947
4917
|
] });
|
|
4948
|
-
var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImports;
|
|
4949
4918
|
|
|
4950
4919
|
//#endregion
|
|
4951
|
-
//#region src/configs/
|
|
4952
|
-
const
|
|
4920
|
+
//#region src/configs/internal/neurosongsBackEnd.ts
|
|
4921
|
+
const internalNeurosongsBackEnd = [
|
|
4953
4922
|
{
|
|
4954
|
-
name: "@alextheman/
|
|
4923
|
+
name: "@alextheman/internal/neurosongs-back-end",
|
|
4955
4924
|
plugins: { n: eslint_plugin_n.default },
|
|
4956
4925
|
rules: {
|
|
4957
4926
|
"n/no-extraneous-import": "off",
|
|
4958
|
-
"no-restricted-imports": ["error",
|
|
4927
|
+
"no-restricted-imports": ["error", neurosongsBackEndRestrictedImports]
|
|
4959
4928
|
}
|
|
4960
4929
|
},
|
|
4961
4930
|
{
|
|
@@ -4971,11 +4940,10 @@ const personalNeurosongsBackEnd = [
|
|
|
4971
4940
|
] }
|
|
4972
4941
|
}
|
|
4973
4942
|
];
|
|
4974
|
-
var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
4975
4943
|
|
|
4976
4944
|
//#endregion
|
|
4977
4945
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
4978
|
-
const neurosongsFrontEndRestrictedImports =
|
|
4946
|
+
const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, reactRestrictedImports, {
|
|
4979
4947
|
paths: [{
|
|
4980
4948
|
importNames: ["PrismaClient"],
|
|
4981
4949
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead.",
|
|
@@ -4992,30 +4960,28 @@ const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(per
|
|
|
4992
4960
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead."
|
|
4993
4961
|
}]
|
|
4994
4962
|
});
|
|
4995
|
-
var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedImports;
|
|
4996
4963
|
|
|
4997
4964
|
//#endregion
|
|
4998
|
-
//#region src/configs/
|
|
4999
|
-
const
|
|
5000
|
-
name: "@alextheman/
|
|
4965
|
+
//#region src/configs/internal/neurosongsFrontEnd.ts
|
|
4966
|
+
const internalNeurosongsFrontEnd = [{
|
|
4967
|
+
name: "@alextheman/internal/neurosongs-front-end",
|
|
5001
4968
|
plugins: { n: eslint_plugin_n.default },
|
|
5002
4969
|
rules: {
|
|
5003
4970
|
"n/no-extraneous-import": "off",
|
|
5004
|
-
"no-restricted-imports": ["error",
|
|
4971
|
+
"no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports]
|
|
5005
4972
|
}
|
|
5006
4973
|
}];
|
|
5007
|
-
var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
|
|
5008
4974
|
|
|
5009
4975
|
//#endregion
|
|
5010
|
-
//#region src/configs/
|
|
5011
|
-
function
|
|
4976
|
+
//#region src/configs/internal/typeScript.ts
|
|
4977
|
+
function internalTypeScript(plugin) {
|
|
5012
4978
|
return [{
|
|
5013
4979
|
files: ["**/*.ts", "**/*.tsx"],
|
|
5014
|
-
languageOptions:
|
|
5015
|
-
name: "@alextheman/
|
|
4980
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4981
|
+
name: "@alextheman/internal/typescript",
|
|
5016
4982
|
plugins: {
|
|
5017
4983
|
"@alextheman": plugin,
|
|
5018
|
-
"@typescript-eslint": typescript_eslint.default.plugin
|
|
4984
|
+
"@typescript-eslint": (0, _eslint_compat.fixupPluginRules)(typescript_eslint.default.plugin)
|
|
5019
4985
|
},
|
|
5020
4986
|
rules: {
|
|
5021
4987
|
"@alextheman/standardise-error-messages": "error",
|
|
@@ -5028,103 +4994,99 @@ function personalTypeScript(plugin) {
|
|
|
5028
4994
|
}
|
|
5029
4995
|
}];
|
|
5030
4996
|
}
|
|
5031
|
-
var typeScript_default$1 = personalTypeScript;
|
|
5032
4997
|
|
|
5033
4998
|
//#endregion
|
|
5034
|
-
//#region src/configs/
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
}
|
|
5046
|
-
|
|
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": (0, _eslint_compat.fixupPluginRules)(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
|
+
}
|
|
5047
5013
|
|
|
5048
5014
|
//#endregion
|
|
5049
5015
|
//#region src/configs/combined/typeScript.ts
|
|
5050
5016
|
function combinedTypeScript(plugin) {
|
|
5051
5017
|
return [
|
|
5052
5018
|
{ name: "@alextheman/combined/typescript" },
|
|
5053
|
-
...
|
|
5054
|
-
...
|
|
5055
|
-
...
|
|
5019
|
+
...combinedJavaScript(plugin),
|
|
5020
|
+
...generalTypeScript,
|
|
5021
|
+
...internalJavaScript(plugin),
|
|
5022
|
+
...internalTypeScript(plugin)
|
|
5056
5023
|
];
|
|
5057
5024
|
}
|
|
5058
|
-
var typeScript_default = combinedTypeScript;
|
|
5059
5025
|
|
|
5060
5026
|
//#endregion
|
|
5061
5027
|
//#region src/configs/combined/typeScriptPackage.ts
|
|
5062
5028
|
function combinedTypeScriptPackage(plugin) {
|
|
5063
5029
|
return [
|
|
5064
5030
|
{ name: "@alextheman/combined/typescript-package" },
|
|
5065
|
-
...
|
|
5066
|
-
...
|
|
5031
|
+
...combinedTypeScript(plugin),
|
|
5032
|
+
...internalJsdoc
|
|
5067
5033
|
];
|
|
5068
5034
|
}
|
|
5069
|
-
var typeScriptPackage_default = combinedTypeScriptPackage;
|
|
5070
5035
|
|
|
5071
5036
|
//#endregion
|
|
5072
5037
|
//#region src/configs/combined/typeScriptReact.ts
|
|
5073
5038
|
function combinedTypeScriptReact(plugin) {
|
|
5074
5039
|
return [
|
|
5075
5040
|
{ name: "@alextheman/combined/typescript-react" },
|
|
5076
|
-
...
|
|
5077
|
-
...
|
|
5041
|
+
...combinedTypeScript(plugin),
|
|
5042
|
+
...combinedReact
|
|
5078
5043
|
];
|
|
5079
5044
|
}
|
|
5080
|
-
var typeScriptReact_default = combinedTypeScriptReact;
|
|
5081
5045
|
|
|
5082
5046
|
//#endregion
|
|
5083
5047
|
//#region src/configs/index.ts
|
|
5084
5048
|
function createAlexPluginConfigs(plugin) {
|
|
5085
|
-
return
|
|
5049
|
+
return flattenConfigs({
|
|
5086
5050
|
combined: {
|
|
5087
|
-
javascript: [...
|
|
5088
|
-
javascriptReact: [...
|
|
5089
|
-
react: [...
|
|
5090
|
-
tests: [...
|
|
5091
|
-
typescript: [...
|
|
5092
|
-
typescriptPackage: [...
|
|
5093
|
-
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]
|
|
5094
5058
|
},
|
|
5095
5059
|
general: {
|
|
5096
|
-
javascript:
|
|
5097
|
-
packageJson:
|
|
5098
|
-
react:
|
|
5099
|
-
typescript:
|
|
5060
|
+
javascript: generalJavaScript,
|
|
5061
|
+
packageJson: generalPackageJson,
|
|
5062
|
+
react: generalReact,
|
|
5063
|
+
typescript: generalTypeScript
|
|
5100
5064
|
},
|
|
5101
|
-
|
|
5102
|
-
alexCLine:
|
|
5103
|
-
components:
|
|
5104
|
-
eslintPlugin:
|
|
5105
|
-
javascript:
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
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)
|
|
5113
5077
|
},
|
|
5114
5078
|
plugin: {
|
|
5115
|
-
base:
|
|
5116
|
-
tests:
|
|
5079
|
+
base: pluginBase(plugin),
|
|
5080
|
+
tests: pluginTests(plugin)
|
|
5117
5081
|
}
|
|
5118
5082
|
});
|
|
5119
5083
|
}
|
|
5120
|
-
var configs_default = createAlexPluginConfigs;
|
|
5121
5084
|
|
|
5122
5085
|
//#endregion
|
|
5123
5086
|
//#region src/rules/helpers/createRule.ts
|
|
5124
5087
|
const createRule = _typescript_eslint_utils.ESLintUtils.RuleCreator((ruleName) => {
|
|
5125
5088
|
return ruleName;
|
|
5126
5089
|
});
|
|
5127
|
-
var createRule_default = createRule;
|
|
5128
5090
|
|
|
5129
5091
|
//#endregion
|
|
5130
5092
|
//#region src/rules/consistent-test-function.ts
|
|
@@ -5136,14 +5098,14 @@ const consistentTestFunctionOptionsSchema = zod.default.object({
|
|
|
5136
5098
|
function parseConsistentTestFunctionOptions(data) {
|
|
5137
5099
|
return consistentTestFunctionOptionsSchema.parse(data);
|
|
5138
5100
|
}
|
|
5139
|
-
const consistentTestFunction =
|
|
5101
|
+
const consistentTestFunction = createRule({
|
|
5140
5102
|
name: "consistent-test-function",
|
|
5141
5103
|
meta: {
|
|
5142
5104
|
docs: { description: "Enforce a consistent function (either `test` or `it`)" },
|
|
5143
5105
|
messages: { message: "Unexpected {{source}}. Please use {{preference}} instead." },
|
|
5144
5106
|
type: "suggestion",
|
|
5145
5107
|
fixable: "code",
|
|
5146
|
-
schema:
|
|
5108
|
+
schema: createRuleSchemaFromZodSchema(consistentTestFunctionOptionsSchema)
|
|
5147
5109
|
},
|
|
5148
5110
|
defaultOptions: [{
|
|
5149
5111
|
preference: "test",
|
|
@@ -5160,7 +5122,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5160
5122
|
source: node.callee.name,
|
|
5161
5123
|
preference
|
|
5162
5124
|
},
|
|
5163
|
-
fix:
|
|
5125
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5164
5126
|
return fixer.replaceText(node.callee, "test");
|
|
5165
5127
|
})
|
|
5166
5128
|
});
|
|
@@ -5171,7 +5133,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5171
5133
|
source: node.callee.name,
|
|
5172
5134
|
preference
|
|
5173
5135
|
},
|
|
5174
|
-
fix:
|
|
5136
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5175
5137
|
return fixer.replaceText(node.callee, "it");
|
|
5176
5138
|
})
|
|
5177
5139
|
});
|
|
@@ -5185,12 +5147,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5185
5147
|
source: specifier.imported.name,
|
|
5186
5148
|
preference
|
|
5187
5149
|
},
|
|
5188
|
-
fix:
|
|
5150
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5189
5151
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5190
5152
|
return specifier.type === _typescript_eslint_utils.AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5191
5153
|
});
|
|
5192
5154
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5193
|
-
const newSpecifiers =
|
|
5155
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "it");
|
|
5194
5156
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5195
5157
|
}
|
|
5196
5158
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5203,12 +5165,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5203
5165
|
source: specifier.imported.name,
|
|
5204
5166
|
preference
|
|
5205
5167
|
},
|
|
5206
|
-
fix:
|
|
5168
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5207
5169
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5208
5170
|
return specifier.type === _typescript_eslint_utils.AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === _typescript_eslint_utils.AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5209
5171
|
});
|
|
5210
5172
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5211
|
-
const newSpecifiers =
|
|
5173
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "test");
|
|
5212
5174
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5213
5175
|
}
|
|
5214
5176
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5219,11 +5181,10 @@ const consistentTestFunction = createRule_default({
|
|
|
5219
5181
|
};
|
|
5220
5182
|
}
|
|
5221
5183
|
});
|
|
5222
|
-
var consistent_test_function_default = consistentTestFunction;
|
|
5223
5184
|
|
|
5224
5185
|
//#endregion
|
|
5225
5186
|
//#region src/rules/no-isolated-tests.ts
|
|
5226
|
-
const noIsolatedTests =
|
|
5187
|
+
const noIsolatedTests = createRule({
|
|
5227
5188
|
name: "no-isolated-tests",
|
|
5228
5189
|
meta: {
|
|
5229
5190
|
docs: { description: "Forbid the use of describe.only() and test.only()" },
|
|
@@ -5234,7 +5195,7 @@ const noIsolatedTests = createRule_default({
|
|
|
5234
5195
|
defaultOptions: [],
|
|
5235
5196
|
create(context) {
|
|
5236
5197
|
return { CallExpression(node) {
|
|
5237
|
-
if (
|
|
5198
|
+
if (checkCallExpression(node, "describe", "only") || checkCallExpression(node, "test", "only") || checkCallExpression(node, "it", "only")) return context.report({
|
|
5238
5199
|
node,
|
|
5239
5200
|
messageId: "message",
|
|
5240
5201
|
data: { source: node.callee.object.name }
|
|
@@ -5242,7 +5203,6 @@ const noIsolatedTests = createRule_default({
|
|
|
5242
5203
|
} };
|
|
5243
5204
|
}
|
|
5244
5205
|
});
|
|
5245
|
-
var no_isolated_tests_default = noIsolatedTests;
|
|
5246
5206
|
|
|
5247
5207
|
//#endregion
|
|
5248
5208
|
//#region src/rules/no-namespace-imports.ts
|
|
@@ -5250,13 +5210,13 @@ const noNamespaceImportsOptionsSchema = zod.default.object({ allow: zod.default.
|
|
|
5250
5210
|
function parseNoNamespaceImportsOptions(data) {
|
|
5251
5211
|
return noNamespaceImportsOptionsSchema.parse(data);
|
|
5252
5212
|
}
|
|
5253
|
-
const noNamespaceImports =
|
|
5213
|
+
const noNamespaceImports = createRule({
|
|
5254
5214
|
name: "no-namespace-imports",
|
|
5255
5215
|
meta: {
|
|
5256
5216
|
docs: { description: "Forbid the use of import *" },
|
|
5257
5217
|
messages: { message: "Import * from \"{{source}}\" is not allowed. Please use named imports instead." },
|
|
5258
5218
|
type: "suggestion",
|
|
5259
|
-
schema:
|
|
5219
|
+
schema: createRuleSchemaFromZodSchema(noNamespaceImportsOptionsSchema)
|
|
5260
5220
|
},
|
|
5261
5221
|
defaultOptions: [{ allow: [""] }],
|
|
5262
5222
|
create(context) {
|
|
@@ -5274,11 +5234,10 @@ const noNamespaceImports = createRule_default({
|
|
|
5274
5234
|
} };
|
|
5275
5235
|
}
|
|
5276
5236
|
});
|
|
5277
|
-
var no_namespace_imports_default = noNamespaceImports;
|
|
5278
5237
|
|
|
5279
5238
|
//#endregion
|
|
5280
5239
|
//#region src/rules/no-plugin-configs-access-from-src-configs.ts
|
|
5281
|
-
const noPluginConfigAccessFromSrcConfigs =
|
|
5240
|
+
const noPluginConfigAccessFromSrcConfigs = createRule({
|
|
5282
5241
|
name: "no-plugin-configs-access-from-src-configs",
|
|
5283
5242
|
meta: {
|
|
5284
5243
|
docs: { description: "Forbid access of plugin.configs in src/configs" },
|
|
@@ -5299,7 +5258,6 @@ const noPluginConfigAccessFromSrcConfigs = createRule_default({
|
|
|
5299
5258
|
} };
|
|
5300
5259
|
}
|
|
5301
5260
|
});
|
|
5302
|
-
var no_plugin_configs_access_from_src_configs_default = noPluginConfigAccessFromSrcConfigs;
|
|
5303
5261
|
|
|
5304
5262
|
//#endregion
|
|
5305
5263
|
//#region src/rules/no-relative-imports.ts
|
|
@@ -5307,7 +5265,7 @@ const noRelativeImportsOptionsSchema = zod.default.object({ depth: zod.default.i
|
|
|
5307
5265
|
function parseNoRelativeImportsOptions(data) {
|
|
5308
5266
|
return noRelativeImportsOptionsSchema.parse(data);
|
|
5309
5267
|
}
|
|
5310
|
-
const noRelativeImports =
|
|
5268
|
+
const noRelativeImports = createRule({
|
|
5311
5269
|
name: "no-relative-imports",
|
|
5312
5270
|
meta: {
|
|
5313
5271
|
docs: { description: "Forbid the use of relative imports" },
|
|
@@ -5318,7 +5276,7 @@ const noRelativeImports = createRule_default({
|
|
|
5318
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}}?!"
|
|
5319
5277
|
},
|
|
5320
5278
|
type: "suggestion",
|
|
5321
|
-
schema:
|
|
5279
|
+
schema: createRuleSchemaFromZodSchema(noRelativeImportsOptionsSchema)
|
|
5322
5280
|
},
|
|
5323
5281
|
defaultOptions: [{ depth: 0 }],
|
|
5324
5282
|
create(context) {
|
|
@@ -5367,11 +5325,10 @@ const noRelativeImports = createRule_default({
|
|
|
5367
5325
|
} };
|
|
5368
5326
|
}
|
|
5369
5327
|
});
|
|
5370
|
-
var no_relative_imports_default = noRelativeImports;
|
|
5371
5328
|
|
|
5372
5329
|
//#endregion
|
|
5373
5330
|
//#region src/rules/no-skipped-tests.ts
|
|
5374
|
-
const noSkippedTests =
|
|
5331
|
+
const noSkippedTests = createRule({
|
|
5375
5332
|
name: "no-skipped-tests",
|
|
5376
5333
|
meta: {
|
|
5377
5334
|
docs: { description: "Forbid the use of describe.skip() and test.skip()" },
|
|
@@ -5382,7 +5339,7 @@ const noSkippedTests = createRule_default({
|
|
|
5382
5339
|
defaultOptions: [],
|
|
5383
5340
|
create(context) {
|
|
5384
5341
|
return { CallExpression(node) {
|
|
5385
|
-
if (
|
|
5342
|
+
if (checkCallExpression(node, "describe", "skip") || checkCallExpression(node, "test", "skip") || checkCallExpression(node, "it", "skip")) return context.report({
|
|
5386
5343
|
node,
|
|
5387
5344
|
messageId: "message",
|
|
5388
5345
|
data: { source: node.callee.object.name }
|
|
@@ -5390,7 +5347,6 @@ const noSkippedTests = createRule_default({
|
|
|
5390
5347
|
} };
|
|
5391
5348
|
}
|
|
5392
5349
|
});
|
|
5393
|
-
var no_skipped_tests_default = noSkippedTests;
|
|
5394
5350
|
|
|
5395
5351
|
//#endregion
|
|
5396
5352
|
//#region src/rules/standardise-error-messages.ts
|
|
@@ -5398,7 +5354,7 @@ const standardiseErrorMessagesOptionsSchema = zod.default.object({ regex: zod.de
|
|
|
5398
5354
|
function parseStandardiseErrorMessagesOptions(data) {
|
|
5399
5355
|
return standardiseErrorMessagesOptionsSchema.parse(data);
|
|
5400
5356
|
}
|
|
5401
|
-
const schema =
|
|
5357
|
+
const schema = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5402
5358
|
const defaultErrorRegex = "^[A-Z]+(?:_[A-Z]+)*$";
|
|
5403
5359
|
function checkCurrentNode(context, node) {
|
|
5404
5360
|
const { regex: errorRegex = defaultErrorRegex } = parseStandardiseErrorMessagesOptions(context.options[0] ?? { regex: defaultErrorRegex });
|
|
@@ -5415,7 +5371,7 @@ function checkCurrentNode(context, node) {
|
|
|
5415
5371
|
});
|
|
5416
5372
|
}
|
|
5417
5373
|
}
|
|
5418
|
-
const standardiseErrorMessages =
|
|
5374
|
+
const standardiseErrorMessages = createRule({
|
|
5419
5375
|
name: "standardise-error-messages",
|
|
5420
5376
|
meta: {
|
|
5421
5377
|
docs: { description: "Enforce a consistent standard for error messages." },
|
|
@@ -5435,7 +5391,6 @@ const standardiseErrorMessages = createRule_default({
|
|
|
5435
5391
|
};
|
|
5436
5392
|
}
|
|
5437
5393
|
});
|
|
5438
|
-
var standardise_error_messages_default = standardiseErrorMessages;
|
|
5439
5394
|
|
|
5440
5395
|
//#endregion
|
|
5441
5396
|
//#region src/rules/use-normalized-imports.ts
|
|
@@ -5443,13 +5398,13 @@ const useNormalizedImportsOptionsSchema = zod.default.object({ fixable: zod.defa
|
|
|
5443
5398
|
function parseUseNormalizedImportsOptions(data) {
|
|
5444
5399
|
return useNormalizedImportsOptionsSchema.parse(data);
|
|
5445
5400
|
}
|
|
5446
|
-
const useNormalizedImports =
|
|
5401
|
+
const useNormalizedImports = createRule({
|
|
5447
5402
|
name: "use-normalized-imports",
|
|
5448
5403
|
meta: {
|
|
5449
5404
|
docs: { description: "Enforce the usage of normalized imports (i.e. import paths that you would only get from path.posix.normalize())" },
|
|
5450
5405
|
messages: { pathNotNormalized: "Import path {{nonNormalized}} is not normalised. Please use {{normalized}} instead." },
|
|
5451
5406
|
type: "suggestion",
|
|
5452
|
-
schema:
|
|
5407
|
+
schema: createRuleSchemaFromZodSchema(useNormalizedImportsOptionsSchema),
|
|
5453
5408
|
fixable: "code"
|
|
5454
5409
|
},
|
|
5455
5410
|
defaultOptions: [{ fixable: true }],
|
|
@@ -5464,7 +5419,7 @@ const useNormalizedImports = createRule_default({
|
|
|
5464
5419
|
nonNormalized: node.source.value,
|
|
5465
5420
|
normalized: normalizedPath
|
|
5466
5421
|
},
|
|
5467
|
-
fix:
|
|
5422
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5468
5423
|
const [quote] = node.source.raw;
|
|
5469
5424
|
return fixer.replaceText(node.source, `${quote}${normalizedPath}${quote}`);
|
|
5470
5425
|
})
|
|
@@ -5472,7 +5427,6 @@ const useNormalizedImports = createRule_default({
|
|
|
5472
5427
|
} };
|
|
5473
5428
|
}
|
|
5474
5429
|
});
|
|
5475
|
-
var use_normalized_imports_default = useNormalizedImports;
|
|
5476
5430
|
|
|
5477
5431
|
//#endregion
|
|
5478
5432
|
//#region src/rules/use-object-shorthand.ts
|
|
@@ -5480,14 +5434,14 @@ const useObjectShorthandOptionsSchema = zod.default.object({ fixable: zod.defaul
|
|
|
5480
5434
|
function parseUseObjectShorthandOptions(data) {
|
|
5481
5435
|
return useObjectShorthandOptionsSchema.parse(data);
|
|
5482
5436
|
}
|
|
5483
|
-
const useObjectShorthand =
|
|
5437
|
+
const useObjectShorthand = createRule({
|
|
5484
5438
|
name: "use-object-shorthand",
|
|
5485
5439
|
meta: {
|
|
5486
5440
|
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5487
5441
|
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5488
5442
|
type: "suggestion",
|
|
5489
5443
|
fixable: "code",
|
|
5490
|
-
schema:
|
|
5444
|
+
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5491
5445
|
},
|
|
5492
5446
|
defaultOptions: [{ fixable: true }],
|
|
5493
5447
|
create(context) {
|
|
@@ -5497,7 +5451,7 @@ const useObjectShorthand = createRule_default({
|
|
|
5497
5451
|
node,
|
|
5498
5452
|
messageId: "useShorthand",
|
|
5499
5453
|
data: { source: context.sourceCode.getText(node) },
|
|
5500
|
-
fix:
|
|
5454
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5501
5455
|
const key = node.key;
|
|
5502
5456
|
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5503
5457
|
})
|
|
@@ -5505,26 +5459,25 @@ const useObjectShorthand = createRule_default({
|
|
|
5505
5459
|
} };
|
|
5506
5460
|
}
|
|
5507
5461
|
});
|
|
5508
|
-
var use_object_shorthand_default = useObjectShorthand;
|
|
5509
5462
|
|
|
5510
5463
|
//#endregion
|
|
5511
5464
|
//#region src/rules/index.ts
|
|
5512
5465
|
var rules_default = {
|
|
5513
|
-
"consistent-test-function":
|
|
5514
|
-
"no-isolated-tests":
|
|
5515
|
-
"no-namespace-imports":
|
|
5516
|
-
"no-plugin-configs-access-from-src-configs":
|
|
5517
|
-
"no-relative-imports":
|
|
5518
|
-
"no-skipped-tests":
|
|
5519
|
-
"standardise-error-messages":
|
|
5520
|
-
"use-normalized-imports":
|
|
5521
|
-
"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
|
|
5522
5475
|
};
|
|
5523
5476
|
|
|
5524
5477
|
//#endregion
|
|
5525
5478
|
//#region package.json
|
|
5526
5479
|
var name = "@alextheman/eslint-plugin";
|
|
5527
|
-
var version = "5.
|
|
5480
|
+
var version = "5.6.1";
|
|
5528
5481
|
|
|
5529
5482
|
//#endregion
|
|
5530
5483
|
//#region src/alexPlugin.ts
|
|
@@ -5537,21 +5490,20 @@ const alexPlugin = {
|
|
|
5537
5490
|
configs: {},
|
|
5538
5491
|
rules: rules_default
|
|
5539
5492
|
};
|
|
5540
|
-
alexPlugin.configs =
|
|
5541
|
-
var alexPlugin_default = alexPlugin;
|
|
5493
|
+
alexPlugin.configs = createAlexPluginConfigs((0, _alextheman_utility.deepFreeze)((0, _alextheman_utility.deepCopy)(alexPlugin)));
|
|
5542
5494
|
|
|
5543
5495
|
//#endregion
|
|
5544
5496
|
//#region src/index.ts
|
|
5545
|
-
var src_default =
|
|
5497
|
+
var src_default = alexPlugin;
|
|
5546
5498
|
|
|
5547
5499
|
//#endregion
|
|
5548
|
-
exports.checkCallExpression =
|
|
5549
|
-
exports.combineRestrictedImports =
|
|
5550
|
-
exports.createRuleSchemaFromZodSchema =
|
|
5500
|
+
exports.checkCallExpression = checkCallExpression;
|
|
5501
|
+
exports.combineRestrictedImports = combineRestrictedImports;
|
|
5502
|
+
exports.createRuleSchemaFromZodSchema = createRuleSchemaFromZodSchema;
|
|
5551
5503
|
exports.default = src_default;
|
|
5552
|
-
exports.fixOnCondition =
|
|
5553
|
-
exports.flattenConfigs =
|
|
5554
|
-
exports.getImportSpecifiersAfterRemoving =
|
|
5555
|
-
exports.prettierConfig =
|
|
5556
|
-
exports.typeDocConfig =
|
|
5557
|
-
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;
|