Skip to content

Add eslint-plugin-jest internally and enable rules #625

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

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Add eslint-plugin-jest internally and enable rules #625

merged 1 commit into from
Dec 12, 2019

Conversation

bmish
Copy link
Member

@bmish bmish commented Dec 12, 2019

@bmish bmish added the internal label Dec 12, 2019
@@ -11,7 +11,7 @@ const RuleTester = require('eslint').RuleTester;

describe('imports', () => {
it('should expose the default ignored properties', () => {
expect(rule.DEFAULT_IGNORED_PROPERTIES).toEqual([
expect(rule.DEFAULT_IGNORED_PROPERTIES).toStrictEqual([
Copy link
Member

Choose a reason for hiding this comment

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

what's the reason to use Strict here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

hmm, that seems irrelevant to me in this case though 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah in this case it doesn't matter but it's still valuable to encourage stricter assertions in general.

.eslintrc.js Outdated
@@ -18,6 +19,7 @@ module.exports = {
'eslint:recommended',
'plugin:eslint-comments/recommended',
'plugin:eslint-plugin/all',
'plugin:jest/all',
Copy link
Member

Choose a reason for hiding this comment

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

are we sure we want all rules instead of recommended?

Copy link
Member Author

Choose a reason for hiding this comment

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

Switched to enabling the recommended and style configurations plus ~15 optional rules.

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
@bmish bmish merged commit 9943b7e into ember-cli:master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants