@alextheman/eslint-plugin 1.13.5 → 1.13.6

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
@@ -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.5";
3709
+ var version = "1.13.6";
3710
3710
 
3711
3711
  // src/configs/alexPluginBase.ts
3712
3712
  function createAlexPluginBaseConfig(plugin) {
@@ -3785,11 +3785,17 @@ var typeScriptBase = [
3785
3785
  ],
3786
3786
  "arrow-body-style": ["error", "always"],
3787
3787
  curly: ["error", "all"],
3788
+ "dot-notation": "error",
3788
3789
  eqeqeq: "error",
3789
3790
  "func-style": ["error", "declaration", { allowArrowFunctions: false }],
3790
3791
  "import/no-unresolved": "error",
3791
3792
  "no-cond-assign": "error",
3792
3793
  "no-console": ["error", { allow: ["warn", "error"] }],
3794
+ "no-else-return": "error",
3795
+ "no-eval": "error",
3796
+ "no-implicit-coercion": ["error", { allow: ["!!"] }],
3797
+ "no-lonely-if": "error",
3798
+ "no-new-wrappers": "error",
3793
3799
  "no-param-reassign": "error",
3794
3800
  "no-restricted-imports": [
3795
3801
  "error",
@@ -3806,6 +3812,8 @@ var typeScriptBase = [
3806
3812
  // Disable regular no-unused-vars rule since that will flag interface declarations. Only use the TypeScript specific rule for this.
3807
3813
  "no-unused-vars": "off",
3808
3814
  "no-useless-rename": "error",
3815
+ "no-useless-return": "error",
3816
+ "operator-assignment": ["error", "always"],
3809
3817
  "perfectionist/sort-exports": [
3810
3818
  "error",
3811
3819
  {
@@ -3836,6 +3844,9 @@ var typeScriptBase = [
3836
3844
  }
3837
3845
  ],
3838
3846
  "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
3847
+ "prefer-const": "error",
3848
+ "prefer-destructuring": "error",
3849
+ "prefer-template": "error",
3839
3850
  "prettier/prettier": ["warn", prettierRules_default],
3840
3851
  "sort-vars": "error"
3841
3852
  },
@@ -3849,6 +3860,21 @@ var typeScriptBase = [
3849
3860
  {
3850
3861
  files: ["**/*.test.ts"],
3851
3862
  rules: {
3863
+ "no-restricted-globals": [
3864
+ "error",
3865
+ {
3866
+ message: "Do not use global describe function. Import test functions from vitest instead.",
3867
+ name: "describe"
3868
+ },
3869
+ {
3870
+ message: "Do not use global test function. Import test functions from vitest instead.",
3871
+ name: "test"
3872
+ },
3873
+ {
3874
+ message: "Do not use global expect function. Import test functions from vitest instead.",
3875
+ name: "expect"
3876
+ }
3877
+ ],
3852
3878
  "no-restricted-imports": [
3853
3879
  "error",
3854
3880
  {
@@ -4187,7 +4213,6 @@ var noPluginConfigAccessFromSrcConfigs = createRule_default({
4187
4213
  source: node.object
4188
4214
  }
4189
4215
  });
4190
- return;
4191
4216
  }
4192
4217
  }
4193
4218
  }
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  import { Config } from 'prettier';
4
4
 
5
5
  var name = "@alextheman/eslint-plugin";
6
- var version = "1.13.5";
6
+ var version = "1.13.6";
7
7
 
8
8
  interface AlexPlugin {
9
9
  meta: {
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import z from 'zod';
3
3
  import { Config } from 'prettier';
4
4
 
5
5
  var name = "@alextheman/eslint-plugin";
6
- var version = "1.13.5";
6
+ var version = "1.13.6";
7
7
 
8
8
  interface AlexPlugin {
9
9
  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.13.5";
3695
+ var version = "1.13.6";
3696
3696
 
3697
3697
  // src/configs/alexPluginBase.ts
3698
3698
  function createAlexPluginBaseConfig(plugin) {
@@ -3771,11 +3771,17 @@ var typeScriptBase = [
3771
3771
  ],
3772
3772
  "arrow-body-style": ["error", "always"],
3773
3773
  curly: ["error", "all"],
3774
+ "dot-notation": "error",
3774
3775
  eqeqeq: "error",
3775
3776
  "func-style": ["error", "declaration", { allowArrowFunctions: false }],
3776
3777
  "import/no-unresolved": "error",
3777
3778
  "no-cond-assign": "error",
3778
3779
  "no-console": ["error", { allow: ["warn", "error"] }],
3780
+ "no-else-return": "error",
3781
+ "no-eval": "error",
3782
+ "no-implicit-coercion": ["error", { allow: ["!!"] }],
3783
+ "no-lonely-if": "error",
3784
+ "no-new-wrappers": "error",
3779
3785
  "no-param-reassign": "error",
3780
3786
  "no-restricted-imports": [
3781
3787
  "error",
@@ -3792,6 +3798,8 @@ var typeScriptBase = [
3792
3798
  // Disable regular no-unused-vars rule since that will flag interface declarations. Only use the TypeScript specific rule for this.
3793
3799
  "no-unused-vars": "off",
3794
3800
  "no-useless-rename": "error",
3801
+ "no-useless-return": "error",
3802
+ "operator-assignment": ["error", "always"],
3795
3803
  "perfectionist/sort-exports": [
3796
3804
  "error",
3797
3805
  {
@@ -3822,6 +3830,9 @@ var typeScriptBase = [
3822
3830
  }
3823
3831
  ],
3824
3832
  "prefer-arrow-callback": ["error", { allowNamedFunctions: false }],
3833
+ "prefer-const": "error",
3834
+ "prefer-destructuring": "error",
3835
+ "prefer-template": "error",
3825
3836
  "prettier/prettier": ["warn", prettierRules_default],
3826
3837
  "sort-vars": "error"
3827
3838
  },
@@ -3835,6 +3846,21 @@ var typeScriptBase = [
3835
3846
  {
3836
3847
  files: ["**/*.test.ts"],
3837
3848
  rules: {
3849
+ "no-restricted-globals": [
3850
+ "error",
3851
+ {
3852
+ message: "Do not use global describe function. Import test functions from vitest instead.",
3853
+ name: "describe"
3854
+ },
3855
+ {
3856
+ message: "Do not use global test function. Import test functions from vitest instead.",
3857
+ name: "test"
3858
+ },
3859
+ {
3860
+ message: "Do not use global expect function. Import test functions from vitest instead.",
3861
+ name: "expect"
3862
+ }
3863
+ ],
3838
3864
  "no-restricted-imports": [
3839
3865
  "error",
3840
3866
  {
@@ -4173,7 +4199,6 @@ var noPluginConfigAccessFromSrcConfigs = createRule_default({
4173
4199
  source: node.object
4174
4200
  }
4175
4201
  });
4176
- return;
4177
4202
  }
4178
4203
  }
4179
4204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.13.5",
3
+ "version": "1.13.6",
4
4
  "description": "A package to provide custom ESLint rules and configs",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",