@alextheman/eslint-plugin 1.2.1 → 1.2.2

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.1";
3708
+ var version = "1.2.2";
3709
3709
 
3710
3710
  // src/create-rule.ts
3711
3711
  var import_utils = require("@typescript-eslint/utils");
@@ -3876,12 +3876,6 @@ var eslint_config_default = [
3876
3876
  "no-restricted-imports": [
3877
3877
  warnOnFixButErrorOnLint,
3878
3878
  {
3879
- paths: [
3880
- {
3881
- name: "@mui/material",
3882
- message: 'Please use `import Component from "@mui/material/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
3883
- }
3884
- ],
3885
3879
  patterns: [
3886
3880
  {
3887
3881
  group: ["./", "../"],
@@ -3933,6 +3927,10 @@ Object.assign(plugin.configs, {
3933
3927
  "@alextheman": plugin
3934
3928
  },
3935
3929
  rules: {
3930
+ /* In this plugin's config, no-restricted-imports checks checks for relative imports and errors if they're found.
3931
+ In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
3932
+ in favour of @alextheman/no-relative-imports. */
3933
+ "no-restricted-imports": "off",
3936
3934
  "@alextheman/no-namespace-imports": "error",
3937
3935
  "@alextheman/no-relative-imports": "error"
3938
3936
  }
@@ -3957,7 +3955,18 @@ plugin.configs.alexTypeScriptReactBase = [
3957
3955
  "warn",
3958
3956
  { allowConstantExport: true }
3959
3957
  ],
3960
- "react-hooks/exhaustive-deps": "off"
3958
+ "react-hooks/exhaustive-deps": "off",
3959
+ "no-restricted-imports": [
3960
+ warnOnFixButErrorOnLint,
3961
+ {
3962
+ paths: [
3963
+ {
3964
+ name: "@mui/material",
3965
+ message: 'Please use `import Component from "@mui/material/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
3966
+ }
3967
+ ]
3968
+ }
3969
+ ]
3961
3970
  })
3962
3971
  }
3963
3972
  ];
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.1";
4
+ var version = "1.2.2";
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.1";
4
+ var version = "1.2.2";
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.1";
3695
+ var version = "1.2.2";
3696
3696
 
3697
3697
  // src/create-rule.ts
3698
3698
  import { ESLintUtils } from "@typescript-eslint/utils";
@@ -3863,12 +3863,6 @@ var eslint_config_default = [
3863
3863
  "no-restricted-imports": [
3864
3864
  warnOnFixButErrorOnLint,
3865
3865
  {
3866
- paths: [
3867
- {
3868
- name: "@mui/material",
3869
- message: 'Please use `import Component from "@mui/material/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
3870
- }
3871
- ],
3872
3866
  patterns: [
3873
3867
  {
3874
3868
  group: ["./", "../"],
@@ -3920,6 +3914,10 @@ Object.assign(plugin.configs, {
3920
3914
  "@alextheman": plugin
3921
3915
  },
3922
3916
  rules: {
3917
+ /* In this plugin's config, no-restricted-imports checks checks for relative imports and errors if they're found.
3918
+ In practice, though, this is something that would be caught by my custom linting rule, so no-restricted-imports can be disabled here
3919
+ in favour of @alextheman/no-relative-imports. */
3920
+ "no-restricted-imports": "off",
3923
3921
  "@alextheman/no-namespace-imports": "error",
3924
3922
  "@alextheman/no-relative-imports": "error"
3925
3923
  }
@@ -3944,7 +3942,18 @@ plugin.configs.alexTypeScriptReactBase = [
3944
3942
  "warn",
3945
3943
  { allowConstantExport: true }
3946
3944
  ],
3947
- "react-hooks/exhaustive-deps": "off"
3945
+ "react-hooks/exhaustive-deps": "off",
3946
+ "no-restricted-imports": [
3947
+ warnOnFixButErrorOnLint,
3948
+ {
3949
+ paths: [
3950
+ {
3951
+ name: "@mui/material",
3952
+ message: 'Please use `import Component from "@mui/material/Component"` instead. See https://mui.com/material-ui/guides/minimizing-bundle-size/ for more information.'
3953
+ }
3954
+ ]
3955
+ }
3956
+ ]
3948
3957
  })
3949
3958
  }
3950
3959
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/eslint-plugin",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",