Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eslint-plugin-mocha #184

Merged
merged 1 commit into from
May 6, 2021
Merged

Conversation

bmish
Copy link
Member

@bmish bmish commented May 6, 2021

I refactored the index.js test structure a bit to simplify things and help address these two rules:

Note: for our ESLint 6 CI test, we have to use an older version of eslint-plugin-mocha that is still compatible with ESLint 6.

https://github.com/lo1tuma/eslint-plugin-mocha

I refactored the index.js test structure a bit to simplify things and help address these two rules:

* [mocha/no-nested-tests](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-nested-tests.md) (we had `describe` nested inside `it`)
* [mocha/no-setup-in-describe](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-setup-in-describe.md) (doesn't like function calls or member expressions inside `describe`)
@bmish bmish force-pushed the eslint-plugin-mocha branch from 57f9f96 to 01808b4 Compare May 6, 2021 16:40
@coveralls
Copy link

coveralls commented May 6, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 01808b4 on bmish:eslint-plugin-mocha into ce4803f on platinumazure:master.

Copy link
Collaborator

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for contributing!

@platinumazure platinumazure merged commit de7ca73 into qunitjs:master May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants