@alextheman/eslint-plugin 1.13.0 → 1.13.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 +17 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -6
- package/package.json +5 -5
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.13.
|
|
3709
|
+
var version = "1.13.2";
|
|
3710
3710
|
|
|
3711
3711
|
// src/configs/alexPluginBase.ts
|
|
3712
3712
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3831,7 +3831,18 @@ var typeScriptBase = [
|
|
|
3831
3831
|
"no-cond-assign": "error",
|
|
3832
3832
|
"no-undef": "error",
|
|
3833
3833
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3834
|
-
"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
|
+
]
|
|
3835
3846
|
}
|
|
3836
3847
|
},
|
|
3837
3848
|
{
|
|
@@ -3840,9 +3851,9 @@ var typeScriptBase = [
|
|
|
3840
3851
|
"no-restricted-imports": [
|
|
3841
3852
|
"error",
|
|
3842
3853
|
{
|
|
3843
|
-
|
|
3854
|
+
paths: [
|
|
3844
3855
|
{
|
|
3845
|
-
|
|
3856
|
+
name: "node:test",
|
|
3846
3857
|
message: "Use test functions from vitest instead."
|
|
3847
3858
|
}
|
|
3848
3859
|
]
|
|
@@ -3885,8 +3896,8 @@ var typeScriptReactBase = [
|
|
|
3885
3896
|
{
|
|
3886
3897
|
paths: [
|
|
3887
3898
|
{
|
|
3888
|
-
|
|
3889
|
-
message: 'Please use `import Component from "@mui/
|
|
3899
|
+
regex: "^@mui/[^/]+$",
|
|
3900
|
+
message: 'Please use `import Component from "@mui/[package]/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
|
|
3890
3901
|
}
|
|
3891
3902
|
]
|
|
3892
3903
|
}
|
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.13.
|
|
3695
|
+
var version = "1.13.2";
|
|
3696
3696
|
|
|
3697
3697
|
// src/configs/alexPluginBase.ts
|
|
3698
3698
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3817,7 +3817,18 @@ var typeScriptBase = [
|
|
|
3817
3817
|
"no-cond-assign": "error",
|
|
3818
3818
|
"no-undef": "error",
|
|
3819
3819
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3820
|
-
"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
|
+
]
|
|
3821
3832
|
}
|
|
3822
3833
|
},
|
|
3823
3834
|
{
|
|
@@ -3826,9 +3837,9 @@ var typeScriptBase = [
|
|
|
3826
3837
|
"no-restricted-imports": [
|
|
3827
3838
|
"error",
|
|
3828
3839
|
{
|
|
3829
|
-
|
|
3840
|
+
paths: [
|
|
3830
3841
|
{
|
|
3831
|
-
|
|
3842
|
+
name: "node:test",
|
|
3832
3843
|
message: "Use test functions from vitest instead."
|
|
3833
3844
|
}
|
|
3834
3845
|
]
|
|
@@ -3871,8 +3882,8 @@ var typeScriptReactBase = [
|
|
|
3871
3882
|
{
|
|
3872
3883
|
paths: [
|
|
3873
3884
|
{
|
|
3874
|
-
|
|
3875
|
-
message: 'Please use `import Component from "@mui/
|
|
3885
|
+
regex: "^@mui/[^/]+$",
|
|
3886
|
+
message: 'Please use `import Component from "@mui/[package]/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
|
|
3876
3887
|
}
|
|
3877
3888
|
]
|
|
3878
3889
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "alextheman",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"common-tags": "^1.8.2",
|
|
27
|
-
"eslint-plugin-package-json": "^0.56.
|
|
27
|
+
"eslint-plugin-package-json": "^0.56.2",
|
|
28
28
|
"zod": "^4.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/common-tags": "^1.8.4",
|
|
32
32
|
"@types/eslint": "^9.6.1",
|
|
33
|
-
"@types/node": "^24.3.
|
|
34
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
35
|
-
"@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",
|
|
36
36
|
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
37
37
|
"globals": "^16.3.0",
|
|
38
38
|
"husky": "^9.1.7",
|