@alextheman/eslint-plugin 1.12.2 → 1.13.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 +17 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -4
- package/package.json +31 -31
package/dist/index.cjs
CHANGED
|
@@ -3706,7 +3706,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3706
3706
|
|
|
3707
3707
|
// package.json
|
|
3708
3708
|
var name = "@alextheman/eslint-plugin";
|
|
3709
|
-
var version = "1.
|
|
3709
|
+
var version = "1.13.1";
|
|
3710
3710
|
|
|
3711
3711
|
// src/configs/alexPluginBase.ts
|
|
3712
3712
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3739,6 +3739,7 @@ var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"),
|
|
|
3739
3739
|
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
3740
3740
|
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
3741
3741
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
3742
|
+
var import_eslint_plugin_package_json = __toESM(require("eslint-plugin-package-json"), 1);
|
|
3742
3743
|
var import_eslint_plugin_perfectionist = __toESM(require("eslint-plugin-perfectionist"), 1);
|
|
3743
3744
|
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
3744
3745
|
var import_globals = __toESM(require_globals2(), 1);
|
|
@@ -3753,6 +3754,7 @@ var prettierRules_default = prettierRules;
|
|
|
3753
3754
|
var typeScriptBase = [
|
|
3754
3755
|
import_js.default.configs.recommended,
|
|
3755
3756
|
import_eslint_config_prettier.default,
|
|
3757
|
+
import_eslint_plugin_package_json.default.configs.recommended,
|
|
3756
3758
|
{
|
|
3757
3759
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3758
3760
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -3829,7 +3831,18 @@ var typeScriptBase = [
|
|
|
3829
3831
|
"no-cond-assign": "error",
|
|
3830
3832
|
"no-undef": "error",
|
|
3831
3833
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3832
|
-
"prettier/prettier": ["warn", prettierRules_default]
|
|
3834
|
+
"prettier/prettier": ["warn", prettierRules_default],
|
|
3835
|
+
"no-restricted-imports": [
|
|
3836
|
+
"error",
|
|
3837
|
+
{
|
|
3838
|
+
patterns: [
|
|
3839
|
+
{
|
|
3840
|
+
group: ["node_modules"],
|
|
3841
|
+
message: "What on Earth are you doing? Leave poor node_modules alone!"
|
|
3842
|
+
}
|
|
3843
|
+
]
|
|
3844
|
+
}
|
|
3845
|
+
]
|
|
3833
3846
|
}
|
|
3834
3847
|
},
|
|
3835
3848
|
{
|
|
@@ -3838,9 +3851,9 @@ var typeScriptBase = [
|
|
|
3838
3851
|
"no-restricted-imports": [
|
|
3839
3852
|
"error",
|
|
3840
3853
|
{
|
|
3841
|
-
|
|
3854
|
+
paths: [
|
|
3842
3855
|
{
|
|
3843
|
-
|
|
3856
|
+
name: "node:test",
|
|
3844
3857
|
message: "Use test functions from vitest instead."
|
|
3845
3858
|
}
|
|
3846
3859
|
]
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3692,7 +3692,7 @@ var require_globals2 = __commonJS({
|
|
|
3692
3692
|
|
|
3693
3693
|
// package.json
|
|
3694
3694
|
var name = "@alextheman/eslint-plugin";
|
|
3695
|
-
var version = "1.
|
|
3695
|
+
var version = "1.13.1";
|
|
3696
3696
|
|
|
3697
3697
|
// src/configs/alexPluginBase.ts
|
|
3698
3698
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3726,6 +3726,7 @@ import eslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
|
3726
3726
|
import tsparser from "@typescript-eslint/parser";
|
|
3727
3727
|
import prettierConfig from "eslint-config-prettier";
|
|
3728
3728
|
import importPlugin from "eslint-plugin-import";
|
|
3729
|
+
import packageJson from "eslint-plugin-package-json";
|
|
3729
3730
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
3730
3731
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
3731
3732
|
|
|
@@ -3739,6 +3740,7 @@ var prettierRules_default = prettierRules;
|
|
|
3739
3740
|
var typeScriptBase = [
|
|
3740
3741
|
import_js.default.configs.recommended,
|
|
3741
3742
|
prettierConfig,
|
|
3743
|
+
packageJson.configs.recommended,
|
|
3742
3744
|
{
|
|
3743
3745
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3744
3746
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -3815,7 +3817,18 @@ var typeScriptBase = [
|
|
|
3815
3817
|
"no-cond-assign": "error",
|
|
3816
3818
|
"no-undef": "error",
|
|
3817
3819
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3818
|
-
"prettier/prettier": ["warn", prettierRules_default]
|
|
3820
|
+
"prettier/prettier": ["warn", prettierRules_default],
|
|
3821
|
+
"no-restricted-imports": [
|
|
3822
|
+
"error",
|
|
3823
|
+
{
|
|
3824
|
+
patterns: [
|
|
3825
|
+
{
|
|
3826
|
+
group: ["node_modules"],
|
|
3827
|
+
message: "What on Earth are you doing? Leave poor node_modules alone!"
|
|
3828
|
+
}
|
|
3829
|
+
]
|
|
3830
|
+
}
|
|
3831
|
+
]
|
|
3819
3832
|
}
|
|
3820
3833
|
},
|
|
3821
3834
|
{
|
|
@@ -3824,9 +3837,9 @@ var typeScriptBase = [
|
|
|
3824
3837
|
"no-restricted-imports": [
|
|
3825
3838
|
"error",
|
|
3826
3839
|
{
|
|
3827
|
-
|
|
3840
|
+
paths: [
|
|
3828
3841
|
{
|
|
3829
|
-
|
|
3842
|
+
name: "node:test",
|
|
3830
3843
|
message: "Use test functions from vitest instead."
|
|
3831
3844
|
}
|
|
3832
3845
|
]
|
package/package.json
CHANGED
|
@@ -1,47 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.13.1",
|
|
4
|
+
"description": "A package to provide custom ESLint rules and configs",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "alextheman",
|
|
7
|
+
"type": "module",
|
|
5
8
|
"main": "dist/index.js",
|
|
6
9
|
"types": "dist/index.d.ts",
|
|
7
10
|
"files": [
|
|
8
11
|
"dist"
|
|
9
12
|
],
|
|
10
13
|
"scripts": {
|
|
11
|
-
"test": "vitest run",
|
|
12
|
-
"test-watch": "vitest",
|
|
13
|
-
"format": "npm run build && prettier --write --parser typescript \"src/**/*.ts\" \"tests/**/*.ts\" && eslint --fix --suppress-all \"src/**/*.ts\" \"tests/**/*.ts\" && rm -f eslint-suppressions.json",
|
|
14
|
-
"lint": "npm run build && tsc --noEmit && eslint \"src/**/*.ts\" \"tests/**/*.ts\" && prettier --check --parser typescript \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
15
|
-
"update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --",
|
|
16
|
-
"prepare": "husky",
|
|
17
14
|
"build": "tsup",
|
|
18
15
|
"change-major": "npm version major -m \"Change version number to v%s\"",
|
|
19
16
|
"change-minor": "npm version minor -m \"Change version number to v%s\"",
|
|
20
|
-
"change-patch": "npm version patch -m \"Change version number to v%s\""
|
|
17
|
+
"change-patch": "npm version patch -m \"Change version number to v%s\"",
|
|
18
|
+
"format": "npm run build && prettier --write --parser typescript \"src/**/*.ts\" \"tests/**/*.ts\" && eslint --fix --suppress-all \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\" && rm -f eslint-suppressions.json",
|
|
19
|
+
"lint": "npm run build && tsc --noEmit && eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\" && prettier --check --parser typescript \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
20
|
+
"prepare": "husky",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test-watch": "vitest",
|
|
23
|
+
"update-dependencies": "bash -c 'npx npm-check-updates -u \"$@\" && npm install' --"
|
|
21
24
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"peerDependencies": {
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
28
|
-
"@typescript-eslint/parser": "^8.37.0",
|
|
29
|
-
"eslint": "^9.31.0",
|
|
30
|
-
"eslint-config-prettier": "^10.1.8",
|
|
31
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
32
|
-
"eslint-plugin-import": "^2.32.0",
|
|
33
|
-
"eslint-plugin-perfectionist": "^4.15.0",
|
|
34
|
-
"eslint-plugin-prettier": "^5.5.3",
|
|
35
|
-
"eslint-plugin-react": "^7.37.5",
|
|
36
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
37
|
-
"eslint-plugin-react-refresh": "^0.4.20"
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"common-tags": "^1.8.2",
|
|
27
|
+
"eslint-plugin-package-json": "^0.56.2",
|
|
28
|
+
"zod": "^4.1.5"
|
|
38
29
|
},
|
|
39
30
|
"devDependencies": {
|
|
40
31
|
"@types/common-tags": "^1.8.4",
|
|
41
32
|
"@types/eslint": "^9.6.1",
|
|
42
|
-
"@types/node": "^24.3.
|
|
43
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
44
|
-
"@typescript-eslint/utils": "^8.
|
|
33
|
+
"@types/node": "^24.3.1",
|
|
34
|
+
"@typescript-eslint/rule-tester": "^8.42.0",
|
|
35
|
+
"@typescript-eslint/utils": "^8.42.0",
|
|
45
36
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
46
37
|
"globals": "^16.3.0",
|
|
47
38
|
"husky": "^9.1.7",
|
|
@@ -52,8 +43,17 @@
|
|
|
52
43
|
"vite-tsconfig-paths": "^5.1.4",
|
|
53
44
|
"vitest": "^3.2.4"
|
|
54
45
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
49
|
+
"eslint": "^9.31.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.8",
|
|
51
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
52
|
+
"eslint-plugin-import": "^2.32.0",
|
|
53
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
55
|
+
"eslint-plugin-react": "^7.37.5",
|
|
56
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
57
|
+
"eslint-plugin-react-refresh": "^0.4.20"
|
|
58
58
|
}
|
|
59
59
|
}
|