@alextheman/eslint-plugin 1.2.4 → 1.2.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 +9 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -7
- package/package.json +3 -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.6";
|
|
3709
3709
|
|
|
3710
3710
|
// src/create-rule.ts
|
|
3711
3711
|
var import_utils = require("@typescript-eslint/utils");
|
|
@@ -3841,12 +3841,15 @@ var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"),
|
|
|
3841
3841
|
var import_parser = __toESM(require("@typescript-eslint/parser"), 1);
|
|
3842
3842
|
var import_eslint_plugin_import = __toESM(require("eslint-plugin-import"), 1);
|
|
3843
3843
|
var import_globals = __toESM(require_globals2(), 1);
|
|
3844
|
+
var import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
|
|
3845
|
+
var import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
|
|
3844
3846
|
var warnOnFixButErrorOnLint = (
|
|
3845
3847
|
// eslint-disable-next-line no-undef
|
|
3846
3848
|
process.env.ESLINT_MODE === "fix" ? "warn" : "error"
|
|
3847
3849
|
);
|
|
3848
3850
|
var eslint_config_default = [
|
|
3849
3851
|
import_js.default.configs.recommended,
|
|
3852
|
+
import_eslint_config_prettier.default,
|
|
3850
3853
|
{
|
|
3851
3854
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3852
3855
|
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
@@ -3867,7 +3870,8 @@ var eslint_config_default = [
|
|
|
3867
3870
|
ignores: ["dist"],
|
|
3868
3871
|
plugins: {
|
|
3869
3872
|
"@typescript-eslint": import_eslint_plugin.default,
|
|
3870
|
-
import: import_eslint_plugin_import.default
|
|
3873
|
+
import: import_eslint_plugin_import.default,
|
|
3874
|
+
prettier: import_eslint_plugin_prettier.default
|
|
3871
3875
|
},
|
|
3872
3876
|
rules: {
|
|
3873
3877
|
"import/no-unresolved": warnOnFixButErrorOnLint,
|
|
@@ -3908,7 +3912,8 @@ var eslint_config_default = [
|
|
|
3908
3912
|
"sort-vars": warnOnFixButErrorOnLint,
|
|
3909
3913
|
"no-cond-assign": warnOnFixButErrorOnLint,
|
|
3910
3914
|
"no-undef": warnOnFixButErrorOnLint,
|
|
3911
|
-
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint
|
|
3915
|
+
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint,
|
|
3916
|
+
"prettier/prettier": ["warn", { printWidth: 100 }]
|
|
3912
3917
|
}
|
|
3913
3918
|
}
|
|
3914
3919
|
];
|
|
@@ -3959,10 +3964,7 @@ plugin.configs.alexTypeScriptReactBase = [
|
|
|
3959
3964
|
react: import_eslint_plugin_react.default
|
|
3960
3965
|
},
|
|
3961
3966
|
rules: __spreadProps(__spreadValues({}, import_eslint_plugin_react_hooks.default.configs.recommended.rules), {
|
|
3962
|
-
"react-refresh/only-export-components": [
|
|
3963
|
-
"warn",
|
|
3964
|
-
{ allowConstantExport: true }
|
|
3965
|
-
],
|
|
3967
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
3966
3968
|
"react-hooks/exhaustive-deps": "off",
|
|
3967
3969
|
"no-restricted-imports": [
|
|
3968
3970
|
warnOnFixButErrorOnLint,
|
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.6";
|
|
3696
3696
|
|
|
3697
3697
|
// src/create-rule.ts
|
|
3698
3698
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
@@ -3828,12 +3828,15 @@ var import_globals = __toESM(require_globals2(), 1);
|
|
|
3828
3828
|
import eslintPlugin from "@typescript-eslint/eslint-plugin";
|
|
3829
3829
|
import tsparser from "@typescript-eslint/parser";
|
|
3830
3830
|
import importPlugin from "eslint-plugin-import";
|
|
3831
|
+
import prettierConfig from "eslint-config-prettier";
|
|
3832
|
+
import prettierPlugin from "eslint-plugin-prettier";
|
|
3831
3833
|
var warnOnFixButErrorOnLint = (
|
|
3832
3834
|
// eslint-disable-next-line no-undef
|
|
3833
3835
|
process.env.ESLINT_MODE === "fix" ? "warn" : "error"
|
|
3834
3836
|
);
|
|
3835
3837
|
var eslint_config_default = [
|
|
3836
3838
|
import_js.default.configs.recommended,
|
|
3839
|
+
prettierConfig,
|
|
3837
3840
|
{
|
|
3838
3841
|
name: "@alextheman/eslint-config-typescript-base",
|
|
3839
3842
|
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
|
@@ -3854,7 +3857,8 @@ var eslint_config_default = [
|
|
|
3854
3857
|
ignores: ["dist"],
|
|
3855
3858
|
plugins: {
|
|
3856
3859
|
"@typescript-eslint": eslintPlugin,
|
|
3857
|
-
import: importPlugin
|
|
3860
|
+
import: importPlugin,
|
|
3861
|
+
prettier: prettierPlugin
|
|
3858
3862
|
},
|
|
3859
3863
|
rules: {
|
|
3860
3864
|
"import/no-unresolved": warnOnFixButErrorOnLint,
|
|
@@ -3895,7 +3899,8 @@ var eslint_config_default = [
|
|
|
3895
3899
|
"sort-vars": warnOnFixButErrorOnLint,
|
|
3896
3900
|
"no-cond-assign": warnOnFixButErrorOnLint,
|
|
3897
3901
|
"no-undef": warnOnFixButErrorOnLint,
|
|
3898
|
-
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint
|
|
3902
|
+
"@typescript-eslint/consistent-type-imports": warnOnFixButErrorOnLint,
|
|
3903
|
+
"prettier/prettier": ["warn", { printWidth: 100 }]
|
|
3899
3904
|
}
|
|
3900
3905
|
}
|
|
3901
3906
|
];
|
|
@@ -3946,10 +3951,7 @@ plugin.configs.alexTypeScriptReactBase = [
|
|
|
3946
3951
|
react: reactPlugin
|
|
3947
3952
|
},
|
|
3948
3953
|
rules: __spreadProps(__spreadValues({}, reactHooks.configs.recommended.rules), {
|
|
3949
|
-
"react-refresh/only-export-components": [
|
|
3950
|
-
"warn",
|
|
3951
|
-
{ allowConstantExport: true }
|
|
3952
|
-
],
|
|
3954
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
3953
3955
|
"react-hooks/exhaustive-deps": "off",
|
|
3954
3956
|
"no-restricted-imports": [
|
|
3955
3957
|
warnOnFixButErrorOnLint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
"eslint-plugin-import": "^2.32.0",
|
|
32
32
|
"eslint-plugin-react": "^7.37.5",
|
|
33
33
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
34
|
+
"eslint-config-prettier": "^10.1.8",
|
|
35
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
34
36
|
"eslint-plugin-react-refresh": "^0.4.20"
|
|
35
37
|
},
|
|
36
38
|
"devDependencies": {
|