Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit b03fa01

Browse files
authored
eslint-config-mocha (#622)
Use the latest version of eslint-config-base, and take a dependency on eslint-config-mocha now that test linting has been moved to a standalone library. eslint-config-base previously assumed that you would always use Mocha, but some of our projects actually use Jest (which is better than Mocha). It's a bit messy to require devDependencies related to Mocha if you actually use Jest, so I split out the test linting config into a standalone library. Now we need to take a dependency on that library so our tests still get linted 😄 .
1 parent d160f4e commit b03fa01

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222

2323
plugins: ['import', 'node'],
2424

25-
extends: ['@xpring-eng/eslint-config-base/loose'],
25+
extends: ['@xpring-eng/eslint-config-mocha', '@xpring-eng/eslint-config-base/loose'],
2626

2727
rules: {
2828
// We explicitly use `process.exit()` because all other errors should really be handled.

package-lock.json

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"@types/supertest": "^2.0.10",
6060
"@typescript-eslint/eslint-plugin": "^3.7.0",
6161
"@typescript-eslint/parser": "^3.7.0",
62-
"@xpring-eng/eslint-config-base": "^0.10.0",
62+
"@xpring-eng/eslint-config-base": "^0.11.0",
63+
"@xpring-eng/eslint-config-mocha": "^1.0.0",
6364
"chai": "^4.2.0",
6465
"chai-as-promised": "^7.1.1",
6566
"chokidar": "^3.4.0",

0 commit comments

Comments
 (0)