@eienjs/eslint-config 1.5.0 → 1.5.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/bin/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import '../dist/cli/index.js';
3
+ import '../dist/cli/index.mjs';
@@ -4,7 +4,7 @@ const versionsMap = {
4
4
  "@nuxt/eslint-plugin": "^1.10.0",
5
5
  "astro-eslint-parser": "^1.2.2",
6
6
  "eslint": "^9.39.1",
7
- "eslint-plugin-astro": "^1.4.0",
7
+ "eslint-plugin-astro": "^1.5.0",
8
8
  "eslint-plugin-format": "^1.0.2",
9
9
  "prettier-plugin-astro": "^0.14.1"
10
10
  };
@@ -77,6 +77,15 @@ function disables() {
77
77
  files: [GLOB_ASTRO],
78
78
  name: "eienjs/disables/astro",
79
79
  rules: { "@stylistic/max-len": "off" }
80
+ },
81
+ {
82
+ files: ["**/ecosystem.config.js", "**/deploy.js"],
83
+ name: "eienjs/disables/deploy-tools",
84
+ rules: {
85
+ "antfu/no-top-level-await": "off",
86
+ "no-console": "off",
87
+ "unicorn/no-process-exit": "off"
88
+ }
80
89
  }
81
90
  ];
82
91
  }
package/dist/globs.mjs CHANGED
@@ -82,7 +82,8 @@ const GLOB_EXCLUDE = [
82
82
  "**/LICENSE*",
83
83
  "**/__snapshots__",
84
84
  "**/auto-import?(s).d.ts",
85
- "**/components.d.ts"
85
+ "**/components.d.ts",
86
+ "**/tests/_files"
86
87
  ];
87
88
 
88
89
  //#endregion
