@alextheman/eslint-plugin 4.9.1 → 4.10.0
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 +8 -2
- package/dist/index.js +7 -2
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -37,6 +37,8 @@ let eslint_config_prettier = require("eslint-config-prettier");
|
|
|
37
37
|
eslint_config_prettier = __toESM(eslint_config_prettier);
|
|
38
38
|
let eslint_plugin_import = require("eslint-plugin-import");
|
|
39
39
|
eslint_plugin_import = __toESM(eslint_plugin_import);
|
|
40
|
+
let eslint_plugin_n = require("eslint-plugin-n");
|
|
41
|
+
eslint_plugin_n = __toESM(eslint_plugin_n);
|
|
40
42
|
let eslint_plugin_perfectionist = require("eslint-plugin-perfectionist");
|
|
41
43
|
eslint_plugin_perfectionist = __toESM(eslint_plugin_perfectionist);
|
|
42
44
|
let eslint_plugin_prettier = require("eslint-plugin-prettier");
|
|
@@ -3615,10 +3617,14 @@ const generalJavaScript = [
|
|
|
3615
3617
|
ignores: ["dist"],
|
|
3616
3618
|
languageOptions: javaScriptLanguageOptions_default,
|
|
3617
3619
|
name: "@alextheman/general/javascript",
|
|
3618
|
-
plugins: {
|
|
3620
|
+
plugins: {
|
|
3621
|
+
import: eslint_plugin_import.default,
|
|
3622
|
+
n: eslint_plugin_n.default
|
|
3623
|
+
},
|
|
3619
3624
|
rules: {
|
|
3620
3625
|
eqeqeq: "error",
|
|
3621
3626
|
"import/no-unresolved": "error",
|
|
3627
|
+
"n/prefer-node-protocol": "error",
|
|
3622
3628
|
"no-cond-assign": "error",
|
|
3623
3629
|
"no-console": ["error", { allow: [
|
|
3624
3630
|
"warn",
|
|
@@ -4680,7 +4686,7 @@ var rules_default = {
|
|
|
4680
4686
|
//#endregion
|
|
4681
4687
|
//#region package.json
|
|
4682
4688
|
var name = "@alextheman/eslint-plugin";
|
|
4683
|
-
var version = "4.
|
|
4689
|
+
var version = "4.10.0";
|
|
4684
4690
|
|
|
4685
4691
|
//#endregion
|
|
4686
4692
|
//#region src/alexPlugin.ts
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import z from "zod";
|
|
|
4
4
|
import js from "@eslint/js";
|
|
5
5
|
import prettierConfig from "eslint-config-prettier";
|
|
6
6
|
import importPlugin from "eslint-plugin-import";
|
|
7
|
+
import nodePlugin from "eslint-plugin-n";
|
|
7
8
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
8
9
|
import prettierPlugin from "eslint-plugin-prettier";
|
|
9
10
|
import tseslint from "typescript-eslint";
|
|
@@ -3600,10 +3601,14 @@ const generalJavaScript = [
|
|
|
3600
3601
|
ignores: ["dist"],
|
|
3601
3602
|
languageOptions: javaScriptLanguageOptions_default,
|
|
3602
3603
|
name: "@alextheman/general/javascript",
|
|
3603
|
-
plugins: {
|
|
3604
|
+
plugins: {
|
|
3605
|
+
import: importPlugin,
|
|
3606
|
+
n: nodePlugin
|
|
3607
|
+
},
|
|
3604
3608
|
rules: {
|
|
3605
3609
|
eqeqeq: "error",
|
|
3606
3610
|
"import/no-unresolved": "error",
|
|
3611
|
+
"n/prefer-node-protocol": "error",
|
|
3607
3612
|
"no-cond-assign": "error",
|
|
3608
3613
|
"no-console": ["error", { allow: [
|
|
3609
3614
|
"warn",
|
|
@@ -4665,7 +4670,7 @@ var rules_default = {
|
|
|
4665
4670
|
//#endregion
|
|
4666
4671
|
//#region package.json
|
|
4667
4672
|
var name = "@alextheman/eslint-plugin";
|
|
4668
|
-
var version = "4.
|
|
4673
|
+
var version = "4.10.0";
|
|
4669
4674
|
|
|
4670
4675
|
//#endregion
|
|
4671
4676
|
//#region src/alexPlugin.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/eslint-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A package to provide custom ESLint rules and configs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alextheman/utility": "^
|
|
18
|
+
"@alextheman/utility": "^4.0.0",
|
|
19
19
|
"@typescript-eslint/utils": "^8.50.0",
|
|
20
20
|
"common-tags": "^1.8.2",
|
|
21
21
|
"zod": "^4.2.1"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/node": "^25.0.3",
|
|
29
29
|
"@typescript-eslint/rule-tester": "^8.50.0",
|
|
30
30
|
"@typescript-eslint/types": "^8.50.0",
|
|
31
|
-
"alex-c-line": "^1.
|
|
31
|
+
"alex-c-line": "^1.10.0",
|
|
32
32
|
"dotenv-cli": "^11.0.0",
|
|
33
33
|
"eslint": "^9.39.2",
|
|
34
34
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"eslint-plugin-import": "^2.32.0",
|
|
37
37
|
"eslint-plugin-jsdoc": "^61.5.0",
|
|
38
38
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
39
|
+
"eslint-plugin-n": "^17.23.1",
|
|
39
40
|
"eslint-plugin-package-json": "^0.85.0",
|
|
40
41
|
"eslint-plugin-perfectionist": "^5.0.0",
|
|
41
42
|
"eslint-plugin-prettier": "^5.5.4",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"eslint-plugin-import": ">=2.0.0",
|
|
63
64
|
"eslint-plugin-jsdoc": ">=61.5.0",
|
|
64
65
|
"eslint-plugin-jsx-a11y": ">=6.0.0",
|
|
66
|
+
"eslint-plugin-n": ">=17.23.1",
|
|
65
67
|
"eslint-plugin-package-json": ">=0.85.0",
|
|
66
68
|
"eslint-plugin-perfectionist": ">=4.0.0",
|
|
67
69
|
"eslint-plugin-prettier": ">=5.0.0",
|