@vinicunca/eslint-config 4.0.8 → 4.1.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +20 -6
  2. package/package.json +10 -10
package/dist/index.d.mts CHANGED
@@ -665,6 +665,11 @@ interface RuleOptions {
665
665
  * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
666
666
  */
667
667
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
668
+ /**
669
+ * Ensure all exports appear after other statements.
670
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
671
+ */
672
+ 'import/exports-last'?: Linter.RuleEntry<[]>;
668
673
  /**
669
674
  * Ensure all imports appear before other statements.
670
675
  * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
@@ -6405,6 +6410,11 @@ interface RuleOptions {
6405
6410
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
6406
6411
  */
6407
6412
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
6413
+ /**
6414
+ * Disallow unnecessary async function wrapper for expected promises
6415
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
6416
+ */
6417
+ 'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
6408
6418
  /**
6409
6419
  * Enforce padding around `afterAll` blocks
6410
6420
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -6514,7 +6524,7 @@ interface RuleOptions {
6514
6524
  * prefer dynamic import in mock
6515
6525
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
6516
6526
  */
6517
- 'test/prefer-import-in-mock'?: Linter.RuleEntry<[]>;
6527
+ 'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
6518
6528
  /**
6519
6529
  * enforce importing Vitest globals
6520
6530
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
@@ -6575,6 +6585,11 @@ interface RuleOptions {
6575
6585
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
6576
6586
  */
6577
6587
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
6588
+ /**
6589
+ * Suggest using `toHaveBeenCalledTimes()`
6590
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
6591
+ */
6592
+ 'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
6578
6593
  /**
6579
6594
  * enforce using toHaveLength()
6580
6595
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
@@ -6600,11 +6615,6 @@ interface RuleOptions {
6600
6615
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
6601
6616
  */
6602
6617
  'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
6603
- /**
6604
- * require usage of import in vi.mock()
6605
- * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
6606
- */
6607
- 'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
6608
6618
  /**
6609
6619
  * require local Test Context for concurrent snapshot tests
6610
6620
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
@@ -16157,6 +16167,10 @@ type TestPreferExpectAssertions = [] | [{
16157
16167
  onlyFunctionsWithExpectInLoop?: boolean;
16158
16168
  onlyFunctionsWithExpectInCallback?: boolean;
16159
16169
  }];
16170
+ // ----- test/prefer-import-in-mock -----
16171
+ type TestPreferImportInMock = [] | [{
16172
+ fixable?: boolean;
16173
+ }];
16160
16174
  // ----- test/prefer-lowercase-title -----
16161
16175
  type TestPreferLowercaseTitle = [] | [{
16162
16176
  ignore?: ("describe" | "test" | "it")[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "4.0.8",
4
+ "version": "4.1.0",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -128,27 +128,27 @@
128
128
  "@typescript-eslint/eslint-plugin": "^8.50.1",
129
129
  "@typescript-eslint/parser": "^8.50.1",
130
130
  "@unocss/eslint-plugin": "^66.5.10",
131
- "@vitest/eslint-plugin": "^1.5.2",
131
+ "@vitest/eslint-plugin": "^1.6.3",
132
132
  "eslint-config-flat-gitignore": "^2.1.0",
133
133
  "eslint-flat-config-utils": "^2.1.4",
134
134
  "eslint-merge-processors": "^2.0.0",
135
135
  "eslint-plugin-antfu": "^3.1.1",
136
- "eslint-plugin-command": "^3.3.1",
136
+ "eslint-plugin-command": "^3.4.0",
137
137
  "eslint-plugin-format": "^1.1.0",
138
- "eslint-plugin-import-lite": "^0.3.0",
138
+ "eslint-plugin-import-lite": "^0.4.0",
139
139
  "eslint-plugin-jsdoc": "^61.5.0",
140
140
  "eslint-plugin-jsonc": "^2.21.0",
141
141
  "eslint-plugin-n": "^17.23.1",
142
142
  "eslint-plugin-no-only-tests": "^3.3.0",
143
143
  "eslint-plugin-perfectionist": "^4.15.1",
144
- "eslint-plugin-pnpm": "^1.4.2",
144
+ "eslint-plugin-pnpm": "^1.4.3",
145
145
  "eslint-plugin-regexp": "^2.10.0",
146
146
  "eslint-plugin-sonarjs": "^3.0.5",
147
147
  "eslint-plugin-toml": "^0.12.0",
148
148
  "eslint-plugin-unicorn": "^62.0.0",
149
149
  "eslint-plugin-unused-imports": "^4.3.0",
150
150
  "eslint-plugin-vue": "^10.6.2",
151
- "eslint-plugin-yml": "^1.19.0",
151
+ "eslint-plugin-yml": "^1.19.1",
152
152
  "eslint-processor-vue-blocks": "^2.0.0",
153
153
  "globals": "^16.5.0",
154
154
  "jsonc-eslint-parser": "^2.4.2",
@@ -159,12 +159,12 @@
159
159
  },
160
160
  "devDependencies": {
161
161
  "@antfu/ni": "^28.0.0",
162
- "@eslint-react/eslint-plugin": "^2.3.12",
162
+ "@eslint-react/eslint-plugin": "^2.3.13",
163
163
  "@eslint/config-inspector": "^1.4.2",
164
164
  "@next/eslint-plugin-next": "^16.1.1",
165
165
  "@prettier/plugin-xml": "^3.4.2",
166
166
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
167
- "@types/node": "^24.10.2",
167
+ "@types/node": "^25.0.3",
168
168
  "@types/yargs": "^17.0.35",
169
169
  "@vinicunca/perkakas": "^1.9.0",
170
170
  "astro-eslint-parser": "^1.2.2",
@@ -175,7 +175,7 @@
175
175
  "eslint-plugin-erasable-syntax-only": "^0.4.0",
176
176
  "eslint-plugin-jsx-a11y": "^6.10.2",
177
177
  "eslint-plugin-react-hooks": "^7.0.1",
178
- "eslint-plugin-react-refresh": "^0.4.24",
178
+ "eslint-plugin-react-refresh": "^0.4.26",
179
179
  "eslint-plugin-solid": "^0.14.5",
180
180
  "eslint-plugin-svelte": "^3.13.1",
181
181
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
@@ -186,7 +186,7 @@
186
186
  "lint-staged": "^16.2.7",
187
187
  "prettier-plugin-astro": "^0.14.1",
188
188
  "prettier-plugin-slidev": "^1.0.5",
189
- "react": "^19.2.1",
189
+ "react": "^19.2.3",
190
190
  "simple-git-hooks": "^2.13.1",
191
191
  "svelte": "^5.46.0",
192
192
  "svelte-eslint-parser": "^1.4.1",