@open-xchange/linter-presets 1.18.7 → 1.18.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.18.8` – 2026-Mar-29
4
+
5
+ - changed: rule `curly` allows single-line statements without braces
6
+ - changed: rules `jest/expect-expect` and `vitest/expect-expect` allow expect functions starting with 'expect'
7
+
3
8
  ## `1.18.7` – 2026-Mar-26
4
9
 
5
10
  - added: allow TypeScript 6.x as peer dependency
@@ -66,7 +66,7 @@ export default function base(languageConfig) {
66
66
  'require-atomic-updates': 'error',
67
67
  // suggestions
68
68
  'block-scoped-var': 'error',
69
- curly: 'error',
69
+ curly: ['error', 'multi-line'],
70
70
  eqeqeq: 'error',
71
71
  'grouped-accessor-pairs': 'error',
72
72
  'new-cap': 'error',
@@ -29,6 +29,7 @@ export default function jest(envOptions) {
29
29
  // custom rules
30
30
  customRules('env.jest.rules', envOptions, {
31
31
  'jest/consistent-test-it': ['error', { fn: 'it' }],
32
+ 'jest/expect-expect': ['error', { assertFunctionNames: ['expect*'] }],
32
33
  'jest/no-commented-out-tests': 'error',
33
34
  'jest/no-conditional-expect': 'off',
34
35
  'jest/no-confusing-set-timeout': 'error',
@@ -48,6 +48,7 @@ export default function vitest(envOptions) {
48
48
  customRules('env.vitest.rules', envOptions, {
49
49
  // 'vitest' plugin
50
50
  'vitest/consistent-test-it': 'error',
51
+ 'vitest/expect-expect': ['error', { assertFunctionNames: ['expect*'] }],
51
52
  'vitest/no-alias-methods': 'error',
52
53
  'vitest/no-disabled-tests': 'warn',
53
54
  'vitest/no-duplicate-hooks': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.18.7",
3
+ "version": "1.18.8",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",