@eienjs/eslint-config 2.1.1 → 2.1.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.
@@ -6,7 +6,7 @@ const versionsMap = {
6
6
  "@adonisjs/eslint-plugin": "^2.2.2",
7
7
  "@nuxt/eslint-plugin": "^1.16.0",
8
8
  "astro-eslint-parser": "^2.1.0",
9
- "eslint": "^10.5.0",
9
+ "eslint": "^10.6.0",
10
10
  "eslint-plugin-astro": "^2.1.1",
11
11
  "eslint-plugin-format": "^2.0.1",
12
12
  "prettier-plugin-astro": "^0.14.1"
@@ -64,7 +64,10 @@ async function adonisjs(options = {}) {
64
64
  {
65
65
  files: fileRoutes,
66
66
  name: "eienjs/adonisjs/disables",
67
- rules: { "antfu/no-top-level-await": "off" }
67
+ rules: {
68
+ "antfu/no-top-level-await": "off",
69
+ "unicorn/no-top-level-side-effects": "off"
70
+ }
68
71
  },
69
72
  {
70
73
  files: [join(dirs.database, nestedGlobPattern)],
@@ -39,6 +39,7 @@ async function astro(options = {}) {
39
39
  "astro/no-unused-define-vars-in-style": "error",
40
40
  "astro/semi": "off",
41
41
  "astro/valid-compile": "error",
42
+ "unicorn/no-top-level-side-effects": "off",
42
43
  ...!stylistic && {
43
44
  "@stylistic/indent": "off",
44
45
  "@stylistic/jsx-closing-tag-location": "off",
@@ -12,7 +12,8 @@ function disables() {
12
12
  "@typescript-eslint/explicit-function-return-type": "off",
13
13
  "@typescript-eslint/no-deprecated": "off",
14
14
  "antfu/no-top-level-await": "off",
15
- "no-console": "off"
15
+ "no-console": "off",
16
+ "unicorn/no-top-level-side-effects": "off"
16
17
  }
17
18
  },
18
19
  {
@@ -22,7 +23,8 @@ function disables() {
22
23
  "@typescript-eslint/no-unnecessary-condition": "off",
23
24
  "antfu/no-top-level-await": "off",
24
25
  "no-console": "off",
25
- "unicorn/no-process-exit": "off"
26
+ "unicorn/no-process-exit": "off",
27
+ "unicorn/no-top-level-side-effects": "off"
26
28
  }
27
29
  },
28
30
  {
@@ -53,7 +55,8 @@ function disables() {
53
55
  rules: {
54
56
  "@typescript-eslint/explicit-function-return-type": "off",
55
57
  "antfu/no-top-level-await": "off",
56
- "no-console": "off"
58
+ "no-console": "off",
59
+ "unicorn/no-top-level-side-effects": "off"
57
60
  }
58
61
  },
59
62
  {
@@ -86,7 +89,8 @@ function disables() {
86
89
  rules: {
87
90
  "antfu/no-top-level-await": "off",
88
91
  "no-console": "off",
89
- "unicorn/no-process-exit": "off"
92
+ "unicorn/no-process-exit": "off",
93
+ "unicorn/no-top-level-side-effects": "off"
90
94
  }
91
95
  }
92
96
  ];
@@ -67,6 +67,7 @@ async function markdown(options = {}) {
67
67
  "no-unused-labels": "off",
68
68
  "no-unused-vars": "off",
69
69
  "unicode-bom": "off",
70
+ "unicorn/no-top-level-side-effects": "off",
70
71
  "unused-imports/no-unused-imports": "off",
71
72
  "unused-imports/no-unused-vars": "off",
72
73
  ...overrides
@@ -35,6 +35,7 @@ async function test(options = {}) {
35
35
  "test/no-only-tests": isInEditor ? "warn" : "error",
36
36
  "test/prefer-hooks-in-order": "error",
37
37
  "test/prefer-lowercase-title": "error",
38
+ "unicorn/no-top-level-side-effects": "off",
38
39
  ...overrides
39
40
  }
40
41
  }];
@@ -30,6 +30,16 @@ function unicorn(options = {}) {
30
30
  "unicorn/prefer-type-error": "error",
31
31
  "unicorn/throw-new-error": "error"
32
32
  },
33
+ "unicorn/consistent-class-member-order": ["error", { order: [
34
+ "static-field",
35
+ "static-block",
36
+ "public-field",
37
+ "private-field",
38
+ "constructor",
39
+ "public-method",
40
+ "static-method",
41
+ "private-method"
42
+ ] }],
33
43
  "unicorn/consistent-destructuring": "error",
34
44
  "unicorn/consistent-function-scoping": ["error", { checkArrowFunctions: false }],
35
45
  "unicorn/expiring-todo-comments": "off",
@@ -40,12 +50,14 @@ function unicorn(options = {}) {
40
50
  "unicorn/max-nested-calls": ["error", { max: 5 }],
41
51
  "unicorn/name-replacements": "off",
42
52
  "unicorn/no-array-reduce": "off",
53
+ "unicorn/no-non-function-verb-prefix": "off",
43
54
  "unicorn/no-null": "off",
44
55
  "unicorn/no-static-only-class": "off",
45
56
  "unicorn/no-thenable": "off",
46
57
  "unicorn/no-this-assignment": "off",
47
58
  "unicorn/no-this-outside-of-class": "off",
48
59
  "unicorn/numeric-separators-style": "off",
60
+ "unicorn/prefer-await": "off",
49
61
  "unicorn/prefer-dom-node-append": "off",
50
62
  "unicorn/prefer-dom-node-dataset": "off",
51
63
  "unicorn/prefer-dom-node-remove": "off",
@@ -206,6 +206,7 @@ async function vue(options = {}) {
206
206
  "@typescript-eslint/naming-convention": "off",
207
207
  "antfu/no-top-level-await": "off",
208
208
  "n/prefer-global/process": "off",
209
+ "unicorn/no-top-level-side-effects": "off",
209
210
  ...overrides
210
211
  }
211
212
  },
package/dist/package.mjs CHANGED
@@ -2,6 +2,6 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  //#region package.json
5
- var version = "2.1.1";
5
+ var version = "2.1.2";
6
6
  //#endregion
7
7
  export { version };
@@ -3189,7 +3189,7 @@ interface RuleOptions {
3189
3189
  * Disallow expressions where the operation doesn't affect the value
3190
3190
  * @see https://eslint.org/docs/latest/rules/no-constant-binary-expression
3191
3191
  */
3192
- 'no-constant-binary-expression'?: Linter.RuleEntry<[]>;
3192
+ 'no-constant-binary-expression'?: Linter.RuleEntry<NoConstantBinaryExpression>;
3193
3193
  /**
3194
3194
  * Disallow constant expressions in conditions
3195
3195
  * @see https://eslint.org/docs/latest/rules/no-constant-condition
@@ -12333,6 +12333,9 @@ type NoConfusingArrow = [] | [{
12333
12333
  }]; // ----- no-console -----
12334
12334
  type NoConsole = [] | [{
12335
12335
  allow?: [string, ...(string)[]];
12336
+ }]; // ----- no-constant-binary-expression -----
12337
+ type NoConstantBinaryExpression = [] | [{
12338
+ checkRelationalComparisons?: boolean;
12336
12339
  }]; // ----- no-constant-condition -----
12337
12340
  type NoConstantCondition = [] | [{
12338
12341
  checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eienjs/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.1",
4
+ "version": "2.1.2",
5
5
  "description": "EienJS ESLint Config",
6
6
  "author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
7
7
  "license": "MIT",
@@ -87,7 +87,7 @@
87
87
  "eslint-plugin-antfu": "^3.2.3",
88
88
  "eslint-plugin-command": "^3.5.2",
89
89
  "eslint-plugin-import-lite": "^0.6.0",
90
- "eslint-plugin-jsdoc": "^63.0.9",
90
+ "eslint-plugin-jsdoc": "^63.0.10",
91
91
  "eslint-plugin-jsonc": "^3.2.0",
92
92
  "eslint-plugin-n": "^18.2.1",
93
93
  "eslint-plugin-no-only-tests": "^3.4.0",
@@ -119,7 +119,7 @@
119
119
  "astro-eslint-parser": "^2.1.0",
120
120
  "auto-changelog": "^2.6.0",
121
121
  "baseline-browser-mapping": "^2.10.40",
122
- "eslint": "^10.5.0",
122
+ "eslint": "^10.6.0",
123
123
  "eslint-plugin-astro": "^2.1.1",
124
124
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
125
125
  "eslint-plugin-format": "^2.0.1",