@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.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DataError, camelToKebab, deepCopy, deepFreeze, normalizeImportPath, omi
|
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
|
|
3
3
|
import z from "zod";
|
|
4
4
|
import js from "@eslint/js";
|
|
5
|
-
import prettierConfig from "eslint-config-prettier";
|
|
5
|
+
import prettierConfig$1 from "eslint-config-prettier";
|
|
6
6
|
import importPlugin from "eslint-plugin-import";
|
|
7
7
|
import nodePlugin from "eslint-plugin-n";
|
|
8
8
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
@@ -15,9 +15,10 @@ import reactPlugin from "eslint-plugin-react";
|
|
|
15
15
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
16
16
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
17
17
|
import packageJson from "eslint-plugin-package-json";
|
|
18
|
+
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
|
|
18
19
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
19
20
|
|
|
20
|
-
//#region
|
|
21
|
+
//#region \0rolldown/runtime.js
|
|
21
22
|
var __create = Object.create;
|
|
22
23
|
var __defProp = Object.defineProperty;
|
|
23
24
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -45,7 +46,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
46
|
}) : target, mod));
|
|
46
47
|
|
|
47
48
|
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/globals@17.
|
|
49
|
+
//#region node_modules/.pnpm/globals@17.3.0/node_modules/globals/globals.json
|
|
49
50
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50
51
|
module.exports = {
|
|
51
52
|
"amd": {
|
|
@@ -487,6 +488,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
487
488
|
"HTMLFormElement": false,
|
|
488
489
|
"HTMLFrameElement": false,
|
|
489
490
|
"HTMLFrameSetElement": false,
|
|
491
|
+
"HTMLGeolocationElement": false,
|
|
490
492
|
"HTMLHeadElement": false,
|
|
491
493
|
"HTMLHeadingElement": false,
|
|
492
494
|
"HTMLHRElement": false,
|
|
@@ -1279,6 +1281,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1279
1281
|
"XRView": false,
|
|
1280
1282
|
"XRViewerPose": false,
|
|
1281
1283
|
"XRViewport": false,
|
|
1284
|
+
"XRVisibilityMaskChangeEvent": false,
|
|
1282
1285
|
"XRWebGLBinding": false,
|
|
1283
1286
|
"XRWebGLDepthInformation": false,
|
|
1284
1287
|
"XRWebGLLayer": false,
|
|
@@ -1525,6 +1528,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1525
1528
|
"GPUColorWrite": false,
|
|
1526
1529
|
"GPUCommandBuffer": false,
|
|
1527
1530
|
"GPUCommandEncoder": false,
|
|
1531
|
+
"GPUCompilationInfo": false,
|
|
1532
|
+
"GPUCompilationMessage": false,
|
|
1528
1533
|
"GPUComputePassEncoder": false,
|
|
1529
1534
|
"GPUComputePipeline": false,
|
|
1530
1535
|
"GPUDevice": false,
|
|
@@ -1573,6 +1578,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1573
1578
|
"PerformanceEntry": false,
|
|
1574
1579
|
"PerformanceMark": false,
|
|
1575
1580
|
"PerformanceMeasure": false,
|
|
1581
|
+
"PerformanceObserver": false,
|
|
1582
|
+
"PerformanceObserverEntryList": false,
|
|
1576
1583
|
"process": false,
|
|
1577
1584
|
"ProgressEvent": false,
|
|
1578
1585
|
"PromiseRejectionEvent": false,
|
|
@@ -4057,7 +4064,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4057
4064
|
}));
|
|
4058
4065
|
|
|
4059
4066
|
//#endregion
|
|
4060
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4067
|
+
//#region node_modules/.pnpm/globals@17.3.0/node_modules/globals/index.js
|
|
4061
4068
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4062
4069
|
module.exports = require_globals$1();
|
|
4063
4070
|
}));
|
|
@@ -4069,7 +4076,6 @@ const generalRestrictedImports = { patterns: [{
|
|
|
4069
4076
|
group: ["node_modules"],
|
|
4070
4077
|
message: "Do not import directly from node_modules."
|
|
4071
4078
|
}] };
|
|
4072
|
-
var generalRestrictedImports_default = generalRestrictedImports;
|
|
4073
4079
|
|
|
4074
4080
|
//#endregion
|
|
4075
4081
|
//#region src/utility/public/checkCallExpression.ts
|
|
@@ -4087,7 +4093,6 @@ var generalRestrictedImports_default = generalRestrictedImports;
|
|
|
4087
4093
|
function checkCallExpression(node, objectName, propertyName) {
|
|
4088
4094
|
return node.callee.type === AST_NODE_TYPES.MemberExpression && node.callee.object.type === AST_NODE_TYPES.Identifier && node.callee.object.name === objectName && node.callee.property.type === AST_NODE_TYPES.Identifier && node.callee.property.name === propertyName;
|
|
4089
4095
|
}
|
|
4090
|
-
var checkCallExpression_default = checkCallExpression;
|
|
4091
4096
|
|
|
4092
4097
|
//#endregion
|
|
4093
4098
|
//#region src/utility/public/combineRestrictedImports.ts
|
|
@@ -4115,7 +4120,6 @@ function combineRestrictedImports(...groups) {
|
|
|
4115
4120
|
if (combinedGroup.patterns.length === 0) return omitProperties(combinedGroup, "patterns");
|
|
4116
4121
|
return combinedGroup;
|
|
4117
4122
|
}
|
|
4118
|
-
var combineRestrictedImports_default = combineRestrictedImports;
|
|
4119
4123
|
|
|
4120
4124
|
//#endregion
|
|
4121
4125
|
//#region src/utility/public/createRuleSchemaFromZodSchema.ts
|
|
@@ -4131,7 +4135,6 @@ var combineRestrictedImports_default = combineRestrictedImports;
|
|
|
4131
4135
|
function createRuleSchemaFromZodSchema(schema) {
|
|
4132
4136
|
return [omitProperties(z.toJSONSchema(schema), "$schema")];
|
|
4133
4137
|
}
|
|
4134
|
-
var createRuleSchemaFromZodSchema_default = createRuleSchemaFromZodSchema;
|
|
4135
4138
|
|
|
4136
4139
|
//#endregion
|
|
4137
4140
|
//#region src/utility/public/fixOnCondition.ts
|
|
@@ -4151,7 +4154,6 @@ function fixOnCondition(fixable, fix) {
|
|
|
4151
4154
|
return fix(fixer);
|
|
4152
4155
|
};
|
|
4153
4156
|
}
|
|
4154
|
-
var fixOnCondition_default = fixOnCondition;
|
|
4155
4157
|
|
|
4156
4158
|
//#endregion
|
|
4157
4159
|
//#region src/utility/private/camelToKebab.ts
|
|
@@ -4159,16 +4161,14 @@ function camelToKebab$1(string) {
|
|
|
4159
4161
|
if (string[0] === string[0].toUpperCase()) throw new DataError(string, "CAMEL_TO_KEBAB_CONVERSION_ERROR", "camelCase string must start with a lowercase letter.");
|
|
4160
4162
|
return camelToKebab(string, { preserveConsecutiveCapitals: false });
|
|
4161
4163
|
}
|
|
4162
|
-
var camelToKebab_default = camelToKebab$1;
|
|
4163
4164
|
|
|
4164
4165
|
//#endregion
|
|
4165
4166
|
//#region src/utility/private/createConfigGroup.ts
|
|
4166
4167
|
function createConfigGroup(group, configs) {
|
|
4167
4168
|
const newConfigs = {};
|
|
4168
|
-
for (const key in configs) newConfigs[`${
|
|
4169
|
+
for (const key in configs) newConfigs[`${camelToKebab$1(group)}/${camelToKebab$1(key)}`] = configs[key];
|
|
4169
4170
|
return newConfigs;
|
|
4170
4171
|
}
|
|
4171
|
-
var createConfigGroup_default = createConfigGroup;
|
|
4172
4172
|
|
|
4173
4173
|
//#endregion
|
|
4174
4174
|
//#region src/utility/public/flattenConfigs.ts
|
|
@@ -4211,10 +4211,9 @@ var createConfigGroup_default = createConfigGroup;
|
|
|
4211
4211
|
*/
|
|
4212
4212
|
function flattenConfigs(config) {
|
|
4213
4213
|
const allConfigs = {};
|
|
4214
|
-
for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs,
|
|
4214
|
+
for (const configGroupEntries of Object.entries(config)) Object.assign(allConfigs, createConfigGroup(...configGroupEntries));
|
|
4215
4215
|
return allConfigs;
|
|
4216
4216
|
}
|
|
4217
|
-
var flattenConfigs_default = flattenConfigs;
|
|
4218
4217
|
|
|
4219
4218
|
//#endregion
|
|
4220
4219
|
//#region src/utility/public/getImportSpecifiersAfterRemoving.ts
|
|
@@ -4240,26 +4239,24 @@ function getImportSpecifiersAfterRemoving(context, specifiers, importToRemove) {
|
|
|
4240
4239
|
return context.sourceCode.getText(specifier);
|
|
4241
4240
|
}).join(", ");
|
|
4242
4241
|
}
|
|
4243
|
-
var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
|
|
4244
4242
|
|
|
4245
4243
|
//#endregion
|
|
4246
4244
|
//#region src/configs/helpers/restrictedImports/testsRestrictedImports.ts
|
|
4247
|
-
const testsRestrictedImports =
|
|
4245
|
+
const testsRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [{
|
|
4248
4246
|
message: "Use test functions from vitest instead.",
|
|
4249
4247
|
name: "node:test"
|
|
4250
4248
|
}] });
|
|
4251
|
-
var testsRestrictedImports_default = testsRestrictedImports;
|
|
4252
4249
|
|
|
4253
4250
|
//#endregion
|
|
4254
|
-
//#region src/configs/
|
|
4255
|
-
const
|
|
4251
|
+
//#region src/configs/internal/tests.ts
|
|
4252
|
+
const internalTests = [{
|
|
4256
4253
|
files: ["**/*.test.{js,ts}"],
|
|
4257
4254
|
languageOptions: { globals: {
|
|
4258
4255
|
...import_globals.default.node,
|
|
4259
4256
|
...import_globals.default.browser,
|
|
4260
4257
|
...import_globals.default.vitest
|
|
4261
4258
|
} },
|
|
4262
|
-
name: "@alextheman/
|
|
4259
|
+
name: "@alextheman/internal/tests",
|
|
4263
4260
|
rules: {
|
|
4264
4261
|
"no-restricted-globals": [
|
|
4265
4262
|
"error",
|
|
@@ -4276,10 +4273,9 @@ const personalTests = [{
|
|
|
4276
4273
|
name: "expect"
|
|
4277
4274
|
}
|
|
4278
4275
|
],
|
|
4279
|
-
"no-restricted-imports": ["error",
|
|
4276
|
+
"no-restricted-imports": ["error", testsRestrictedImports]
|
|
4280
4277
|
}
|
|
4281
4278
|
}];
|
|
4282
|
-
var tests_default$2 = personalTests;
|
|
4283
4279
|
|
|
4284
4280
|
//#endregion
|
|
4285
4281
|
//#region src/configs/plugin/base.ts
|
|
@@ -4294,7 +4290,6 @@ function pluginBase(plugin) {
|
|
|
4294
4290
|
}
|
|
4295
4291
|
}];
|
|
4296
4292
|
}
|
|
4297
|
-
var base_default = pluginBase;
|
|
4298
4293
|
|
|
4299
4294
|
//#endregion
|
|
4300
4295
|
//#region src/configs/plugin/tests.ts
|
|
@@ -4310,18 +4305,16 @@ function pluginTests(plugin) {
|
|
|
4310
4305
|
}
|
|
4311
4306
|
}];
|
|
4312
4307
|
}
|
|
4313
|
-
var tests_default$1 = pluginTests;
|
|
4314
4308
|
|
|
4315
4309
|
//#endregion
|
|
4316
4310
|
//#region src/configs/combined/tests.ts
|
|
4317
4311
|
function combinedTests(plugin) {
|
|
4318
4312
|
return [
|
|
4319
4313
|
{ name: "@alextheman/combined/tests" },
|
|
4320
|
-
...
|
|
4321
|
-
...
|
|
4314
|
+
...pluginTests(plugin),
|
|
4315
|
+
...internalTests
|
|
4322
4316
|
];
|
|
4323
4317
|
}
|
|
4324
|
-
var tests_default = combinedTests;
|
|
4325
4318
|
|
|
4326
4319
|
//#endregion
|
|
4327
4320
|
//#region src/configs/helpers/javaScriptLanguageOptions.ts
|
|
@@ -4330,7 +4323,6 @@ const javaScriptLanguageOptions = { globals: {
|
|
|
4330
4323
|
...import_globals.default.browser,
|
|
4331
4324
|
...import_globals.default.vitest
|
|
4332
4325
|
} };
|
|
4333
|
-
var javaScriptLanguageOptions_default = javaScriptLanguageOptions;
|
|
4334
4326
|
|
|
4335
4327
|
//#endregion
|
|
4336
4328
|
//#region src/configs/helpers/unusedVarsIgnorePatterns.ts
|
|
@@ -4339,13 +4331,12 @@ const unusedVarsIgnorePatterns = {
|
|
|
4339
4331
|
caughtErrorsIgnorePattern: "^_",
|
|
4340
4332
|
varsIgnorePattern: "^_"
|
|
4341
4333
|
};
|
|
4342
|
-
var unusedVarsIgnorePatterns_default = unusedVarsIgnorePatterns;
|
|
4343
4334
|
|
|
4344
4335
|
//#endregion
|
|
4345
4336
|
//#region src/configs/general/javaScript.ts
|
|
4346
4337
|
const generalJavaScript = [
|
|
4347
4338
|
js.configs.recommended,
|
|
4348
|
-
prettierConfig,
|
|
4339
|
+
prettierConfig$1,
|
|
4349
4340
|
nodePlugin.configs["flat/recommended"],
|
|
4350
4341
|
{
|
|
4351
4342
|
files: [
|
|
@@ -4355,7 +4346,7 @@ const generalJavaScript = [
|
|
|
4355
4346
|
"**/*.tsx"
|
|
4356
4347
|
],
|
|
4357
4348
|
ignores: ["dist"],
|
|
4358
|
-
languageOptions:
|
|
4349
|
+
languageOptions: javaScriptLanguageOptions,
|
|
4359
4350
|
name: "@alextheman/general/javascript",
|
|
4360
4351
|
plugins: {
|
|
4361
4352
|
import: importPlugin,
|
|
@@ -4389,9 +4380,9 @@ const generalJavaScript = [
|
|
|
4389
4380
|
"no-lonely-if": "error",
|
|
4390
4381
|
"no-new-wrappers": "error",
|
|
4391
4382
|
"no-param-reassign": "error",
|
|
4392
|
-
"no-restricted-imports": ["error",
|
|
4383
|
+
"no-restricted-imports": ["error", generalRestrictedImports],
|
|
4393
4384
|
"no-undef": "error",
|
|
4394
|
-
"no-unused-vars": ["error",
|
|
4385
|
+
"no-unused-vars": ["error", unusedVarsIgnorePatterns],
|
|
4395
4386
|
"no-useless-rename": "error",
|
|
4396
4387
|
"no-useless-return": "error",
|
|
4397
4388
|
"prefer-const": "error"
|
|
@@ -4399,12 +4390,10 @@ const generalJavaScript = [
|
|
|
4399
4390
|
settings: { "import/resolver": { node: true } }
|
|
4400
4391
|
}
|
|
4401
4392
|
];
|
|
4402
|
-
var javaScript_default$1 = generalJavaScript;
|
|
4403
4393
|
|
|
4404
4394
|
//#endregion
|
|
4405
4395
|
//#region src/configs/external/prettierConfig.ts
|
|
4406
|
-
const prettierConfig
|
|
4407
|
-
var prettierConfig_default = prettierConfig$1;
|
|
4396
|
+
const prettierConfig = { printWidth: 100 };
|
|
4408
4397
|
|
|
4409
4398
|
//#endregion
|
|
4410
4399
|
//#region src/configs/external/typeDocConfig.ts
|
|
@@ -4430,7 +4419,6 @@ function typeDocConfig(entryPoints = ["./src/index.ts"]) {
|
|
|
4430
4419
|
plugin: ["typedoc-plugin-markdown", "typedoc-rhineai-theme"]
|
|
4431
4420
|
};
|
|
4432
4421
|
}
|
|
4433
|
-
var typeDocConfig_default = typeDocConfig;
|
|
4434
4422
|
|
|
4435
4423
|
//#endregion
|
|
4436
4424
|
//#region src/configs/external/vitestConfig.ts
|
|
@@ -4444,7 +4432,6 @@ function vitestConfig(environment = "jsdom") {
|
|
|
4444
4432
|
}
|
|
4445
4433
|
});
|
|
4446
4434
|
}
|
|
4447
|
-
var vitestConfig_default = vitestConfig;
|
|
4448
4435
|
|
|
4449
4436
|
//#endregion
|
|
4450
4437
|
//#region src/configs/helpers/reactLanguageOptions.ts
|
|
@@ -4453,7 +4440,6 @@ const reactLanguageOptions = {
|
|
|
4453
4440
|
globals: import_globals.default.browser,
|
|
4454
4441
|
parserOptions: { ecmaFeatures: { jsx: true } }
|
|
4455
4442
|
};
|
|
4456
|
-
var reactLanguageOptions_default = reactLanguageOptions;
|
|
4457
4443
|
|
|
4458
4444
|
//#endregion
|
|
4459
4445
|
//#region src/configs/helpers/typeScriptLanguageOptions.ts
|
|
@@ -4466,7 +4452,6 @@ const typeScriptLanguageOptions = {
|
|
|
4466
4452
|
tsconfigRootDir: process.cwd()
|
|
4467
4453
|
}
|
|
4468
4454
|
};
|
|
4469
|
-
var typeScriptLanguageOptions_default = typeScriptLanguageOptions;
|
|
4470
4455
|
|
|
4471
4456
|
//#endregion
|
|
4472
4457
|
//#region src/configs/helpers/sorting/sortClasses.ts
|
|
@@ -4494,7 +4479,6 @@ const sortClasses = {
|
|
|
4494
4479
|
specialCharacters: "keep",
|
|
4495
4480
|
type: "alphabetical"
|
|
4496
4481
|
};
|
|
4497
|
-
var sortClasses_default = sortClasses;
|
|
4498
4482
|
|
|
4499
4483
|
//#endregion
|
|
4500
4484
|
//#region src/configs/helpers/sorting/sortExports.ts
|
|
@@ -4515,7 +4499,6 @@ const sortExports = {
|
|
|
4515
4499
|
specialCharacters: "keep",
|
|
4516
4500
|
type: "alphabetical"
|
|
4517
4501
|
};
|
|
4518
|
-
var sortExports_default = sortExports;
|
|
4519
4502
|
|
|
4520
4503
|
//#endregion
|
|
4521
4504
|
//#region src/configs/helpers/sorting/sortImports.ts
|
|
@@ -4555,7 +4538,6 @@ const sortImports = {
|
|
|
4555
4538
|
specialCharacters: "keep",
|
|
4556
4539
|
type: "alphabetical"
|
|
4557
4540
|
};
|
|
4558
|
-
var sortImports_default = sortImports;
|
|
4559
4541
|
|
|
4560
4542
|
//#endregion
|
|
4561
4543
|
//#region src/configs/helpers/sorting/sortObjects.ts
|
|
@@ -4573,17 +4555,15 @@ const sortObjects = {
|
|
|
4573
4555
|
type: "alphabetical",
|
|
4574
4556
|
useConfigurationIf: {}
|
|
4575
4557
|
};
|
|
4576
|
-
var sortObjects_default = sortObjects;
|
|
4577
4558
|
|
|
4578
4559
|
//#endregion
|
|
4579
4560
|
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4580
|
-
const personalRestrictedImports =
|
|
4561
|
+
const personalRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4581
4562
|
return {
|
|
4582
4563
|
message: "Please use node:fs/promises instead.",
|
|
4583
4564
|
name
|
|
4584
4565
|
};
|
|
4585
4566
|
})] });
|
|
4586
|
-
var personalRestrictedImports_default = personalRestrictedImports;
|
|
4587
4567
|
|
|
4588
4568
|
//#endregion
|
|
4589
4569
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
@@ -4599,11 +4579,10 @@ const sortNamedImports = {
|
|
|
4599
4579
|
specialCharacters: "keep",
|
|
4600
4580
|
type: "alphabetical"
|
|
4601
4581
|
};
|
|
4602
|
-
var sortNamedImports_default = sortNamedImports;
|
|
4603
4582
|
|
|
4604
4583
|
//#endregion
|
|
4605
|
-
//#region src/configs/
|
|
4606
|
-
function
|
|
4584
|
+
//#region src/configs/internal/javaScript.ts
|
|
4585
|
+
function internalJavaScript(plugin) {
|
|
4607
4586
|
return [{
|
|
4608
4587
|
files: [
|
|
4609
4588
|
"**/*.js",
|
|
@@ -4611,8 +4590,8 @@ function personalJavaScript(plugin) {
|
|
|
4611
4590
|
"**/*.ts",
|
|
4612
4591
|
"**/*.tsx"
|
|
4613
4592
|
],
|
|
4614
|
-
languageOptions:
|
|
4615
|
-
name: "@alextheman/
|
|
4593
|
+
languageOptions: javaScriptLanguageOptions,
|
|
4594
|
+
name: "@alextheman/internal/javascript",
|
|
4616
4595
|
plugins: {
|
|
4617
4596
|
"@alextheman": plugin,
|
|
4618
4597
|
import: importPlugin,
|
|
@@ -4631,16 +4610,16 @@ function personalJavaScript(plugin) {
|
|
|
4631
4610
|
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
4632
4611
|
"no-else-return": "error",
|
|
4633
4612
|
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
4634
|
-
"no-restricted-imports": ["error",
|
|
4613
|
+
"no-restricted-imports": ["error", personalRestrictedImports],
|
|
4635
4614
|
"operator-assignment": ["error", "always"],
|
|
4636
|
-
"perfectionist/sort-classes": ["error",
|
|
4637
|
-
"perfectionist/sort-exports": ["error",
|
|
4638
|
-
"perfectionist/sort-imports": ["error",
|
|
4639
|
-
"perfectionist/sort-named-imports": ["error",
|
|
4615
|
+
"perfectionist/sort-classes": ["error", sortClasses],
|
|
4616
|
+
"perfectionist/sort-exports": ["error", sortExports],
|
|
4617
|
+
"perfectionist/sort-imports": ["error", sortImports],
|
|
4618
|
+
"perfectionist/sort-named-imports": ["error", sortNamedImports],
|
|
4640
4619
|
"prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
|
|
4641
4620
|
"prefer-destructuring": "error",
|
|
4642
4621
|
"prefer-template": "error",
|
|
4643
|
-
"prettier/prettier": ["warn",
|
|
4622
|
+
"prettier/prettier": ["warn", prettierConfig],
|
|
4644
4623
|
"sort-vars": "error"
|
|
4645
4624
|
}
|
|
4646
4625
|
}, {
|
|
@@ -4648,20 +4627,18 @@ function personalJavaScript(plugin) {
|
|
|
4648
4627
|
rules: { "@alextheman/no-relative-imports": ["error", { depth: 0 }] }
|
|
4649
4628
|
}];
|
|
4650
4629
|
}
|
|
4651
|
-
var javaScriptBase_default = personalJavaScript;
|
|
4652
4630
|
|
|
4653
4631
|
//#endregion
|
|
4654
4632
|
//#region src/configs/combined/javaScript.ts
|
|
4655
4633
|
function combinedJavaScript(plugin) {
|
|
4656
4634
|
return [
|
|
4657
4635
|
{ name: "@alextheman/combined/javascript" },
|
|
4658
|
-
...
|
|
4659
|
-
...
|
|
4660
|
-
...
|
|
4661
|
-
...
|
|
4636
|
+
...pluginBase(plugin),
|
|
4637
|
+
...generalJavaScript,
|
|
4638
|
+
...internalJavaScript(plugin),
|
|
4639
|
+
...combinedTests(plugin)
|
|
4662
4640
|
];
|
|
4663
4641
|
}
|
|
4664
|
-
var javaScript_default = combinedJavaScript;
|
|
4665
4642
|
|
|
4666
4643
|
//#endregion
|
|
4667
4644
|
//#region src/configs/helpers/eslint-plugin-react-hooks.ts
|
|
@@ -4673,7 +4650,6 @@ const reactHooks = {
|
|
|
4673
4650
|
"flat/recommended-latest": reactHooksPlugin.configs.flat["recommended-latest"]
|
|
4674
4651
|
}
|
|
4675
4652
|
};
|
|
4676
|
-
var eslint_plugin_react_hooks_default = reactHooks;
|
|
4677
4653
|
|
|
4678
4654
|
//#endregion
|
|
4679
4655
|
//#region src/configs/general/react.ts
|
|
@@ -4682,15 +4658,15 @@ const generalReact = [
|
|
|
4682
4658
|
reactPlugin.configs.flat["jsx-runtime"],
|
|
4683
4659
|
jsxA11y.flatConfigs.recommended,
|
|
4684
4660
|
{
|
|
4685
|
-
languageOptions:
|
|
4661
|
+
languageOptions: reactLanguageOptions,
|
|
4686
4662
|
name: "@alextheman/general/react",
|
|
4687
4663
|
plugins: {
|
|
4688
4664
|
react: reactPlugin,
|
|
4689
|
-
"react-hooks":
|
|
4665
|
+
"react-hooks": reactHooks,
|
|
4690
4666
|
"react-refresh": reactRefresh
|
|
4691
4667
|
},
|
|
4692
4668
|
rules: {
|
|
4693
|
-
...
|
|
4669
|
+
...reactHooks.configs["flat/recommended"].rules,
|
|
4694
4670
|
"react/destructuring-assignment": [
|
|
4695
4671
|
"error",
|
|
4696
4672
|
"always",
|
|
@@ -4709,55 +4685,50 @@ const generalReact = [
|
|
|
4709
4685
|
settings: { react: { version: "detect" } }
|
|
4710
4686
|
}
|
|
4711
4687
|
];
|
|
4712
|
-
var react_default$2 = generalReact;
|
|
4713
4688
|
|
|
4714
4689
|
//#endregion
|
|
4715
4690
|
//#region src/configs/helpers/restrictedImports/reactRestrictedImports.ts
|
|
4716
|
-
const reactRestrictedImports =
|
|
4691
|
+
const reactRestrictedImports = combineRestrictedImports(generalRestrictedImports, { patterns: [{
|
|
4717
4692
|
message: "Please use `import Component from \"@mui/[package]/Component\"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.",
|
|
4718
4693
|
regex: "^@mui/[^/]+$"
|
|
4719
4694
|
}] });
|
|
4720
|
-
var reactRestrictedImports_default = reactRestrictedImports;
|
|
4721
4695
|
|
|
4722
4696
|
//#endregion
|
|
4723
|
-
//#region src/configs/
|
|
4724
|
-
const
|
|
4725
|
-
languageOptions:
|
|
4726
|
-
name: "@alextheman/
|
|
4697
|
+
//#region src/configs/internal/react.ts
|
|
4698
|
+
const internalReact = [{
|
|
4699
|
+
languageOptions: reactLanguageOptions,
|
|
4700
|
+
name: "@alextheman/internal/react",
|
|
4727
4701
|
plugins: {
|
|
4728
4702
|
react: reactPlugin,
|
|
4729
|
-
"react-hooks":
|
|
4703
|
+
"react-hooks": reactHooks,
|
|
4730
4704
|
"react-refresh": reactRefresh
|
|
4731
4705
|
},
|
|
4732
4706
|
rules: {
|
|
4733
|
-
"no-restricted-imports": ["error",
|
|
4707
|
+
"no-restricted-imports": ["error", reactRestrictedImports],
|
|
4734
4708
|
"react-hooks/exhaustive-deps": "off",
|
|
4735
4709
|
"react-hooks/refs": "off",
|
|
4736
4710
|
"react-refresh/only-export-components": "off",
|
|
4737
4711
|
"react/jsx-boolean-value": "error"
|
|
4738
4712
|
}
|
|
4739
4713
|
}];
|
|
4740
|
-
var react_default$1 = personalReact;
|
|
4741
4714
|
|
|
4742
4715
|
//#endregion
|
|
4743
4716
|
//#region src/configs/combined/react.ts
|
|
4744
4717
|
const combinedReact = [
|
|
4745
4718
|
{ name: "@alextheman/combined/react" },
|
|
4746
|
-
...
|
|
4747
|
-
...
|
|
4719
|
+
...generalReact,
|
|
4720
|
+
...internalReact
|
|
4748
4721
|
];
|
|
4749
|
-
var react_default = combinedReact;
|
|
4750
4722
|
|
|
4751
4723
|
//#endregion
|
|
4752
4724
|
//#region src/configs/combined/javaScriptReact.ts
|
|
4753
4725
|
function combinedJavaScriptReact(plugin) {
|
|
4754
4726
|
return [
|
|
4755
4727
|
{ name: "@alextheman/combined/javascript-react" },
|
|
4756
|
-
...
|
|
4757
|
-
...
|
|
4728
|
+
...combinedJavaScript(plugin),
|
|
4729
|
+
...combinedReact
|
|
4758
4730
|
];
|
|
4759
4731
|
}
|
|
4760
|
-
var javaScriptReact_default = combinedJavaScriptReact;
|
|
4761
4732
|
|
|
4762
4733
|
//#endregion
|
|
4763
4734
|
//#region src/configs/general/packageJson.ts
|
|
@@ -4765,16 +4736,15 @@ const generalPackageJson = [packageJson.configs.recommended, {
|
|
|
4765
4736
|
plugins: { "package-json": packageJson },
|
|
4766
4737
|
rules: { "package-json/scripts-name-casing": "error" }
|
|
4767
4738
|
}];
|
|
4768
|
-
var packageJson_default = generalPackageJson;
|
|
4769
4739
|
|
|
4770
4740
|
//#endregion
|
|
4771
4741
|
//#region src/configs/general/typeScript.ts
|
|
4772
4742
|
const generalTypeScript = [
|
|
4773
|
-
...tseslint.configs.recommended,
|
|
4774
|
-
...
|
|
4743
|
+
...fixupConfigRules(tseslint.configs.recommended),
|
|
4744
|
+
...generalJavaScript,
|
|
4775
4745
|
{
|
|
4776
4746
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4777
|
-
languageOptions:
|
|
4747
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4778
4748
|
name: "@alextheman/general/typescript",
|
|
4779
4749
|
rules: {
|
|
4780
4750
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
@@ -4782,7 +4752,7 @@ const generalTypeScript = [
|
|
|
4782
4752
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
4783
4753
|
"@typescript-eslint/no-deprecated": "warn",
|
|
4784
4754
|
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
4785
|
-
"@typescript-eslint/no-unused-vars": ["error",
|
|
4755
|
+
"@typescript-eslint/no-unused-vars": ["error", unusedVarsIgnorePatterns],
|
|
4786
4756
|
"import/no-unresolved": "off",
|
|
4787
4757
|
"no-redeclare": "off",
|
|
4788
4758
|
"no-undef": "off",
|
|
@@ -4790,21 +4760,25 @@ const generalTypeScript = [
|
|
|
4790
4760
|
}
|
|
4791
4761
|
}
|
|
4792
4762
|
];
|
|
4793
|
-
var typeScript_default$2 = generalTypeScript;
|
|
4794
4763
|
|
|
4795
4764
|
//#endregion
|
|
4796
|
-
//#region src/configs/
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4765
|
+
//#region src/configs/internal/alexCLine.ts
|
|
4766
|
+
function internalAlexCLine(plugin) {
|
|
4767
|
+
return [
|
|
4768
|
+
...combinedTypeScript(plugin),
|
|
4769
|
+
{
|
|
4770
|
+
files: ["src/**/*.ts"],
|
|
4771
|
+
name: "@alextheman/internal/alex-c-line",
|
|
4772
|
+
plugins: { n: nodePlugin },
|
|
4773
|
+
rules: { "n/hashbang": "off" }
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
files: ["src/commands/index.ts", "src/configs/internal/**"],
|
|
4777
|
+
plugins: { perfectionist },
|
|
4778
|
+
rules: { "perfectionist/sort-objects": ["error", sortObjects] }
|
|
4779
|
+
}
|
|
4780
|
+
];
|
|
4781
|
+
}
|
|
4808
4782
|
|
|
4809
4783
|
//#endregion
|
|
4810
4784
|
//#region src/configs/helpers/requireJsdocOptions.ts
|
|
@@ -4816,13 +4790,12 @@ const requireJsdocOptions = {
|
|
|
4816
4790
|
MethodDefinition: true
|
|
4817
4791
|
}
|
|
4818
4792
|
};
|
|
4819
|
-
var requireJsdocOptions_default = requireJsdocOptions;
|
|
4820
4793
|
|
|
4821
4794
|
//#endregion
|
|
4822
|
-
//#region src/configs/
|
|
4823
|
-
const
|
|
4795
|
+
//#region src/configs/internal/jsdoc.ts
|
|
4796
|
+
const internalJsdoc = [jsdoc.configs["flat/recommended-typescript-error"], { rules: {
|
|
4824
4797
|
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
|
|
4825
|
-
"jsdoc/require-jsdoc": ["warn",
|
|
4798
|
+
"jsdoc/require-jsdoc": ["warn", requireJsdocOptions],
|
|
4826
4799
|
"jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
|
|
4827
4800
|
return {
|
|
4828
4801
|
context,
|
|
@@ -4844,20 +4817,18 @@ const personalTypeScriptPackage = [jsdoc.configs["flat/recommended-typescript-er
|
|
|
4844
4817
|
{ startLines: 1 }
|
|
4845
4818
|
]
|
|
4846
4819
|
} }];
|
|
4847
|
-
var typeScriptPackage_default$1 = personalTypeScriptPackage;
|
|
4848
4820
|
|
|
4849
4821
|
//#endregion
|
|
4850
|
-
//#region src/configs/
|
|
4851
|
-
const
|
|
4822
|
+
//#region src/configs/internal/components.ts
|
|
4823
|
+
const internalComponents = [...internalJsdoc, { rules: {
|
|
4852
4824
|
"jsdoc/check-param-names": "off",
|
|
4853
4825
|
"jsdoc/require-param": ["error", { checkDestructured: false }],
|
|
4854
4826
|
"jsdoc/require-returns": "off"
|
|
4855
4827
|
} }];
|
|
4856
|
-
var components_default = personalComponents;
|
|
4857
4828
|
|
|
4858
4829
|
//#endregion
|
|
4859
4830
|
//#region src/configs/helpers/restrictedImports/eslintPluginRestrictedImports.ts
|
|
4860
|
-
const eslintPluginRestrictedImports =
|
|
4831
|
+
const eslintPluginRestrictedImports = combineRestrictedImports(generalRestrictedImports, { paths: [
|
|
4861
4832
|
{
|
|
4862
4833
|
importNames: ["default"],
|
|
4863
4834
|
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.",
|
|
@@ -4880,14 +4851,14 @@ const eslintPluginRestrictedImports = combineRestrictedImports_default(generalRe
|
|
|
4880
4851
|
name: "eslint-vitest-rule-tester"
|
|
4881
4852
|
}
|
|
4882
4853
|
] });
|
|
4883
|
-
var eslintPluginRestrictedImports_default = eslintPluginRestrictedImports;
|
|
4884
4854
|
|
|
4885
4855
|
//#endregion
|
|
4886
|
-
//#region src/configs/
|
|
4887
|
-
function
|
|
4856
|
+
//#region src/configs/internal/eslintPlugin.ts
|
|
4857
|
+
function internalEslintPlugin(plugin) {
|
|
4888
4858
|
return [
|
|
4859
|
+
...combinedTypeScriptPackage(plugin),
|
|
4889
4860
|
{
|
|
4890
|
-
name: "@alextheman/
|
|
4861
|
+
name: "@alextheman/internal/eslint-plugin",
|
|
4891
4862
|
plugins: {
|
|
4892
4863
|
"@alextheman": plugin,
|
|
4893
4864
|
jsdoc,
|
|
@@ -4896,24 +4867,23 @@ function personalEslintPlugin(plugin) {
|
|
|
4896
4867
|
rules: {
|
|
4897
4868
|
"@alextheman/no-plugin-configs-access-from-src-configs": "error",
|
|
4898
4869
|
"jsdoc/require-jsdoc": "off",
|
|
4899
|
-
"no-restricted-imports": ["error",
|
|
4870
|
+
"no-restricted-imports": ["error", eslintPluginRestrictedImports]
|
|
4900
4871
|
}
|
|
4901
4872
|
},
|
|
4902
4873
|
{
|
|
4903
4874
|
files: ["src/rules/index.ts", "src/configs/**"],
|
|
4904
|
-
rules: { "perfectionist/sort-objects": ["error",
|
|
4875
|
+
rules: { "perfectionist/sort-objects": ["error", sortObjects] }
|
|
4905
4876
|
},
|
|
4906
4877
|
{
|
|
4907
4878
|
files: ["src/utility/public/**"],
|
|
4908
|
-
rules: { "jsdoc/require-jsdoc": ["error",
|
|
4879
|
+
rules: { "jsdoc/require-jsdoc": ["error", requireJsdocOptions] }
|
|
4909
4880
|
}
|
|
4910
4881
|
];
|
|
4911
4882
|
}
|
|
4912
|
-
var eslintPlugin_default = personalEslintPlugin;
|
|
4913
4883
|
|
|
4914
4884
|
//#endregion
|
|
4915
4885
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
4916
|
-
const neurosongsBackEndRestrictedImports =
|
|
4886
|
+
const neurosongsBackEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, { paths: [
|
|
4917
4887
|
{
|
|
4918
4888
|
importNames: ["setPrismaClient"],
|
|
4919
4889
|
message: "Do not attempt to reset the Prisma Client outside setup files.",
|
|
@@ -4929,17 +4899,16 @@ const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(pers
|
|
|
4929
4899
|
name: "@neurosongs/prisma-client/prisma"
|
|
4930
4900
|
}
|
|
4931
4901
|
] });
|
|
4932
|
-
var neurosongsBackEndRestrictedImports_default = neurosongsBackEndRestrictedImports;
|
|
4933
4902
|
|
|
4934
4903
|
//#endregion
|
|
4935
|
-
//#region src/configs/
|
|
4936
|
-
const
|
|
4904
|
+
//#region src/configs/internal/neurosongsBackEnd.ts
|
|
4905
|
+
const internalNeurosongsBackEnd = [
|
|
4937
4906
|
{
|
|
4938
|
-
name: "@alextheman/
|
|
4907
|
+
name: "@alextheman/internal/neurosongs-back-end",
|
|
4939
4908
|
plugins: { n: nodePlugin },
|
|
4940
4909
|
rules: {
|
|
4941
4910
|
"n/no-extraneous-import": "off",
|
|
4942
|
-
"no-restricted-imports": ["error",
|
|
4911
|
+
"no-restricted-imports": ["error", neurosongsBackEndRestrictedImports]
|
|
4943
4912
|
}
|
|
4944
4913
|
},
|
|
4945
4914
|
{
|
|
@@ -4955,11 +4924,10 @@ const personalNeurosongsBackEnd = [
|
|
|
4955
4924
|
] }
|
|
4956
4925
|
}
|
|
4957
4926
|
];
|
|
4958
|
-
var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
4959
4927
|
|
|
4960
4928
|
//#endregion
|
|
4961
4929
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
4962
|
-
const neurosongsFrontEndRestrictedImports =
|
|
4930
|
+
const neurosongsFrontEndRestrictedImports = combineRestrictedImports(personalRestrictedImports, reactRestrictedImports, {
|
|
4963
4931
|
paths: [{
|
|
4964
4932
|
importNames: ["PrismaClient"],
|
|
4965
4933
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead.",
|
|
@@ -4976,30 +4944,28 @@ const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(per
|
|
|
4976
4944
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead."
|
|
4977
4945
|
}]
|
|
4978
4946
|
});
|
|
4979
|
-
var neurosongsFrontEndRestrictedImports_default = neurosongsFrontEndRestrictedImports;
|
|
4980
4947
|
|
|
4981
4948
|
//#endregion
|
|
4982
|
-
//#region src/configs/
|
|
4983
|
-
const
|
|
4984
|
-
name: "@alextheman/
|
|
4949
|
+
//#region src/configs/internal/neurosongsFrontEnd.ts
|
|
4950
|
+
const internalNeurosongsFrontEnd = [{
|
|
4951
|
+
name: "@alextheman/internal/neurosongs-front-end",
|
|
4985
4952
|
plugins: { n: nodePlugin },
|
|
4986
4953
|
rules: {
|
|
4987
4954
|
"n/no-extraneous-import": "off",
|
|
4988
|
-
"no-restricted-imports": ["error",
|
|
4955
|
+
"no-restricted-imports": ["error", neurosongsFrontEndRestrictedImports]
|
|
4989
4956
|
}
|
|
4990
4957
|
}];
|
|
4991
|
-
var neurosongsFrontEnd_default = personalNeurosongsFrontEnd;
|
|
4992
4958
|
|
|
4993
4959
|
//#endregion
|
|
4994
|
-
//#region src/configs/
|
|
4995
|
-
function
|
|
4960
|
+
//#region src/configs/internal/typeScript.ts
|
|
4961
|
+
function internalTypeScript(plugin) {
|
|
4996
4962
|
return [{
|
|
4997
4963
|
files: ["**/*.ts", "**/*.tsx"],
|
|
4998
|
-
languageOptions:
|
|
4999
|
-
name: "@alextheman/
|
|
4964
|
+
languageOptions: typeScriptLanguageOptions,
|
|
4965
|
+
name: "@alextheman/internal/typescript",
|
|
5000
4966
|
plugins: {
|
|
5001
4967
|
"@alextheman": plugin,
|
|
5002
|
-
"@typescript-eslint": tseslint.plugin
|
|
4968
|
+
"@typescript-eslint": fixupPluginRules(tseslint.plugin)
|
|
5003
4969
|
},
|
|
5004
4970
|
rules: {
|
|
5005
4971
|
"@alextheman/standardise-error-messages": "error",
|
|
@@ -5012,103 +4978,99 @@ function personalTypeScript(plugin) {
|
|
|
5012
4978
|
}
|
|
5013
4979
|
}];
|
|
5014
4980
|
}
|
|
5015
|
-
var typeScript_default$1 = personalTypeScript;
|
|
5016
4981
|
|
|
5017
4982
|
//#endregion
|
|
5018
|
-
//#region src/configs/
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
}
|
|
5030
|
-
|
|
4983
|
+
//#region src/configs/internal/utility.ts
|
|
4984
|
+
function internalUtility(plugin) {
|
|
4985
|
+
return [...combinedTypeScriptPackage(plugin), {
|
|
4986
|
+
name: "@alextheman/internal/utility",
|
|
4987
|
+
plugins: {
|
|
4988
|
+
"@typescript-eslint": fixupPluginRules(tseslint.plugin),
|
|
4989
|
+
jsdoc
|
|
4990
|
+
},
|
|
4991
|
+
rules: {
|
|
4992
|
+
"@typescript-eslint/explicit-module-boundary-types": "error",
|
|
4993
|
+
"jsdoc/require-jsdoc": ["error", requireJsdocOptions]
|
|
4994
|
+
}
|
|
4995
|
+
}];
|
|
4996
|
+
}
|
|
5031
4997
|
|
|
5032
4998
|
//#endregion
|
|
5033
4999
|
//#region src/configs/combined/typeScript.ts
|
|
5034
5000
|
function combinedTypeScript(plugin) {
|
|
5035
5001
|
return [
|
|
5036
5002
|
{ name: "@alextheman/combined/typescript" },
|
|
5037
|
-
...
|
|
5038
|
-
...
|
|
5039
|
-
...
|
|
5003
|
+
...combinedJavaScript(plugin),
|
|
5004
|
+
...generalTypeScript,
|
|
5005
|
+
...internalJavaScript(plugin),
|
|
5006
|
+
...internalTypeScript(plugin)
|
|
5040
5007
|
];
|
|
5041
5008
|
}
|
|
5042
|
-
var typeScript_default = combinedTypeScript;
|
|
5043
5009
|
|
|
5044
5010
|
//#endregion
|
|
5045
5011
|
//#region src/configs/combined/typeScriptPackage.ts
|
|
5046
5012
|
function combinedTypeScriptPackage(plugin) {
|
|
5047
5013
|
return [
|
|
5048
5014
|
{ name: "@alextheman/combined/typescript-package" },
|
|
5049
|
-
...
|
|
5050
|
-
...
|
|
5015
|
+
...combinedTypeScript(plugin),
|
|
5016
|
+
...internalJsdoc
|
|
5051
5017
|
];
|
|
5052
5018
|
}
|
|
5053
|
-
var typeScriptPackage_default = combinedTypeScriptPackage;
|
|
5054
5019
|
|
|
5055
5020
|
//#endregion
|
|
5056
5021
|
//#region src/configs/combined/typeScriptReact.ts
|
|
5057
5022
|
function combinedTypeScriptReact(plugin) {
|
|
5058
5023
|
return [
|
|
5059
5024
|
{ name: "@alextheman/combined/typescript-react" },
|
|
5060
|
-
...
|
|
5061
|
-
...
|
|
5025
|
+
...combinedTypeScript(plugin),
|
|
5026
|
+
...combinedReact
|
|
5062
5027
|
];
|
|
5063
5028
|
}
|
|
5064
|
-
var typeScriptReact_default = combinedTypeScriptReact;
|
|
5065
5029
|
|
|
5066
5030
|
//#endregion
|
|
5067
5031
|
//#region src/configs/index.ts
|
|
5068
5032
|
function createAlexPluginConfigs(plugin) {
|
|
5069
|
-
return
|
|
5033
|
+
return flattenConfigs({
|
|
5070
5034
|
combined: {
|
|
5071
|
-
javascript: [...
|
|
5072
|
-
javascriptReact: [...
|
|
5073
|
-
react: [...
|
|
5074
|
-
tests: [...
|
|
5075
|
-
typescript: [...
|
|
5076
|
-
typescriptPackage: [...
|
|
5077
|
-
typescriptReact: [...
|
|
5035
|
+
javascript: [...combinedJavaScript(plugin), ...generalPackageJson],
|
|
5036
|
+
javascriptReact: [...combinedJavaScriptReact(plugin), ...generalPackageJson],
|
|
5037
|
+
react: [...combinedReact, ...generalPackageJson],
|
|
5038
|
+
tests: [...combinedTests(plugin), ...generalPackageJson],
|
|
5039
|
+
typescript: [...combinedTypeScript(plugin), ...generalPackageJson],
|
|
5040
|
+
typescriptPackage: [...combinedTypeScriptPackage(plugin), ...generalPackageJson],
|
|
5041
|
+
typescriptReact: [...combinedTypeScriptReact(plugin), ...generalPackageJson]
|
|
5078
5042
|
},
|
|
5079
5043
|
general: {
|
|
5080
|
-
javascript:
|
|
5081
|
-
packageJson:
|
|
5082
|
-
react:
|
|
5083
|
-
typescript:
|
|
5044
|
+
javascript: generalJavaScript,
|
|
5045
|
+
packageJson: generalPackageJson,
|
|
5046
|
+
react: generalReact,
|
|
5047
|
+
typescript: generalTypeScript
|
|
5084
5048
|
},
|
|
5085
|
-
|
|
5086
|
-
alexCLine:
|
|
5087
|
-
components:
|
|
5088
|
-
eslintPlugin:
|
|
5089
|
-
javascript:
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
utility:
|
|
5049
|
+
internal: {
|
|
5050
|
+
alexCLine: internalAlexCLine(plugin),
|
|
5051
|
+
components: internalComponents,
|
|
5052
|
+
eslintPlugin: internalEslintPlugin(plugin),
|
|
5053
|
+
javascript: internalJavaScript(plugin),
|
|
5054
|
+
jsdoc: internalJsdoc,
|
|
5055
|
+
neurosongsBackEnd: internalNeurosongsBackEnd,
|
|
5056
|
+
neurosongsFrontEnd: internalNeurosongsFrontEnd,
|
|
5057
|
+
react: internalReact,
|
|
5058
|
+
tests: internalTests,
|
|
5059
|
+
typescript: internalTypeScript(plugin),
|
|
5060
|
+
utility: internalUtility(plugin)
|
|
5097
5061
|
},
|
|
5098
5062
|
plugin: {
|
|
5099
|
-
base:
|
|
5100
|
-
tests:
|
|
5063
|
+
base: pluginBase(plugin),
|
|
5064
|
+
tests: pluginTests(plugin)
|
|
5101
5065
|
}
|
|
5102
5066
|
});
|
|
5103
5067
|
}
|
|
5104
|
-
var configs_default = createAlexPluginConfigs;
|
|
5105
5068
|
|
|
5106
5069
|
//#endregion
|
|
5107
5070
|
//#region src/rules/helpers/createRule.ts
|
|
5108
5071
|
const createRule = ESLintUtils.RuleCreator((ruleName) => {
|
|
5109
5072
|
return ruleName;
|
|
5110
5073
|
});
|
|
5111
|
-
var createRule_default = createRule;
|
|
5112
5074
|
|
|
5113
5075
|
//#endregion
|
|
5114
5076
|
//#region src/rules/consistent-test-function.ts
|
|
@@ -5120,14 +5082,14 @@ const consistentTestFunctionOptionsSchema = z.object({
|
|
|
5120
5082
|
function parseConsistentTestFunctionOptions(data) {
|
|
5121
5083
|
return consistentTestFunctionOptionsSchema.parse(data);
|
|
5122
5084
|
}
|
|
5123
|
-
const consistentTestFunction =
|
|
5085
|
+
const consistentTestFunction = createRule({
|
|
5124
5086
|
name: "consistent-test-function",
|
|
5125
5087
|
meta: {
|
|
5126
5088
|
docs: { description: "Enforce a consistent function (either `test` or `it`)" },
|
|
5127
5089
|
messages: { message: "Unexpected {{source}}. Please use {{preference}} instead." },
|
|
5128
5090
|
type: "suggestion",
|
|
5129
5091
|
fixable: "code",
|
|
5130
|
-
schema:
|
|
5092
|
+
schema: createRuleSchemaFromZodSchema(consistentTestFunctionOptionsSchema)
|
|
5131
5093
|
},
|
|
5132
5094
|
defaultOptions: [{
|
|
5133
5095
|
preference: "test",
|
|
@@ -5144,7 +5106,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5144
5106
|
source: node.callee.name,
|
|
5145
5107
|
preference
|
|
5146
5108
|
},
|
|
5147
|
-
fix:
|
|
5109
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5148
5110
|
return fixer.replaceText(node.callee, "test");
|
|
5149
5111
|
})
|
|
5150
5112
|
});
|
|
@@ -5155,7 +5117,7 @@ const consistentTestFunction = createRule_default({
|
|
|
5155
5117
|
source: node.callee.name,
|
|
5156
5118
|
preference
|
|
5157
5119
|
},
|
|
5158
|
-
fix:
|
|
5120
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5159
5121
|
return fixer.replaceText(node.callee, "it");
|
|
5160
5122
|
})
|
|
5161
5123
|
});
|
|
@@ -5169,12 +5131,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5169
5131
|
source: specifier.imported.name,
|
|
5170
5132
|
preference
|
|
5171
5133
|
},
|
|
5172
|
-
fix:
|
|
5134
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5173
5135
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5174
5136
|
return specifier.type === AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5175
5137
|
});
|
|
5176
5138
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5177
|
-
const newSpecifiers =
|
|
5139
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "it");
|
|
5178
5140
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5179
5141
|
}
|
|
5180
5142
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5187,12 +5149,12 @@ const consistentTestFunction = createRule_default({
|
|
|
5187
5149
|
source: specifier.imported.name,
|
|
5188
5150
|
preference
|
|
5189
5151
|
},
|
|
5190
|
-
fix:
|
|
5152
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5191
5153
|
const importedNames = node.specifiers.map((specifier) => {
|
|
5192
5154
|
return specifier.type === AST_NODE_TYPES.ImportSpecifier && specifier.imported.type === AST_NODE_TYPES.Identifier ? specifier.imported.name : "";
|
|
5193
5155
|
});
|
|
5194
5156
|
if (importedNames.includes("it") && importedNames.includes("test")) {
|
|
5195
|
-
const newSpecifiers =
|
|
5157
|
+
const newSpecifiers = getImportSpecifiersAfterRemoving(context, node.specifiers, "test");
|
|
5196
5158
|
return fixer.replaceTextRange([node.specifiers[0].range[0], node.specifiers[node.specifiers.length - 1].range[1]], newSpecifiers);
|
|
5197
5159
|
}
|
|
5198
5160
|
return fixer.replaceTextRange([specifier.imported.range[0], specifier.imported.range[1]], preference);
|
|
@@ -5203,11 +5165,10 @@ const consistentTestFunction = createRule_default({
|
|
|
5203
5165
|
};
|
|
5204
5166
|
}
|
|
5205
5167
|
});
|
|
5206
|
-
var consistent_test_function_default = consistentTestFunction;
|
|
5207
5168
|
|
|
5208
5169
|
//#endregion
|
|
5209
5170
|
//#region src/rules/no-isolated-tests.ts
|
|
5210
|
-
const noIsolatedTests =
|
|
5171
|
+
const noIsolatedTests = createRule({
|
|
5211
5172
|
name: "no-isolated-tests",
|
|
5212
5173
|
meta: {
|
|
5213
5174
|
docs: { description: "Forbid the use of describe.only() and test.only()" },
|
|
@@ -5218,7 +5179,7 @@ const noIsolatedTests = createRule_default({
|
|
|
5218
5179
|
defaultOptions: [],
|
|
5219
5180
|
create(context) {
|
|
5220
5181
|
return { CallExpression(node) {
|
|
5221
|
-
if (
|
|
5182
|
+
if (checkCallExpression(node, "describe", "only") || checkCallExpression(node, "test", "only") || checkCallExpression(node, "it", "only")) return context.report({
|
|
5222
5183
|
node,
|
|
5223
5184
|
messageId: "message",
|
|
5224
5185
|
data: { source: node.callee.object.name }
|
|
@@ -5226,7 +5187,6 @@ const noIsolatedTests = createRule_default({
|
|
|
5226
5187
|
} };
|
|
5227
5188
|
}
|
|
5228
5189
|
});
|
|
5229
|
-
var no_isolated_tests_default = noIsolatedTests;
|
|
5230
5190
|
|
|
5231
5191
|
//#endregion
|
|
5232
5192
|
//#region src/rules/no-namespace-imports.ts
|
|
@@ -5234,13 +5194,13 @@ const noNamespaceImportsOptionsSchema = z.object({ allow: z.array(z.string()) })
|
|
|
5234
5194
|
function parseNoNamespaceImportsOptions(data) {
|
|
5235
5195
|
return noNamespaceImportsOptionsSchema.parse(data);
|
|
5236
5196
|
}
|
|
5237
|
-
const noNamespaceImports =
|
|
5197
|
+
const noNamespaceImports = createRule({
|
|
5238
5198
|
name: "no-namespace-imports",
|
|
5239
5199
|
meta: {
|
|
5240
5200
|
docs: { description: "Forbid the use of import *" },
|
|
5241
5201
|
messages: { message: "Import * from \"{{source}}\" is not allowed. Please use named imports instead." },
|
|
5242
5202
|
type: "suggestion",
|
|
5243
|
-
schema:
|
|
5203
|
+
schema: createRuleSchemaFromZodSchema(noNamespaceImportsOptionsSchema)
|
|
5244
5204
|
},
|
|
5245
5205
|
defaultOptions: [{ allow: [""] }],
|
|
5246
5206
|
create(context) {
|
|
@@ -5258,11 +5218,10 @@ const noNamespaceImports = createRule_default({
|
|
|
5258
5218
|
} };
|
|
5259
5219
|
}
|
|
5260
5220
|
});
|
|
5261
|
-
var no_namespace_imports_default = noNamespaceImports;
|
|
5262
5221
|
|
|
5263
5222
|
//#endregion
|
|
5264
5223
|
//#region src/rules/no-plugin-configs-access-from-src-configs.ts
|
|
5265
|
-
const noPluginConfigAccessFromSrcConfigs =
|
|
5224
|
+
const noPluginConfigAccessFromSrcConfigs = createRule({
|
|
5266
5225
|
name: "no-plugin-configs-access-from-src-configs",
|
|
5267
5226
|
meta: {
|
|
5268
5227
|
docs: { description: "Forbid access of plugin.configs in src/configs" },
|
|
@@ -5283,7 +5242,6 @@ const noPluginConfigAccessFromSrcConfigs = createRule_default({
|
|
|
5283
5242
|
} };
|
|
5284
5243
|
}
|
|
5285
5244
|
});
|
|
5286
|
-
var no_plugin_configs_access_from_src_configs_default = noPluginConfigAccessFromSrcConfigs;
|
|
5287
5245
|
|
|
5288
5246
|
//#endregion
|
|
5289
5247
|
//#region src/rules/no-relative-imports.ts
|
|
@@ -5291,7 +5249,7 @@ const noRelativeImportsOptionsSchema = z.object({ depth: z.int().nonnegative() }
|
|
|
5291
5249
|
function parseNoRelativeImportsOptions(data) {
|
|
5292
5250
|
return noRelativeImportsOptionsSchema.parse(data);
|
|
5293
5251
|
}
|
|
5294
|
-
const noRelativeImports =
|
|
5252
|
+
const noRelativeImports = createRule({
|
|
5295
5253
|
name: "no-relative-imports",
|
|
5296
5254
|
meta: {
|
|
5297
5255
|
docs: { description: "Forbid the use of relative imports" },
|
|
@@ -5302,7 +5260,7 @@ const noRelativeImports = createRule_default({
|
|
|
5302
5260
|
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}}?!"
|
|
5303
5261
|
},
|
|
5304
5262
|
type: "suggestion",
|
|
5305
|
-
schema:
|
|
5263
|
+
schema: createRuleSchemaFromZodSchema(noRelativeImportsOptionsSchema)
|
|
5306
5264
|
},
|
|
5307
5265
|
defaultOptions: [{ depth: 0 }],
|
|
5308
5266
|
create(context) {
|
|
@@ -5351,11 +5309,10 @@ const noRelativeImports = createRule_default({
|
|
|
5351
5309
|
} };
|
|
5352
5310
|
}
|
|
5353
5311
|
});
|
|
5354
|
-
var no_relative_imports_default = noRelativeImports;
|
|
5355
5312
|
|
|
5356
5313
|
//#endregion
|
|
5357
5314
|
//#region src/rules/no-skipped-tests.ts
|
|
5358
|
-
const noSkippedTests =
|
|
5315
|
+
const noSkippedTests = createRule({
|
|
5359
5316
|
name: "no-skipped-tests",
|
|
5360
5317
|
meta: {
|
|
5361
5318
|
docs: { description: "Forbid the use of describe.skip() and test.skip()" },
|
|
@@ -5366,7 +5323,7 @@ const noSkippedTests = createRule_default({
|
|
|
5366
5323
|
defaultOptions: [],
|
|
5367
5324
|
create(context) {
|
|
5368
5325
|
return { CallExpression(node) {
|
|
5369
|
-
if (
|
|
5326
|
+
if (checkCallExpression(node, "describe", "skip") || checkCallExpression(node, "test", "skip") || checkCallExpression(node, "it", "skip")) return context.report({
|
|
5370
5327
|
node,
|
|
5371
5328
|
messageId: "message",
|
|
5372
5329
|
data: { source: node.callee.object.name }
|
|
@@ -5374,7 +5331,6 @@ const noSkippedTests = createRule_default({
|
|
|
5374
5331
|
} };
|
|
5375
5332
|
}
|
|
5376
5333
|
});
|
|
5377
|
-
var no_skipped_tests_default = noSkippedTests;
|
|
5378
5334
|
|
|
5379
5335
|
//#endregion
|
|
5380
5336
|
//#region src/rules/standardise-error-messages.ts
|
|
@@ -5382,7 +5338,7 @@ const standardiseErrorMessagesOptionsSchema = z.object({ regex: z.string() }).pa
|
|
|
5382
5338
|
function parseStandardiseErrorMessagesOptions(data) {
|
|
5383
5339
|
return standardiseErrorMessagesOptionsSchema.parse(data);
|
|
5384
5340
|
}
|
|
5385
|
-
const schema =
|
|
5341
|
+
const schema = createRuleSchemaFromZodSchema(standardiseErrorMessagesOptionsSchema);
|
|
5386
5342
|
const defaultErrorRegex = "^[A-Z]+(?:_[A-Z]+)*$";
|
|
5387
5343
|
function checkCurrentNode(context, node) {
|
|
5388
5344
|
const { regex: errorRegex = defaultErrorRegex } = parseStandardiseErrorMessagesOptions(context.options[0] ?? { regex: defaultErrorRegex });
|
|
@@ -5399,7 +5355,7 @@ function checkCurrentNode(context, node) {
|
|
|
5399
5355
|
});
|
|
5400
5356
|
}
|
|
5401
5357
|
}
|
|
5402
|
-
const standardiseErrorMessages =
|
|
5358
|
+
const standardiseErrorMessages = createRule({
|
|
5403
5359
|
name: "standardise-error-messages",
|
|
5404
5360
|
meta: {
|
|
5405
5361
|
docs: { description: "Enforce a consistent standard for error messages." },
|
|
@@ -5419,7 +5375,6 @@ const standardiseErrorMessages = createRule_default({
|
|
|
5419
5375
|
};
|
|
5420
5376
|
}
|
|
5421
5377
|
});
|
|
5422
|
-
var standardise_error_messages_default = standardiseErrorMessages;
|
|
5423
5378
|
|
|
5424
5379
|
//#endregion
|
|
5425
5380
|
//#region src/rules/use-normalized-imports.ts
|
|
@@ -5427,13 +5382,13 @@ const useNormalizedImportsOptionsSchema = z.object({ fixable: z.boolean() }).par
|
|
|
5427
5382
|
function parseUseNormalizedImportsOptions(data) {
|
|
5428
5383
|
return useNormalizedImportsOptionsSchema.parse(data);
|
|
5429
5384
|
}
|
|
5430
|
-
const useNormalizedImports =
|
|
5385
|
+
const useNormalizedImports = createRule({
|
|
5431
5386
|
name: "use-normalized-imports",
|
|
5432
5387
|
meta: {
|
|
5433
5388
|
docs: { description: "Enforce the usage of normalized imports (i.e. import paths that you would only get from path.posix.normalize())" },
|
|
5434
5389
|
messages: { pathNotNormalized: "Import path {{nonNormalized}} is not normalised. Please use {{normalized}} instead." },
|
|
5435
5390
|
type: "suggestion",
|
|
5436
|
-
schema:
|
|
5391
|
+
schema: createRuleSchemaFromZodSchema(useNormalizedImportsOptionsSchema),
|
|
5437
5392
|
fixable: "code"
|
|
5438
5393
|
},
|
|
5439
5394
|
defaultOptions: [{ fixable: true }],
|
|
@@ -5448,7 +5403,7 @@ const useNormalizedImports = createRule_default({
|
|
|
5448
5403
|
nonNormalized: node.source.value,
|
|
5449
5404
|
normalized: normalizedPath
|
|
5450
5405
|
},
|
|
5451
|
-
fix:
|
|
5406
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5452
5407
|
const [quote] = node.source.raw;
|
|
5453
5408
|
return fixer.replaceText(node.source, `${quote}${normalizedPath}${quote}`);
|
|
5454
5409
|
})
|
|
@@ -5456,7 +5411,6 @@ const useNormalizedImports = createRule_default({
|
|
|
5456
5411
|
} };
|
|
5457
5412
|
}
|
|
5458
5413
|
});
|
|
5459
|
-
var use_normalized_imports_default = useNormalizedImports;
|
|
5460
5414
|
|
|
5461
5415
|
//#endregion
|
|
5462
5416
|
//#region src/rules/use-object-shorthand.ts
|
|
@@ -5464,14 +5418,14 @@ const useObjectShorthandOptionsSchema = z.object({ fixable: z.boolean() }).parti
|
|
|
5464
5418
|
function parseUseObjectShorthandOptions(data) {
|
|
5465
5419
|
return useObjectShorthandOptionsSchema.parse(data);
|
|
5466
5420
|
}
|
|
5467
|
-
const useObjectShorthand =
|
|
5421
|
+
const useObjectShorthand = createRule({
|
|
5468
5422
|
name: "use-object-shorthand",
|
|
5469
5423
|
meta: {
|
|
5470
5424
|
docs: { description: "Encourage the use of object shorthand (e.g. const property = \"Hello\"; const object = { property });" },
|
|
5471
5425
|
messages: { useShorthand: "{ {{source}} } is not allowed. Please use the object shorthand." },
|
|
5472
5426
|
type: "suggestion",
|
|
5473
5427
|
fixable: "code",
|
|
5474
|
-
schema:
|
|
5428
|
+
schema: createRuleSchemaFromZodSchema(useObjectShorthandOptionsSchema)
|
|
5475
5429
|
},
|
|
5476
5430
|
defaultOptions: [{ fixable: true }],
|
|
5477
5431
|
create(context) {
|
|
@@ -5481,7 +5435,7 @@ const useObjectShorthand = createRule_default({
|
|
|
5481
5435
|
node,
|
|
5482
5436
|
messageId: "useShorthand",
|
|
5483
5437
|
data: { source: context.sourceCode.getText(node) },
|
|
5484
|
-
fix:
|
|
5438
|
+
fix: fixOnCondition(fixable, (fixer) => {
|
|
5485
5439
|
const key = node.key;
|
|
5486
5440
|
return fixer.replaceTextRange([node.range[0], node.range[1]], key.name);
|
|
5487
5441
|
})
|
|
@@ -5489,26 +5443,25 @@ const useObjectShorthand = createRule_default({
|
|
|
5489
5443
|
} };
|
|
5490
5444
|
}
|
|
5491
5445
|
});
|
|
5492
|
-
var use_object_shorthand_default = useObjectShorthand;
|
|
5493
5446
|
|
|
5494
5447
|
//#endregion
|
|
5495
5448
|
//#region src/rules/index.ts
|
|
5496
5449
|
var rules_default = {
|
|
5497
|
-
"consistent-test-function":
|
|
5498
|
-
"no-isolated-tests":
|
|
5499
|
-
"no-namespace-imports":
|
|
5500
|
-
"no-plugin-configs-access-from-src-configs":
|
|
5501
|
-
"no-relative-imports":
|
|
5502
|
-
"no-skipped-tests":
|
|
5503
|
-
"standardise-error-messages":
|
|
5504
|
-
"use-normalized-imports":
|
|
5505
|
-
"use-object-shorthand":
|
|
5450
|
+
"consistent-test-function": consistentTestFunction,
|
|
5451
|
+
"no-isolated-tests": noIsolatedTests,
|
|
5452
|
+
"no-namespace-imports": noNamespaceImports,
|
|
5453
|
+
"no-plugin-configs-access-from-src-configs": noPluginConfigAccessFromSrcConfigs,
|
|
5454
|
+
"no-relative-imports": noRelativeImports,
|
|
5455
|
+
"no-skipped-tests": noSkippedTests,
|
|
5456
|
+
"standardise-error-messages": standardiseErrorMessages,
|
|
5457
|
+
"use-normalized-imports": useNormalizedImports,
|
|
5458
|
+
"use-object-shorthand": useObjectShorthand
|
|
5506
5459
|
};
|
|
5507
5460
|
|
|
5508
5461
|
//#endregion
|
|
5509
5462
|
//#region package.json
|
|
5510
5463
|
var name = "@alextheman/eslint-plugin";
|
|
5511
|
-
var version = "5.
|
|
5464
|
+
var version = "5.6.1";
|
|
5512
5465
|
|
|
5513
5466
|
//#endregion
|
|
5514
5467
|
//#region src/alexPlugin.ts
|
|
@@ -5521,12 +5474,11 @@ const alexPlugin = {
|
|
|
5521
5474
|
configs: {},
|
|
5522
5475
|
rules: rules_default
|
|
5523
5476
|
};
|
|
5524
|
-
alexPlugin.configs =
|
|
5525
|
-
var alexPlugin_default = alexPlugin;
|
|
5477
|
+
alexPlugin.configs = createAlexPluginConfigs(deepFreeze(deepCopy(alexPlugin)));
|
|
5526
5478
|
|
|
5527
5479
|
//#endregion
|
|
5528
5480
|
//#region src/index.ts
|
|
5529
|
-
var src_default =
|
|
5481
|
+
var src_default = alexPlugin;
|
|
5530
5482
|
|
|
5531
5483
|
//#endregion
|
|
5532
|
-
export {
|
|
5484
|
+
export { checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, src_default as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, prettierConfig, typeDocConfig, vitestConfig };
|