@alextheman/eslint-plugin 5.5.0 → 5.5.2
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 +20 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -5
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@ eslint_plugin_package_json = __toESM(eslint_plugin_package_json);
|
|
|
61
61
|
let eslint_plugin_jsdoc = require("eslint-plugin-jsdoc");
|
|
62
62
|
eslint_plugin_jsdoc = __toESM(eslint_plugin_jsdoc);
|
|
63
63
|
|
|
64
|
-
//#region node_modules/.pnpm/globals@17.
|
|
64
|
+
//#region node_modules/.pnpm/globals@17.2.0/node_modules/globals/globals.json
|
|
65
65
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
66
66
|
module.exports = {
|
|
67
67
|
"amd": {
|
|
@@ -2498,6 +2498,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2498
2498
|
"spyOn": false,
|
|
2499
2499
|
"spyOnAllFunctions": false,
|
|
2500
2500
|
"spyOnProperty": false,
|
|
2501
|
+
"throwUnless": false,
|
|
2502
|
+
"throwUnlessAsync": false,
|
|
2501
2503
|
"waits": false,
|
|
2502
2504
|
"waitsFor": false,
|
|
2503
2505
|
"xdescribe": false,
|
|
@@ -4071,7 +4073,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4071
4073
|
}));
|
|
4072
4074
|
|
|
4073
4075
|
//#endregion
|
|
4074
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4076
|
+
//#region node_modules/.pnpm/globals@17.2.0/node_modules/globals/index.js
|
|
4075
4077
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4076
4078
|
module.exports = require_globals$1();
|
|
4077
4079
|
}));
|
|
@@ -4589,6 +4591,16 @@ const sortObjects = {
|
|
|
4589
4591
|
};
|
|
4590
4592
|
var sortObjects_default = sortObjects;
|
|
4591
4593
|
|
|
4594
|
+
//#endregion
|
|
4595
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4596
|
+
const personalRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4597
|
+
return {
|
|
4598
|
+
message: "Please use node:fs/promises instead.",
|
|
4599
|
+
name
|
|
4600
|
+
};
|
|
4601
|
+
})] });
|
|
4602
|
+
var personalRestrictedImports_default = personalRestrictedImports;
|
|
4603
|
+
|
|
4592
4604
|
//#endregion
|
|
4593
4605
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
4594
4606
|
const sortNamedImports = {
|
|
@@ -4619,6 +4631,7 @@ function personalJavaScript(plugin) {
|
|
|
4619
4631
|
name: "@alextheman/personal/javascript",
|
|
4620
4632
|
plugins: {
|
|
4621
4633
|
"@alextheman": plugin,
|
|
4634
|
+
import: eslint_plugin_import.default,
|
|
4622
4635
|
perfectionist: eslint_plugin_perfectionist.default,
|
|
4623
4636
|
prettier: eslint_plugin_prettier.default
|
|
4624
4637
|
},
|
|
@@ -4631,8 +4644,10 @@ function personalJavaScript(plugin) {
|
|
|
4631
4644
|
"declaration",
|
|
4632
4645
|
{ allowArrowFunctions: false }
|
|
4633
4646
|
],
|
|
4647
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
4634
4648
|
"no-else-return": "error",
|
|
4635
4649
|
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
4650
|
+
"no-restricted-imports": ["error", personalRestrictedImports_default],
|
|
4636
4651
|
"operator-assignment": ["error", "always"],
|
|
4637
4652
|
"perfectionist/sort-classes": ["error", sortClasses_default],
|
|
4638
4653
|
"perfectionist/sort-exports": ["error", sortExports_default],
|
|
@@ -4914,7 +4929,7 @@ var eslintPlugin_default = personalEslintPlugin;
|
|
|
4914
4929
|
|
|
4915
4930
|
//#endregion
|
|
4916
4931
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
4917
|
-
const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(
|
|
4932
|
+
const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(personalRestrictedImports_default, { paths: [
|
|
4918
4933
|
{
|
|
4919
4934
|
importNames: ["setPrismaClient"],
|
|
4920
4935
|
message: "Do not attempt to reset the Prisma Client outside setup files.",
|
|
@@ -4960,7 +4975,7 @@ var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
|
4960
4975
|
|
|
4961
4976
|
//#endregion
|
|
4962
4977
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
4963
|
-
const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(reactRestrictedImports_default, {
|
|
4978
|
+
const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(personalRestrictedImports_default, reactRestrictedImports_default, {
|
|
4964
4979
|
paths: [{
|
|
4965
4980
|
importNames: ["PrismaClient"],
|
|
4966
4981
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead.",
|
|
@@ -5509,7 +5524,7 @@ var rules_default = {
|
|
|
5509
5524
|
//#endregion
|
|
5510
5525
|
//#region package.json
|
|
5511
5526
|
var name = "@alextheman/eslint-plugin";
|
|
5512
|
-
var version = "5.5.
|
|
5527
|
+
var version = "5.5.2";
|
|
5513
5528
|
|
|
5514
5529
|
//#endregion
|
|
5515
5530
|
//#region src/alexPlugin.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -42,7 +42,7 @@ type AlexPluginConfigFlattened = Record<AlexFlattenedConfigName, Linter.Config[]
|
|
|
42
42
|
//#region src/configs/index.d.ts
|
|
43
43
|
declare function createAlexPluginConfigs(plugin: Readonly<AlexPlugin>): Record<AlexFlattenedConfigName, Linter.Config[]>;
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region package.d.ts
|
|
45
|
+
//#region package.json.d.ts
|
|
46
46
|
declare let name: string;
|
|
47
47
|
declare let version: string;
|
|
48
48
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ type AlexPluginConfigFlattened = Record<AlexFlattenedConfigName, Linter.Config[]
|
|
|
42
42
|
//#region src/configs/index.d.ts
|
|
43
43
|
declare function createAlexPluginConfigs(plugin: Readonly<AlexPlugin>): Record<AlexFlattenedConfigName, Linter.Config[]>;
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region package.d.ts
|
|
45
|
+
//#region package.json.d.ts
|
|
46
46
|
declare let name: string;
|
|
47
47
|
declare let version: string;
|
|
48
48
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
}) : target, mod));
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/globals@17.
|
|
48
|
+
//#region node_modules/.pnpm/globals@17.2.0/node_modules/globals/globals.json
|
|
49
49
|
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
50
50
|
module.exports = {
|
|
51
51
|
"amd": {
|
|
@@ -2482,6 +2482,8 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2482
2482
|
"spyOn": false,
|
|
2483
2483
|
"spyOnAllFunctions": false,
|
|
2484
2484
|
"spyOnProperty": false,
|
|
2485
|
+
"throwUnless": false,
|
|
2486
|
+
"throwUnlessAsync": false,
|
|
2485
2487
|
"waits": false,
|
|
2486
2488
|
"waitsFor": false,
|
|
2487
2489
|
"xdescribe": false,
|
|
@@ -4055,7 +4057,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4055
4057
|
}));
|
|
4056
4058
|
|
|
4057
4059
|
//#endregion
|
|
4058
|
-
//#region node_modules/.pnpm/globals@17.
|
|
4060
|
+
//#region node_modules/.pnpm/globals@17.2.0/node_modules/globals/index.js
|
|
4059
4061
|
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4060
4062
|
module.exports = require_globals$1();
|
|
4061
4063
|
}));
|
|
@@ -4573,6 +4575,16 @@ const sortObjects = {
|
|
|
4573
4575
|
};
|
|
4574
4576
|
var sortObjects_default = sortObjects;
|
|
4575
4577
|
|
|
4578
|
+
//#endregion
|
|
4579
|
+
//#region src/configs/helpers/restrictedImports/personalRestrictedImports.ts
|
|
4580
|
+
const personalRestrictedImports = combineRestrictedImports_default(generalRestrictedImports_default, { paths: [...["fs", "node:fs"].map((name) => {
|
|
4581
|
+
return {
|
|
4582
|
+
message: "Please use node:fs/promises instead.",
|
|
4583
|
+
name
|
|
4584
|
+
};
|
|
4585
|
+
})] });
|
|
4586
|
+
var personalRestrictedImports_default = personalRestrictedImports;
|
|
4587
|
+
|
|
4576
4588
|
//#endregion
|
|
4577
4589
|
//#region src/configs/helpers/sorting/sortNamedImports.ts
|
|
4578
4590
|
const sortNamedImports = {
|
|
@@ -4603,6 +4615,7 @@ function personalJavaScript(plugin) {
|
|
|
4603
4615
|
name: "@alextheman/personal/javascript",
|
|
4604
4616
|
plugins: {
|
|
4605
4617
|
"@alextheman": plugin,
|
|
4618
|
+
import: importPlugin,
|
|
4606
4619
|
perfectionist,
|
|
4607
4620
|
prettier: prettierPlugin
|
|
4608
4621
|
},
|
|
@@ -4615,8 +4628,10 @@ function personalJavaScript(plugin) {
|
|
|
4615
4628
|
"declaration",
|
|
4616
4629
|
{ allowArrowFunctions: false }
|
|
4617
4630
|
],
|
|
4631
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
|
4618
4632
|
"no-else-return": "error",
|
|
4619
4633
|
"no-implicit-coercion": ["error", { allow: ["!!"] }],
|
|
4634
|
+
"no-restricted-imports": ["error", personalRestrictedImports_default],
|
|
4620
4635
|
"operator-assignment": ["error", "always"],
|
|
4621
4636
|
"perfectionist/sort-classes": ["error", sortClasses_default],
|
|
4622
4637
|
"perfectionist/sort-exports": ["error", sortExports_default],
|
|
@@ -4898,7 +4913,7 @@ var eslintPlugin_default = personalEslintPlugin;
|
|
|
4898
4913
|
|
|
4899
4914
|
//#endregion
|
|
4900
4915
|
//#region src/configs/helpers/restrictedImports/neurosongsBackEndRestrictedImports.ts
|
|
4901
|
-
const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(
|
|
4916
|
+
const neurosongsBackEndRestrictedImports = combineRestrictedImports_default(personalRestrictedImports_default, { paths: [
|
|
4902
4917
|
{
|
|
4903
4918
|
importNames: ["setPrismaClient"],
|
|
4904
4919
|
message: "Do not attempt to reset the Prisma Client outside setup files.",
|
|
@@ -4944,7 +4959,7 @@ var neurosongsBackEnd_default = personalNeurosongsBackEnd;
|
|
|
4944
4959
|
|
|
4945
4960
|
//#endregion
|
|
4946
4961
|
//#region src/configs/helpers/restrictedImports/neurosongsFrontEndRestrictedImports.ts
|
|
4947
|
-
const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(reactRestrictedImports_default, {
|
|
4962
|
+
const neurosongsFrontEndRestrictedImports = combineRestrictedImports_default(personalRestrictedImports_default, reactRestrictedImports_default, {
|
|
4948
4963
|
paths: [{
|
|
4949
4964
|
importNames: ["PrismaClient"],
|
|
4950
4965
|
message: "Do not use the Prisma Client directly in the front-end. Query an endpoint from the back-end instead.",
|
|
@@ -5493,7 +5508,7 @@ var rules_default = {
|
|
|
5493
5508
|
//#endregion
|
|
5494
5509
|
//#region package.json
|
|
5495
5510
|
var name = "@alextheman/eslint-plugin";
|
|
5496
|
-
var version = "5.5.
|
|
5511
|
+
var version = "5.5.2";
|
|
5497
5512
|
|
|
5498
5513
|
//#endregion
|
|
5499
5514
|
//#region src/alexPlugin.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.2",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@alextheman/utility": "^4.
|
|
33
|
-
"@typescript-eslint/utils": "^8.
|
|
32
|
+
"@alextheman/utility": "^4.11.0",
|
|
33
|
+
"@typescript-eslint/utils": "^8.54.0",
|
|
34
34
|
"common-tags": "^1.8.2",
|
|
35
35
|
"zod": "^4.3.6"
|
|
36
36
|
},
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"@types/common-tags": "^1.8.4",
|
|
40
40
|
"@types/eslint": "^9.6.1",
|
|
41
41
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
42
|
-
"@types/node": "^25.0
|
|
43
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
44
|
-
"@typescript-eslint/types": "^8.
|
|
45
|
-
"alex-c-line": "^1.
|
|
42
|
+
"@types/node": "^25.1.0",
|
|
43
|
+
"@typescript-eslint/rule-tester": "^8.54.0",
|
|
44
|
+
"@typescript-eslint/types": "^8.54.0",
|
|
45
|
+
"alex-c-line": "^1.22.1",
|
|
46
46
|
"dotenv-cli": "^11.0.0",
|
|
47
47
|
"eslint": "^9.39.2",
|
|
48
48
|
"eslint-config-prettier": "^10.1.8",
|
|
49
49
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
50
50
|
"eslint-plugin-import": "^2.32.0",
|
|
51
|
-
"eslint-plugin-jsdoc": "^62.
|
|
51
|
+
"eslint-plugin-jsdoc": "^62.5.0",
|
|
52
52
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
53
53
|
"eslint-plugin-n": "^17.23.2",
|
|
54
|
-
"eslint-plugin-package-json": "^0.88.
|
|
54
|
+
"eslint-plugin-package-json": "^0.88.2",
|
|
55
55
|
"eslint-plugin-perfectionist": "^5.4.0",
|
|
56
56
|
"eslint-plugin-prettier": "^5.5.5",
|
|
57
57
|
"eslint-plugin-react": "^7.37.5",
|
|
58
58
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
59
59
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
60
60
|
"eslint-vitest-rule-tester": "^3.0.1",
|
|
61
|
-
"globals": "^17.
|
|
61
|
+
"globals": "^17.2.0",
|
|
62
62
|
"husky": "^9.1.7",
|
|
63
63
|
"jsdom": "^27.4.0",
|
|
64
64
|
"prettier": "^3.8.1",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
69
69
|
"typedoc-rhineai-theme": "^1.2.0",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
72
|
-
"vite-tsconfig-paths": "^6.0.
|
|
71
|
+
"typescript-eslint": "^8.54.0",
|
|
72
|
+
"vite-tsconfig-paths": "^6.0.5",
|
|
73
73
|
"vitest": "^4.0.18"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|