import-js/eslint-plugin-import

How to include hidden files in settings

Open

#930 aperta il 18 set 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
bughelp wanted

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

I use neomake (vim plugin) which creates temporary files for "on the fly linking", for a normal file src/foo/Bar.test.js you get src/foo/.Bar.test.js@neomake_123_2.js

I have "no-extraneous-dependencies" rule enabled like in your example (just with more paths):

"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js"]}]

from https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md

How do you specify that files like "**/.*.test.js" are also ok to use dev dependencies?

I tried:

  • **/.*.test.js doesn't exclude the files
  • **/\.*.test.js triggers an error in eslint config parser
  • **/\\.*.test.js doesn't exclude the files

Guida contributor