Skip to content

Commit

Permalink
feat: Do not error about devDependencies in test files
Browse files Browse the repository at this point in the history
  • Loading branch information
joncursi committed Feb 3, 2020
1 parent e3a0dd6 commit 917dfe0
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ module.exports = {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.config.js',
'**/*.test.js',
'**/*.test.ts',
'**/*.test.tsx',
],
devDependencies: ['**/*.config.*', '**/*.test.*', '**/test/**/*.*'],
},
],
'import/no-named-as-default': 'off',
Expand Down Expand Up @@ -137,7 +132,7 @@ module.exports = {
'react/jsx-filename-extension': [
'warn',
{
extensions: ['.js', '.tsx'],
extensions: ['.js', '.ts', '.tsx'],
},
],
'react/jsx-fragments': ['error', 'syntax'],
Expand Down

0 comments on commit 917dfe0

Please sign in to comment.