@apify/oxlint-config 0.2.5 → 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.
- package/index.js +8 -5
- 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:
|
|
@@ -156,7 +164,6 @@ const sharedConfig = {
|
|
|
156
164
|
'jest/no-disabled-tests': 'error',
|
|
157
165
|
'jest/no-conditional-expect': 'error',
|
|
158
166
|
'jest/no-focused-tests': 'error',
|
|
159
|
-
'jest/valid-expect': 'off',
|
|
160
167
|
'import/no-default-export': 'off',
|
|
161
168
|
},
|
|
162
169
|
},
|
|
@@ -172,10 +179,6 @@ const sharedConfig = {
|
|
|
172
179
|
files: ['**/*.stories.{js,jsx,ts,tsx,mjs,cjs}'],
|
|
173
180
|
rules: { 'no-console': 'off', 'import/no-default-export': 'off' },
|
|
174
181
|
},
|
|
175
|
-
{
|
|
176
|
-
files: ['**/integration_tests/**'],
|
|
177
|
-
rules: { 'jest/expect-expect': 'off' },
|
|
178
|
-
},
|
|
179
182
|
],
|
|
180
183
|
};
|
|
181
184
|
|