molindo / eslint-config-molindo

ESLint config that implements the Molindo styleguide and helps to catch errors
MIT License
1 stars 2 forks source link

Also allow tests in subdirectories #16

Closed googol7 closed 5 years ago

googol7 commented 5 years ago

In a subdirectory src/utils/tests/subdir/something-test.js I get this error:

import sinon from „sinon"

'sinon' should be listed in the project's dependencies, not devDependencies.

In the root level it works without problems: src/utils/tests/semething-test.js import sinon from „sinon“

This is because of:

   'import/no-extraneous-dependencies': [
     ERROR,
     {
       devDependencies: [
         'webpack.config.js',
         '**/__testUtils__/**/*.js',
         '**/__tests__/*-test.js'
       ]
     }
   ],
amannn commented 5 years ago

@googol7 Fixed and released in 3.0.