@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 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.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": ["error", "declaration", { allowArrowFunctions: false }],
3898
- "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
3899
- "no-param-reassign": "error",
3900
- "no-useless-rename": "error",
3901
- "sort-vars": "error",
3902
- "no-cond-assign": "error",
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": "error",
3935
- "@alextheman/no-relative-imports": "error"
3941
+ "@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
3942
+ "@alextheman/no-relative-imports": warnOnFixButErrorOnLint
3936
3943
  }
3937
3944
  }
3938
3945
  ]
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
 
3
3
  var name = "@alextheman/eslint-plugin";
4
- var version = "1.2.2";
4
+ var version = "1.2.3";
5
5
 
6
6
  interface AlexPlugin {
7
7
  meta: {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
2
2
 
3
3
  var name = "@alextheman/eslint-plugin";
4
- var version = "1.2.2";
4
+ var version = "1.2.3";
5
5
 
6
6
  interface AlexPlugin {
7
7
  meta: {
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.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": ["error", "declaration", { allowArrowFunctions: false }],
3885
- "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
3886
- "no-param-reassign": "error",
3887
- "no-useless-rename": "error",
3888
- "sort-vars": "error",
3889
- "no-cond-assign": "error",
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": "error",
3922
- "@alextheman/no-relative-imports": "error"
3928
+ "@alextheman/no-namespace-imports": warnOnFixButErrorOnLint,
3929
+ "@alextheman/no-relative-imports": warnOnFixButErrorOnLint
3923
3930
  }
3924
3931
  }
3925
3932
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",