@alextheman/eslint-plugin 1.13.6 → 1.13.8
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 +5 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/package.json +2 -1
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.8";
|
|
3710
3710
|
|
|
3711
3711
|
// src/configs/alexPluginBase.ts
|
|
3712
3712
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3775,6 +3775,7 @@ var typeScriptBase = [
|
|
|
3775
3775
|
},
|
|
3776
3776
|
rules: {
|
|
3777
3777
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3778
|
+
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
3778
3779
|
"@typescript-eslint/no-unused-vars": [
|
|
3779
3780
|
"error",
|
|
3780
3781
|
{
|
|
@@ -3797,6 +3798,8 @@ var typeScriptBase = [
|
|
|
3797
3798
|
"no-lonely-if": "error",
|
|
3798
3799
|
"no-new-wrappers": "error",
|
|
3799
3800
|
"no-param-reassign": "error",
|
|
3801
|
+
// Disable regular no-redeclare in favour of TypeScript-specific version since that will flag type redeclarations when we do const MyType = {}; export type MyType = ...
|
|
3802
|
+
"no-redeclare": "off",
|
|
3800
3803
|
"no-restricted-imports": [
|
|
3801
3804
|
"error",
|
|
3802
3805
|
{
|
|
@@ -3919,7 +3922,7 @@ var typeScriptReactBase = [
|
|
|
3919
3922
|
"no-restricted-imports": [
|
|
3920
3923
|
"error",
|
|
3921
3924
|
{
|
|
3922
|
-
|
|
3925
|
+
patterns: [
|
|
3923
3926
|
{
|
|
3924
3927
|
message: 'Please use `import Component from "@mui/[package]/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.',
|
|
3925
3928
|
regex: "^@mui/[^/]+$"
|
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.8";
|
|
3696
3696
|
|
|
3697
3697
|
// src/configs/alexPluginBase.ts
|
|
3698
3698
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3761,6 +3761,7 @@ var typeScriptBase = [
|
|
|
3761
3761
|
},
|
|
3762
3762
|
rules: {
|
|
3763
3763
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
3764
|
+
"@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true }],
|
|
3764
3765
|
"@typescript-eslint/no-unused-vars": [
|
|
3765
3766
|
"error",
|
|
3766
3767
|
{
|
|
@@ -3783,6 +3784,8 @@ var typeScriptBase = [
|
|
|
3783
3784
|
"no-lonely-if": "error",
|
|
3784
3785
|
"no-new-wrappers": "error",
|
|
3785
3786
|
"no-param-reassign": "error",
|
|
3787
|
+
// Disable regular no-redeclare in favour of TypeScript-specific version since that will flag type redeclarations when we do const MyType = {}; export type MyType = ...
|
|
3788
|
+
"no-redeclare": "off",
|
|
3786
3789
|
"no-restricted-imports": [
|
|
3787
3790
|
"error",
|
|
3788
3791
|
{
|
|
@@ -3905,7 +3908,7 @@ var typeScriptReactBase = [
|
|
|
3905
3908
|
"no-restricted-imports": [
|
|
3906
3909
|
"error",
|
|
3907
3910
|
{
|
|
3908
|
-
|
|
3911
|
+
patterns: [
|
|
3909
3912
|
{
|
|
3910
3913
|
message: 'Please use `import Component from "@mui/[package]/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.',
|
|
3911
3914
|
regex: "^@mui/[^/]+$"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.8",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "alextheman",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"change-major": "npm version major -m \"Change version number to v%s\"",
|
|
16
16
|
"change-minor": "npm version minor -m \"Change version number to v%s\"",
|
|
17
17
|
"change-patch": "npm version patch -m \"Change version number to v%s\"",
|
|
18
|
+
"create-local-package": "npm run build && rm -f alextheman-eslint-plugin-*.tgz && npm pack",
|
|
18
19
|
"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
20
|
"lint": "npm run build && tsc --noEmit && eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"package.json\" && prettier --check --parser typescript \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
20
21
|
"prepare": "husky",
|