@alextheman/eslint-plugin 5.10.3 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -2
- package/package.json +46 -46
package/dist/index.cjs
CHANGED
|
@@ -4821,7 +4821,7 @@ const requireJsdocOptions = {
|
|
|
4821
4821
|
//#region src/configs/internal/jsdoc.ts
|
|
4822
4822
|
const internalJsdoc = [eslint_plugin_jsdoc.default.configs["flat/recommended-typescript-error"], { rules: {
|
|
4823
4823
|
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
|
|
4824
|
-
"jsdoc/require-jsdoc": ["
|
|
4824
|
+
"jsdoc/require-jsdoc": ["error", requireJsdocOptions],
|
|
4825
4825
|
"jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
|
|
4826
4826
|
return {
|
|
4827
4827
|
context,
|
|
@@ -5090,6 +5090,16 @@ function combinedTypeScriptReact(plugin) {
|
|
|
5090
5090
|
];
|
|
5091
5091
|
}
|
|
5092
5092
|
|
|
5093
|
+
//#endregion
|
|
5094
|
+
//#region src/configs/internal/packageJson.ts
|
|
5095
|
+
const internalPackageJson = [...generalPackageJson, {
|
|
5096
|
+
files: ["**/package.json"],
|
|
5097
|
+
rules: { "package-json/restrict-dependency-ranges": ["error", {
|
|
5098
|
+
forDependencyTypes: ["dependencies", "devDependencies"],
|
|
5099
|
+
rangeType: "pin"
|
|
5100
|
+
}] }
|
|
5101
|
+
}];
|
|
5102
|
+
|
|
5093
5103
|
//#endregion
|
|
5094
5104
|
//#region src/configs/index.ts
|
|
5095
5105
|
function createAlexPluginConfigs(plugin) {
|
|
@@ -5120,6 +5130,7 @@ function createAlexPluginConfigs(plugin) {
|
|
|
5120
5130
|
jsdoc: internalJsdoc,
|
|
5121
5131
|
neurosongsBackEnd: internalNeurosongsBackEnd,
|
|
5122
5132
|
neurosongsFrontEnd: internalNeurosongsFrontEnd,
|
|
5133
|
+
packageJson: internalPackageJson,
|
|
5123
5134
|
react: internalReact,
|
|
5124
5135
|
tests: internalTests,
|
|
5125
5136
|
typescript: internalTypeScript(plugin),
|
|
@@ -5569,7 +5580,7 @@ var rules_default = {
|
|
|
5569
5580
|
//#endregion
|
|
5570
5581
|
//#region package.json
|
|
5571
5582
|
var name = "@alextheman/eslint-plugin";
|
|
5572
|
-
var version = "5.
|
|
5583
|
+
var version = "5.11.0";
|
|
5573
5584
|
|
|
5574
5585
|
//#endregion
|
|
5575
5586
|
//#region src/alexPlugin.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -28,7 +28,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
|
|
|
28
28
|
//#region src/configs/AlexPluginConfigGroup.d.ts
|
|
29
29
|
type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
|
|
30
30
|
type PluginConfig = "base" | "tests";
|
|
31
|
-
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components";
|
|
31
|
+
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components" | "packageJson";
|
|
32
32
|
type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
|
|
33
33
|
interface AlexPluginConfigObject {
|
|
34
34
|
general: Record<GeneralConfig, Array<Linter.Config>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
|
|
|
28
28
|
//#region src/configs/AlexPluginConfigGroup.d.ts
|
|
29
29
|
type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
|
|
30
30
|
type PluginConfig = "base" | "tests";
|
|
31
|
-
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components";
|
|
31
|
+
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPluginBase" | "eslintPluginConfigs" | "eslintPluginRules" | "eslintPluginUtility" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utilityBase" | "utilityRoot" | "utilityInternal" | "alexCLine" | "jsdoc" | "components" | "packageJson";
|
|
32
32
|
type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
|
|
33
33
|
interface AlexPluginConfigObject {
|
|
34
34
|
general: Record<GeneralConfig, Array<Linter.Config>>;
|
package/dist/index.js
CHANGED
|
@@ -4805,7 +4805,7 @@ const requireJsdocOptions = {
|
|
|
4805
4805
|
//#region src/configs/internal/jsdoc.ts
|
|
4806
4806
|
const internalJsdoc = [jsdoc.configs["flat/recommended-typescript-error"], { rules: {
|
|
4807
4807
|
"jsdoc/check-tag-names": ["error", { definedTags: ["category", "note"] }],
|
|
4808
|
-
"jsdoc/require-jsdoc": ["
|
|
4808
|
+
"jsdoc/require-jsdoc": ["error", requireJsdocOptions],
|
|
4809
4809
|
"jsdoc/require-tags": ["error", { tags: ["ExportNamedDeclaration", "ExportDefaultDeclaration"].map((context) => {
|
|
4810
4810
|
return {
|
|
4811
4811
|
context,
|
|
@@ -5074,6 +5074,16 @@ function combinedTypeScriptReact(plugin) {
|
|
|
5074
5074
|
];
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
5077
|
+
//#endregion
|
|
5078
|
+
//#region src/configs/internal/packageJson.ts
|
|
5079
|
+
const internalPackageJson = [...generalPackageJson, {
|
|
5080
|
+
files: ["**/package.json"],
|
|
5081
|
+
rules: { "package-json/restrict-dependency-ranges": ["error", {
|
|
5082
|
+
forDependencyTypes: ["dependencies", "devDependencies"],
|
|
5083
|
+
rangeType: "pin"
|
|
5084
|
+
}] }
|
|
5085
|
+
}];
|
|
5086
|
+
|
|
5077
5087
|
//#endregion
|
|
5078
5088
|
//#region src/configs/index.ts
|
|
5079
5089
|
function createAlexPluginConfigs(plugin) {
|
|
@@ -5104,6 +5114,7 @@ function createAlexPluginConfigs(plugin) {
|
|
|
5104
5114
|
jsdoc: internalJsdoc,
|
|
5105
5115
|
neurosongsBackEnd: internalNeurosongsBackEnd,
|
|
5106
5116
|
neurosongsFrontEnd: internalNeurosongsFrontEnd,
|
|
5117
|
+
packageJson: internalPackageJson,
|
|
5107
5118
|
react: internalReact,
|
|
5108
5119
|
tests: internalTests,
|
|
5109
5120
|
typescript: internalTypeScript(plugin),
|
|
@@ -5553,7 +5564,7 @@ var rules_default = {
|
|
|
5553
5564
|
//#endregion
|
|
5554
5565
|
//#region package.json
|
|
5555
5566
|
var name = "@alextheman/eslint-plugin";
|
|
5556
|
-
var version = "5.
|
|
5567
|
+
var version = "5.11.0";
|
|
5557
5568
|
|
|
5558
5569
|
//#endregion
|
|
5559
5570
|
//#region src/alexPlugin.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,51 +34,51 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "
|
|
38
|
-
"@eslint/compat": "
|
|
39
|
-
"@typescript-eslint/types": "
|
|
40
|
-
"@typescript-eslint/utils": "
|
|
41
|
-
"common-tags": "
|
|
42
|
-
"prettier": "
|
|
43
|
-
"zod": "
|
|
37
|
+
"@alextheman/utility": "5.8.0",
|
|
38
|
+
"@eslint/compat": "2.0.3",
|
|
39
|
+
"@typescript-eslint/types": "8.58.0",
|
|
40
|
+
"@typescript-eslint/utils": "8.58.0",
|
|
41
|
+
"common-tags": "1.8.2",
|
|
42
|
+
"prettier": "3.8.1",
|
|
43
|
+
"zod": "4.3.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint/js": "
|
|
47
|
-
"@types/common-tags": "
|
|
48
|
-
"@types/eslint": "
|
|
49
|
-
"@types/eslint-plugin-jsx-a11y": "
|
|
50
|
-
"@types/node": "
|
|
51
|
-
"@typescript-eslint/rule-tester": "
|
|
52
|
-
"alex-c-line": "
|
|
53
|
-
"dotenv-cli": "
|
|
54
|
-
"eslint": "
|
|
55
|
-
"eslint-config-prettier": "
|
|
56
|
-
"eslint-import-resolver-typescript": "
|
|
57
|
-
"eslint-plugin-import": "
|
|
58
|
-
"eslint-plugin-jsdoc": "
|
|
59
|
-
"eslint-plugin-jsx-a11y": "
|
|
60
|
-
"eslint-plugin-n": "
|
|
61
|
-
"eslint-plugin-package-json": "
|
|
62
|
-
"eslint-plugin-perfectionist": "
|
|
63
|
-
"eslint-plugin-prettier": "
|
|
64
|
-
"eslint-plugin-react": "
|
|
65
|
-
"eslint-plugin-react-hooks": "
|
|
66
|
-
"eslint-plugin-react-refresh": "
|
|
67
|
-
"eslint-vitest-rule-tester": "
|
|
68
|
-
"execa": "
|
|
69
|
-
"globals": "
|
|
70
|
-
"husky": "
|
|
71
|
-
"jsdom": "
|
|
72
|
-
"tempy": "
|
|
73
|
-
"tsdown": "
|
|
74
|
-
"tsx": "
|
|
75
|
-
"typedoc": "
|
|
76
|
-
"typedoc-plugin-markdown": "
|
|
77
|
-
"typedoc-rhineai-theme": "
|
|
78
|
-
"typescript": "
|
|
79
|
-
"typescript-eslint": "
|
|
80
|
-
"vite-tsconfig-paths": "
|
|
81
|
-
"vitest": "
|
|
46
|
+
"@eslint/js": "10.0.1",
|
|
47
|
+
"@types/common-tags": "1.8.4",
|
|
48
|
+
"@types/eslint": "9.6.1",
|
|
49
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
50
|
+
"@types/node": "25.5.0",
|
|
51
|
+
"@typescript-eslint/rule-tester": "8.58.0",
|
|
52
|
+
"alex-c-line": "2.4.0",
|
|
53
|
+
"dotenv-cli": "11.0.0",
|
|
54
|
+
"eslint": "10.1.0",
|
|
55
|
+
"eslint-config-prettier": "10.1.8",
|
|
56
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
57
|
+
"eslint-plugin-import": "2.32.0",
|
|
58
|
+
"eslint-plugin-jsdoc": "62.8.1",
|
|
59
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
60
|
+
"eslint-plugin-n": "17.24.0",
|
|
61
|
+
"eslint-plugin-package-json": "0.91.1",
|
|
62
|
+
"eslint-plugin-perfectionist": "5.7.0",
|
|
63
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
64
|
+
"eslint-plugin-react": "7.37.5",
|
|
65
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
66
|
+
"eslint-plugin-react-refresh": "0.5.2",
|
|
67
|
+
"eslint-vitest-rule-tester": "3.1.0",
|
|
68
|
+
"execa": "9.6.1",
|
|
69
|
+
"globals": "17.4.0",
|
|
70
|
+
"husky": "9.1.7",
|
|
71
|
+
"jsdom": "29.0.1",
|
|
72
|
+
"tempy": "3.2.0",
|
|
73
|
+
"tsdown": "0.20.3",
|
|
74
|
+
"tsx": "4.21.0",
|
|
75
|
+
"typedoc": "0.28.18",
|
|
76
|
+
"typedoc-plugin-markdown": "4.11.0",
|
|
77
|
+
"typedoc-rhineai-theme": "1.2.0",
|
|
78
|
+
"typescript": "6.0.2",
|
|
79
|
+
"typescript-eslint": "8.58.0",
|
|
80
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
81
|
+
"vitest": "4.1.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@eslint/js": ">=9.0.0",
|
|
@@ -109,14 +109,14 @@
|
|
|
109
109
|
"create-release-note": "bash -c 'git pull origin main && alex-c-line template release-note create $@' --",
|
|
110
110
|
"format": "pnpm run format-prettier && pnpm run format-eslint",
|
|
111
111
|
"format-and-build": "tsx src/utility/checkConfigChanges.ts || pnpm run build && pnpm run format",
|
|
112
|
-
"format-eslint": "eslint --fix --suppress-all \"src
|
|
112
|
+
"format-eslint": "eslint --fix --suppress-all \"{src,tests}/**/*.ts\" \"package.json\" && rm -f eslint-suppressions.json",
|
|
113
113
|
"format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript && pnpm run format-prettier-yml",
|
|
114
114
|
"format-prettier-javascript": "prettier --write \"./**/*.js\"",
|
|
115
115
|
"format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
|
|
116
116
|
"format-prettier-yml": "prettier --write \"./**/*.yml\"",
|
|
117
117
|
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier && pnpm run lint-pre-release",
|
|
118
118
|
"lint-and-build": "tsx src/utility/checkConfigChanges.ts || pnpm run build && pnpm run lint",
|
|
119
|
-
"lint-eslint": "eslint \"src
|
|
119
|
+
"lint-eslint": "eslint \"{src,tests}/**/*.ts\" \"package.json\"",
|
|
120
120
|
"lint-pre-release": "alex-c-line package-json check --rules no-pre-release-dependencies",
|
|
121
121
|
"lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript && pnpm run lint-prettier-yml",
|
|
122
122
|
"lint-prettier-javascript": "prettier --check \"./**/*.js\"",
|