import-js/eslint-plugin-import

How to include hidden files in settings

オープン

#930 opened on 2017/09/18

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,549 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (5,940 個のスター)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

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

コントリビューターガイド