eslint-config-tamia 9.4.0 → 9.4.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/package.json +1 -1
  2. package/rules/vitest.mjs +9 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.4.0",
4
+ "version": "9.4.2",
5
5
  "engines": {
6
6
  "node": ">=22"
7
7
  },
package/rules/vitest.mjs CHANGED
@@ -11,7 +11,7 @@ export default [
11
11
  { pattern: String.raw`.*\.test\.[tj]sx?$` },
12
12
  ],
13
13
  // Consistently use test() instead of it()
14
- 'test/consistent-test-it': [
14
+ 'vitest/consistent-test-it': [
15
15
  'error',
16
16
  { fn: 'test', withinDescribe: 'test' },
17
17
  ],
@@ -19,8 +19,14 @@ export default [
19
19
  'vitest/consistent-vitest-vi': 'error',
20
20
  // Disallow focused tests such as test.only()
21
21
  'vitest/no-focused-tests': 'error',
22
- // Enforce padding around vitest functions
23
- 'vitest/padding-around-all': 'warn',
22
+ // Enforce padding around vitest functions (cannot use padding-around-all as
23
+ // it include opinionated padding-around-expect-groups rule)
24
+ 'vitest/padding-around-after-all-blocks': 'warn',
25
+ 'vitest/padding-around-after-each-blocks': 'warn',
26
+ 'vitest/padding-around-before-all-blocks': 'warn',
27
+ 'vitest/padding-around-before-each-blocks': 'warn',
28
+ 'vitest/padding-around-describe-blocks)': 'warn',
29
+ 'vitest/padding-around-test-blocks)': 'warn',
24
30
  },
25
31
  },
26
32
  ];