@alextheman/eslint-plugin 1.2.2 → 1.2.4
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 +19 -11
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3705,7 +3705,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3705
3705
|
|
|
3706
3706
|
// package.json
|
|
3707
3707
|
var name = "@alextheman/eslint-plugin";
|
|
3708
|
-
var version = "1.2.
|
|
3708
|
+
var version = "1.2.4";
|
|
3709
3709
|
|
|
3710
3710
|
// src/create-rule.ts
|
|
3711
3711
|
var import_utils = require("@typescript-eslint/utils");
|
|
@@ -3872,7 +3872,7 @@ var eslint_config_default = [
|
|
|
3872
3872
|
rules: {
|
|
3873
3873
|
"import/no-unresolved": warnOnFixButErrorOnLint,
|
|
3874
3874
|
eqeqeq: warnOnFixButErrorOnLint,
|
|
3875
|
-
"no-console": "warn",
|
|
3875
|
+
"no-console": [warnOnFixButErrorOnLint, { allow: ["warn", "error"] }],
|
|
3876
3876
|
"no-restricted-imports": [
|
|
3877
3877
|
warnOnFixButErrorOnLint,
|
|
3878
3878
|
{
|
|
@@ -3894,13 +3894,21 @@ var eslint_config_default = [
|
|
|
3894
3894
|
],
|
|
3895
3895
|
// Disable regular no-unused-vars rule since that will flag interface declarations. Only use the TypeScript specific rule for this.
|
|
3896
3896
|
"no-unused-vars": "off",
|
|
3897
|
-
"func-style": [
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
"
|
|
3903
|
-
|
|
3897
|
+
"func-style": [
|
|
3898
|
+
warnOnFixButErrorOnLint,
|
|
3899
|
+
"declaration",
|
|
3900
|
+
{ allowArrowFunctions: false }
|
|
3901
|
+
],
|
|
3902
|
+
"prefer-arrow-callback": [
|
|
3903
|
+
warnOnFixButErrorOnLint,
|
|
3904
|
+
{ allowNamedFunctions: false }
|
|
3905
|
+
],
|
|
3906
|
+
"no-param-reassign": warnOnFixButErrorOnLint,
|
|
3907
|
+
"no-useless-rename": warnOnFixButErrorOnLint,
|
|
3908
|
+
"sort-vars": warnOnFixButErrorOnLint,
|
|
3909
|
+
"no-cond-assign": warnOnFixButErrorOnLint,
|
|
3910
|
+
"no-undef": warnOnFixButErrorOnLint,
|
|
3911
|
+
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint
|
|
3904
3912
|
}
|
|
3905
3913
|
}
|
|
3906
3914
|
];
|
|
@@ -3931,8 +3939,8 @@ Object.assign(plugin.configs, {
|
|
|
3931
3939
|
In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
|
|
3932
3940
|
in favour of @alextheman/no-relative-imports. */
|
|
3933
3941
|
"no-restricted-imports": "off",
|
|
3934
|
-
"@alextheman/no-namespace-imports":
|
|
3935
|
-
"@alextheman/no-relative-imports":
|
|
3942
|
+
"@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
|
|
3943
|
+
"@alextheman/no-relative-imports": warnOnFixButErrorOnLint
|
|
3936
3944
|
}
|
|
3937
3945
|
}
|
|
3938
3946
|
]
|
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.2.
|
|
3695
|
+
var version = "1.2.4";
|
|
3696
3696
|
|
|
3697
3697
|
// src/create-rule.ts
|
|
3698
3698
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -3859,7 +3859,7 @@ var eslint_config_default = [
|
|
|
3859
3859
|
rules: {
|
|
3860
3860
|
"import/no-unresolved": warnOnFixButErrorOnLint,
|
|
3861
3861
|
eqeqeq: warnOnFixButErrorOnLint,
|
|
3862
|
-
"no-console": "warn",
|
|
3862
|
+
"no-console": [warnOnFixButErrorOnLint, { allow: ["warn", "error"] }],
|
|
3863
3863
|
"no-restricted-imports": [
|
|
3864
3864
|
warnOnFixButErrorOnLint,
|
|
3865
3865
|
{
|
|
@@ -3881,13 +3881,21 @@ var eslint_config_default = [
|
|
|
3881
3881
|
],
|
|
3882
3882
|
// Disable regular no-unused-vars rule since that will flag interface declarations. Only use the TypeScript specific rule for this.
|
|
3883
3883
|
"no-unused-vars": "off",
|
|
3884
|
-
"func-style": [
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
"
|
|
3890
|
-
|
|
3884
|
+
"func-style": [
|
|
3885
|
+
warnOnFixButErrorOnLint,
|
|
3886
|
+
"declaration",
|
|
3887
|
+
{ allowArrowFunctions: false }
|
|
3888
|
+
],
|
|
3889
|
+
"prefer-arrow-callback": [
|
|
3890
|
+
warnOnFixButErrorOnLint,
|
|
3891
|
+
{ allowNamedFunctions: false }
|
|
3892
|
+
],
|
|
3893
|
+
"no-param-reassign": warnOnFixButErrorOnLint,
|
|
3894
|
+
"no-useless-rename": warnOnFixButErrorOnLint,
|
|
3895
|
+
"sort-vars": warnOnFixButErrorOnLint,
|
|
3896
|
+
"no-cond-assign": warnOnFixButErrorOnLint,
|
|
3897
|
+
"no-undef": warnOnFixButErrorOnLint,
|
|
3898
|
+
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint
|
|
3891
3899
|
}
|
|
3892
3900
|
}
|
|
3893
3901
|
];
|
|
@@ -3918,8 +3926,8 @@ Object.assign(plugin.configs, {
|
|
|
3918
3926
|
In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
|
|
3919
3927
|
in favour of @alextheman/no-relative-imports. */
|
|
3920
3928
|
"no-restricted-imports": "off",
|
|
3921
|
-
"@alextheman/no-namespace-imports":
|
|
3922
|
-
"@alextheman/no-relative-imports":
|
|
3929
|
+
"@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
|
|
3930
|
+
"@alextheman/no-relative-imports": warnOnFixButErrorOnLint
|
|
3923
3931
|
}
|
|
3924
3932
|
}
|
|
3925
3933
|
]
|