Simplify eslint-plugin-jest config (#16105)
This commit is contained in:
1 parent
f2ae3783bb
commit
02580be36b
1 file changed
+5
-3
+5
-3
@@ -288,8 +288,7 @@ export default [
|
||||
"unicorn/prefer-top-level-await": "error",
|
||||
},
|
||||
},
|
||||
...compat.env({ jest: true }).map((config) => ({
|
||||
...config,
|
||||
{
|
||||
files: [
|
||||
"tests/config/**/*.js",
|
||||
"tests/format/**/jsfmt.spec.js",
|
||||
@@ -299,6 +298,9 @@ export default [
|
||||
"scripts/release/__tests__/**/*.spec.js",
|
||||
],
|
||||
plugins: { jest: eslintPluginJest },
|
||||
languageOptions: {
|
||||
globals: eslintPluginJest.environments.globals.globals,
|
||||
},
|
||||
rules: {
|
||||
"@stylistic/js/quotes": [
|
||||
"error",
|
||||
@@ -316,7 +318,7 @@ export default [
|
||||
],
|
||||
"jest/prefer-to-be": "error",
|
||||
},
|
||||
})),
|
||||
},
|
||||
{
|
||||
files: ["tests/format/**/*.js"],
|
||||
rules: {
|
||||
|
||||
Reference in new issue
Block a user