@epic-web/config 1.18.0 → 1.18.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.
Files changed (2) hide show
  1. package/eslint.js +8 -5
  2. package/package.json +1 -1
package/eslint.js CHANGED
@@ -21,7 +21,7 @@ const hasPlaywright = has('playwright')
21
21
 
22
22
  const vitestFiles = ['**/__tests__/**/*', '**/*.test.*', '**/*.spec.*']
23
23
  const testFiles = ['**/tests/**', '**/#tests/**', ...vitestFiles]
24
- const playwrightFiles = ['**/e2e/**']
24
+ const playwrightFiles = ['**/tests/e2e/**']
25
25
 
26
26
  export const config = [
27
27
  {
@@ -292,7 +292,6 @@ export const config = [
292
292
  vitest: (await import('@vitest/eslint-plugin')).default,
293
293
  },
294
294
  rules: {
295
- 'vitest/expect-expect': ERROR,
296
295
  // you don't want the editor to autofix this, but we do want to be
297
296
  // made aware of it
298
297
  'vitest/no-focused-tests': [WARN, { fixable: false }],
@@ -305,19 +304,20 @@ export const config = [
305
304
  'vitest/prefer-to-have-length': ERROR,
306
305
  'vitest/valid-expect-in-promise': ERROR,
307
306
  'vitest/valid-expect': ERROR,
307
+
308
+ // vitest/expect-expect - we don't enable this because it's fine to
309
+ // rely on testing-library to throw errors if elements aren't found.
308
310
  },
309
311
  }
310
312
  : null,
311
313
 
312
314
  hasPlaywright
313
315
  ? {
314
- files: ['**/tests/*.ts?(x)', '**/tests/*.js?(x)'],
315
- ignores: testFiles,
316
+ files: [...playwrightFiles],
316
317
  plugins: {
317
318
  playwright: (await import('eslint-plugin-playwright')).default,
318
319
  },
319
320
  rules: {
320
- 'playwright/expect-expect': ERROR,
321
321
  'playwright/max-nested-describe': ERROR,
322
322
  'playwright/missing-playwright-await': ERROR,
323
323
  'playwright/no-focused-test': WARN,
@@ -336,6 +336,9 @@ export const config = [
336
336
  'playwright/prefer-web-first-assertions': ERROR,
337
337
  'playwright/valid-expect-in-promise': ERROR,
338
338
  'playwright/valid-expect': ERROR,
339
+
340
+ // playwright/expect-expect - we don't enable this because it's fine to
341
+ // rely on thrown errors if elements aren't found.
339
342
  },
340
343
  }
341
344
  : null,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.18.0",
7
+ "version": "1.18.2",
8
8
  "description": "Reasonable ESLint configs for epic web devs",
9
9
  "main": "index.js",
10
10
  "type": "module",