@apify/oxlint-config 0.2.4 → 0.2.6

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/index.js +18 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -83,6 +83,14 @@ const sharedConfig = {
83
83
  'unicorn/no-await-in-promise-methods': 'error',
84
84
  'jest/require-to-throw-message': 'off',
85
85
  'jest/prefer-snapshot-hint': 'off',
86
+ // Jest and vitest plugins have some overlapping rules.
87
+ // Disable the Jest ones and let the Vitest plugin handle them.
88
+ 'jest/expect-expect': 'off',
89
+ 'jest/no-standalone-expect': 'off',
90
+ 'jest/valid-describe-callback': 'off',
91
+ 'jest/valid-expect': 'off',
92
+ 'jest/valid-expect-in-promise': 'off',
93
+ 'jest/valid-title': 'off',
86
94
  // Vitest plugin auto-enables most of its rules at error level. Keep
87
95
  // the few that catch real bugs and turn the noisy/opinionated/buggy
88
96
  // ones off:
@@ -92,11 +100,21 @@ const sharedConfig = {
92
100
  // would need a type parameter); opt-in per project if desired.
93
101
  // - consistent-each-for, warn-todo, require-local-test-context-for-
94
102
  // concurrent-snapshots: opinion / niche.
103
+ // - valid-describe-callback: false-positive on the
104
+ // `describe(name, options, fn)` API (e.g. `{ retry: 10 }`) — the
105
+ // rule treats the options object as an invalid second argument.
106
+ // - valid-expect: misfires on chai-style assertions used by Cypress
107
+ // (`expect(x).to.be.greaterThan(y)`); the vitest plugin has no
108
+ // notion of chai's `.to.*` modifier chain. Cypress tests live in
109
+ // the same workspaces as vitest tests, so file-glob scoping isn't
110
+ // reliable — disable globally.
95
111
  'vitest/hoisted-apis-on-top': 'off',
96
112
  'vitest/require-mock-type-parameters': 'off',
97
113
  'vitest/consistent-each-for': 'off',
98
114
  'vitest/warn-todo': 'off',
99
115
  'vitest/require-local-test-context-for-concurrent-snapshots': 'off',
116
+ 'vitest/valid-describe-callback': 'off',
117
+ 'vitest/valid-expect': 'off',
100
118
  'typescript/unbound-method': 'off',
101
119
  'typescript/restrict-template-expressions': 'off',
102
120
  'typescript/no-useless-default-assignment': 'off',
@@ -146,7 +164,6 @@ const sharedConfig = {
146
164
  'jest/no-disabled-tests': 'error',
147
165
  'jest/no-conditional-expect': 'error',
148
166
  'jest/no-focused-tests': 'error',
149
- 'jest/valid-expect': 'off',
150
167
  'import/no-default-export': 'off',
151
168
  },
152
169
  },
@@ -162,10 +179,6 @@ const sharedConfig = {
162
179
  files: ['**/*.stories.{js,jsx,ts,tsx,mjs,cjs}'],
163
180
  rules: { 'no-console': 'off', 'import/no-default-export': 'off' },
164
181
  },
165
- {
166
- files: ['**/integration_tests/**'],
167
- rules: { 'jest/expect-expect': 'off' },
168
- },
169
182
  ],
170
183
  };
171
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/oxlint-config",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Apify oxlint preset to be shared between projects.",
5
5
  "repository": {
6
6
  "url": "https://github.com/apify/apify-oxlint-config"