@alextheman/eslint-plugin 1.2.2 → 1.2.3
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 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -10
- 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.3";
|
|
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,12 +3894,19 @@ 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
|
-
"
|
|
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,
|
|
3903
3910
|
"no-undef": warnOnFixButErrorOnLint
|
|
3904
3911
|
}
|
|
3905
3912
|
}
|
|
@@ -3931,8 +3938,8 @@ Object.assign(plugin.configs, {
|
|
|
3931
3938
|
In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
|
|
3932
3939
|
in favour of @alextheman/no-relative-imports. */
|
|
3933
3940
|
"no-restricted-imports": "off",
|
|
3934
|
-
"@alextheman/no-namespace-imports":
|
|
3935
|
-
"@alextheman/no-relative-imports":
|
|
3941
|
+
"@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
|
|
3942
|
+
"@alextheman/no-relative-imports": warnOnFixButErrorOnLint
|
|
3936
3943
|
}
|
|
3937
3944
|
}
|
|
3938
3945
|
]
|
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.3";
|
|
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,12 +3881,19 @@ 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
|
-
"
|
|
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,
|
|
3890
3897
|
"no-undef": warnOnFixButErrorOnLint
|
|
3891
3898
|
}
|
|
3892
3899
|
}
|
|
@@ -3918,8 +3925,8 @@ Object.assign(plugin.configs, {
|
|
|
3918
3925
|
In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
|
|
3919
3926
|
in favour of @alextheman/no-relative-imports. */
|
|
3920
3927
|
"no-restricted-imports": "off",
|
|
3921
|
-
"@alextheman/no-namespace-imports":
|
|
3922
|
-
"@alextheman/no-relative-imports":
|
|
3928
|
+
"@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
|
|
3929
|
+
"@alextheman/no-relative-imports": warnOnFixButErrorOnLint
|
|
3923
3930
|
}
|
|
3924
3931
|
}
|
|
3925
3932
|
]
|