Skip to content

Commit 1adbf02

Browse files
committed
Whitelist setupTests files for devDependencies imports check
1 parent 4126268 commit 1adbf02

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## Unreleased
88

9+
### Bug fixes
10+
11+
- Whitelist `setupTests` files for devDependencies imports check.
12+
913
## [0.3.1](https://github.com/torchbox/eslint-config-torchbox/compare/v0.3.0...v0.3.1) (2019-10-09)
1014

1115
### Bug fixes

config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ module.exports = {
4141
'spec/**',
4242
'**/__tests__/**',
4343
'**/__mocks__/**',
44-
'**/*{.,_}{test,spec,story}.{js,jsx}',
45-
'**/jest.config.js',
44+
'**/*{.,_}{test,spec,story}.*',
45+
'**/jest.config.*',
46+
'**/setupTests.*',
4647
'**/webpack.config.*',
4748
'**/rollup.config.*',
4849
'**/gulpfile.*',

src/__snapshots__/semver.test.js.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,9 @@ Object {
382382
"spec/**",
383383
"**/__tests__/**",
384384
"**/__mocks__/**",
385-
"**/*{.,_}{test,spec,story}.{js,jsx}",
386-
"**/jest.config.js",
385+
"**/*{.,_}{test,spec,story}.*",
386+
"**/jest.config.*",
387+
"**/setupTests.*",
387388
"**/webpack.config.*",
388389
"**/rollup.config.*",
389390
"**/gulpfile.*",

0 commit comments

Comments
 (0)