package/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.5.0";
2
+ var version = "1.5.2";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -983,6 +983,11 @@ interface RuleOptions {
983
983
  * @see https://typescript-eslint.io/rules/no-unused-expressions
984
984
  */
985
985
  '@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
986
+ /**
987
+ * Disallow unused private class members
988
+ * @see https://typescript-eslint.io/rules/no-unused-private-class-members
989
+ */
990
+ '@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
986
991
  /**
987
992
  * Disallow unused variables
988
993
  * @see https://typescript-eslint.io/rules/no-unused-vars
@@ -2134,6 +2139,11 @@ interface RuleOptions {
2134
2139
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
2135
2140
  */
2136
2141
  'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
2142
+ /**
2143
+ * Requires that Promise rejections are documented with `@rejects` tags.
2144
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
2145
+ */
2146
+ 'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>;
2137
2147
  /**
2138
2148
  * Requires that returns are documented with `@returns`.
2139
2149
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
@@ -4883,6 +4893,11 @@ interface RuleOptions {
4883
4893
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
4884
4894
  */
4885
4895
  'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
4896
+ /**
4897
+ * ensure that every `expect.poll` call is awaited
4898
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
4899
+ */
4900
+ 'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
4886
4901
  /**
4887
4902
  * require setup and teardown to be within a hook
4888
4903
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
@@ -9802,6 +9817,7 @@ type JsdocCheckExamples = [] | [{
9802
9817
  }];
9803
9818
  // ----- jsdoc/check-indentation -----
9804
9819
  type JsdocCheckIndentation = [] | [{
9820
+ allowIndentedSections?: boolean;
9805
9821
  excludeTags?: string[];
9806
9822
  }];
9807
9823
  // ----- jsdoc/check-line-alignment -----
@@ -10148,6 +10164,14 @@ type JsdocRequireParamType = [] | [{
10148
10164
  defaultDestructuredRootType?: string;
10149
10165
  setDefaultDestructuredRootType?: boolean;
10150
10166
  }];
10167
+ // ----- jsdoc/require-rejects -----
10168
+ type JsdocRequireRejects = [] | [{
10169
+ contexts?: (string | {
10170
+ comment?: string;
10171
+ context?: string;
10172
+ })[];
10173
+ exemptedBy?: string[];
10174
+ }];
10151
10175
  // ----- jsdoc/require-returns -----
10152
10176
  type JsdocRequireReturns = [] | [{
10153
10177
  checkConstructors?: boolean;
@@ -10238,6 +10262,9 @@ type JsdocSortTags = [] | [{
10238
10262
  linesBetween?: number;
10239
10263
  reportIntraTagGroupSpacing?: boolean;
10240
10264
  reportTagGroupSpacing?: boolean;
10265
+ tagExceptions?: {
10266
+ [k: string]: number;
10267
+ };
10241
10268
  tagSequence?: {
10242
10269
  tags?: string[];
10243
10270
  }[];
@@ -13964,7 +13991,7 @@ type TestNoFocusedTests = [] | [{
13964
13991
  }];
13965
13992
  // ----- test/no-hooks -----
13966
13993
  type TestNoHooks = [] | [{
13967
- allow?: unknown[];
13994
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
13968
13995
  }];
13969
13996
  // ----- test/no-large-snapshots -----
13970
13997
  type TestNoLargeSnapshots = [] | [{
@@ -15830,6 +15857,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
15830
15857
  onlyEquality?: boolean;
15831
15858
  }];
15832
15859
  // Names of all the configs
15833
- type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/node/rules' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/imports/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/yaml/pnpm-workspace' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro';
15860
+ type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/node/rules' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/imports/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/yaml/pnpm-workspace' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
15834
15861
  //#endregion
15835
15862
  export { ConfigNames, RuleOptions };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eienjs/eslint-config",
3
3
  "type": "module",
4
- "version": "1.5.0",
4
+ "version": "1.5.2",
5
5
  "description": "EienJS ESLint Config",
6
6
  "author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
7
7
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "@prettier/plugin-xml": "^3.4.2",
42
42
  "astro-eslint-parser": "^1.2.2",
43
43
  "eslint": "^9.39.1",
44
- "eslint-plugin-astro": "^1.4.0",
44
+ "eslint-plugin-astro": "^1.5.0",
45
45
  "eslint-plugin-erasable-syntax-only": "^0.4.0",
46
46
  "eslint-plugin-format": "^1.0.2",
47
47
  "prettier-plugin-astro": "^0.14.1"
@@ -77,10 +77,10 @@
77
77
  "@clack/prompts": "^0.11.0",
78
78
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
79
79
  "@eslint/markdown": "^7.5.1",
80
- "@stylistic/eslint-plugin": "^5.5.0",
81
- "@typescript-eslint/eslint-plugin": "^8.46.3",
82
- "@typescript-eslint/parser": "^8.46.3",
83
- "@vitest/eslint-plugin": "^1.4.0",
80
+ "@stylistic/eslint-plugin": "^5.6.1",
81
+ "@typescript-eslint/eslint-plugin": "^8.47.0",
82
+ "@typescript-eslint/parser": "^8.47.0",
83
+ "@vitest/eslint-plugin": "^1.4.3",
84
84
  "ansis": "^4.2.0",
85
85
  "cac": "^6.7.14",
86
86
  "eslint-config-flat-gitignore": "^2.1.0",
@@ -89,7 +89,7 @@
89
89
  "eslint-plugin-antfu": "^3.1.1",
90
90
  "eslint-plugin-command": "^3.3.1",
91
91
  "eslint-plugin-import-lite": "^0.3.0",
92
- "eslint-plugin-jsdoc": "^61.1.12",
92
+ "eslint-plugin-jsdoc": "^61.4.0",
93
93
  "eslint-plugin-jsonc": "^2.21.0",
94
94
  "eslint-plugin-n": "^17.23.1",
95
95
  "eslint-plugin-no-only-tests": "^3.3.0",
@@ -115,21 +115,21 @@
115
115
  "@adonisjs/eslint-plugin": "^2.0.1",
116
116
  "@commitlint/cli": "^20.1.0",
117
117
  "@commitlint/config-conventional": "^20.0.0",
118
- "@eslint/config-inspector": "^1.3.0",
118
+ "@eslint/config-inspector": "^1.4.1",
119
119
  "@nuxt/eslint-plugin": "^1.10.0",
120
120
  "@prettier/plugin-xml": "^3.4.2",
121
- "@types/node": "^24.10.0",
121
+ "@types/node": "^24.10.1",
122
122
  "astro-eslint-parser": "^1.2.2",
123
123
  "auto-changelog": "^2.5.0",
124
124
  "eslint": "^9.39.1",
125
- "eslint-plugin-astro": "^1.4.0",
125
+ "eslint-plugin-astro": "^1.5.0",
126
126
  "eslint-plugin-erasable-syntax-only": "^0.4.0",
127
127
  "eslint-plugin-format": "^1.0.2",
128
128
  "eslint-typegen": "^2.3.0",
129
129
  "husky": "^9.1.7",
130
130
  "np": "^10.2.0",
131
131
  "prettier-plugin-astro": "^0.14.1",
132
- "tsdown": "^0.16.0",
132
+ "tsdown": "^0.16.6",
133
133
  "tsx": "^4.20.6",
134
134
  "typescript": "^5.9.3"
135
135
  },