feat: replace no only tests with vitest (!2)

This gives us a much more robust configuration for our rules. Additionally, it expects tests to be converted to the `expect` API.

Reviewed-on: https://codeberg.org/nhcarrigan/eslint-config/pulls/2
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
2024-09-26 00:21:31 +00:00
committed by Naomi the Technomancer
parent 9b128c1bf1
commit 883274a3e4
9 changed files with 172 additions and 213 deletions
+25 -9
View File
@@ -26,6 +26,9 @@ importers:
'@typescript-eslint/parser':
specifier: rc-v8
version: 8.0.0-alpha.54(eslint@9.7.0)(typescript@5.5.4)
'@vitest/eslint-plugin':
specifier: 1.1.4
version: 1.1.4(eslint@9.7.0)(typescript@5.5.4)(vitest@2.0.4(@types/node@20.14.12))
eslint:
specifier: '>=9'
version: 9.7.0
@@ -41,9 +44,6 @@ importers:
eslint-plugin-jsdoc:
specifier: 48.8.3
version: 48.8.3(eslint@9.7.0)
eslint-plugin-no-only-tests:
specifier: 3.1.0
version: 3.1.0
eslint-plugin-prettier:
specifier: 5.2.1
version: 5.2.1(@types/eslint@9.6.0)(eslint-config-prettier@9.1.0(eslint@9.7.0))(eslint@9.7.0)(prettier@3.3.3)
@@ -541,6 +541,21 @@ packages:
resolution: {integrity: sha512-lS8wrI6Vxw6ebIi+ehocAjXLG43bN5JCC8+wtGDD3Xw9O/EVpanAVdftefJs/mlK87eyccvVIiiHgD294TpIEQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@vitest/eslint-plugin@1.1.4':
resolution: {integrity: sha512-kudjgefmJJ7xQ2WfbUU6pZbm7Ou4gLYRaao/8Ynide3G0QhVKHd978sDyWX4KOH0CCMH9cyrGAkFd55eGzJ48Q==}
peerDependencies:
'@typescript-eslint/utils': '>= 8.0'
eslint: '>= 8.57.0'
typescript: '>= 5.0.0'
vitest: '*'
peerDependenciesMeta:
'@typescript-eslint/utils':
optional: true
typescript:
optional: true
vitest:
optional: true
'@vitest/expect@2.0.4':
resolution: {integrity: sha512-39jr5EguIoanChvBqe34I8m1hJFI4+jxvdOpD7gslZrVQBKhh8H9eD7J/LJX4zakrw23W+dITQTDqdt43xVcJw==}
@@ -856,10 +871,6 @@ packages:
peerDependencies:
eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
eslint-plugin-no-only-tests@3.1.0:
resolution: {integrity: sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==}
engines: {node: '>=5.0.0'}
eslint-plugin-prettier@5.2.1:
resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -2167,6 +2178,13 @@ snapshots:
'@typescript-eslint/types': 8.0.0-alpha.54
eslint-visitor-keys: 3.4.3
'@vitest/eslint-plugin@1.1.4(eslint@9.7.0)(typescript@5.5.4)(vitest@2.0.4(@types/node@20.14.12))':
dependencies:
eslint: 9.7.0
optionalDependencies:
typescript: 5.5.4
vitest: 2.0.4(@types/node@20.14.12)
'@vitest/expect@2.0.4':
dependencies:
'@vitest/spy': 2.0.4
@@ -2573,8 +2591,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
eslint-plugin-no-only-tests@3.1.0: {}
eslint-plugin-prettier@5.2.1(@types/eslint@9.6.0)(eslint-config-prettier@9.1.0(eslint@9.7.0))(eslint@9.7.0)(prettier@3.3.3):
dependencies:
eslint: 9.7.0