Skip to content

Commit

Permalink
eslint: catch .only() calls in db-migration tests (#1360)
Browse files Browse the repository at this point in the history
Because db-migration tests use a wrapper for mocha describe() calls, extra configuration is required to catch .only() calls.

See: https://www.npmjs.com/package/eslint-plugin-no-only-tests#user-content-options
  • Loading branch information
alxndrsn authored Jan 22, 2025
1 parent c7b2af2 commit f444627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"no-else-return": "off",
"no-multiple-empty-lines": "off",
"no-nested-ternary": "off",
"no-only-tests/no-only-tests": "error",
"no-only-tests/no-only-tests": [ "error", { "block": [ "describe", "it", "describeMigration" ] } ],
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"nonblock-statement-body-position": "off",
Expand Down

0 comments on commit f444627

Please sign in to comment.