Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
new config for no-mocks-import rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Seccafien committed May 4, 2019
1 parent 37c81ce commit e2e87ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added
- New Rules: `node/prefer-promises/dns` and `node/prefer-promises/fs`. These rules disallow the callback API in favor of promise API for the dns and fs modules. ([257](https://github.com/Shopify/eslint-plugin-shopify/pull/257))
- New Rule: `jest/no-mocks-import` This rule disallows manually importing from `__mocks__`.

## [28.0.0] - 2019-04-26

Expand Down
2 changes: 2 additions & 0 deletions lib/config/rules/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ module.exports = {
'jest/require-tothrow-message': 'error',
// Disallow empty titles
'jest/no-empty-title': 'error',
// Disallow manually importing from `__mocks__`
'jest/no-mocks-import': 'error',
};

0 comments on commit e2e87ba

Please sign in to comment.