question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ESLint does not handle folders started from dot (e.g. /.tests).

See original GitHub issue

I store my tests in .tests folders. When I want to lint my project eslint ignore them, but it sees them If I specify it directly.

screenshot 2017-04-08 16 41 16

System: macOS.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bbughcommented, Jan 8, 2018

If anyone else gets here via Google trying to figure out why dot folders are ignored, you can fix it by adding a negating ignore in your .eslintignore:

!/.storybook

Now anything like .storybook/config.js will be included in the lint.

1reaction
strctrcommented, Apr 9, 2017
  1. v3.19.0
  2. My custom config based on airbnb config.
  3. ESLint does not lint directory /.test
  4. Expect to lint code in this dir.

@ilyavolodin I just add !/app/** to .eslintignore and this helps. Thanks! I’ll close the issue. Best.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why eslint can't detect all files in the directory, but ...
So where is the problems? Eslint can detect single file well, but it can't detect all the files in some directory.
Read more >
Dealing with files - Learn web development | MDN
Browsers, web servers, and programming languages do not handle spaces ... Create a folder called images , inside your test-site folder.
Read more >
VuePress で eslint を使いたい。
eslint project/docs/.vuepress/components/Sample.vue ... ESLint does not handle folders started from dot (e.g. /.tests). #8429.
Read more >
Excluding Files and Folders
You can specify files or directories that you'd like to exclude from your analysis using in-app configuration, or using the
Read more >
Configuring Vitest
path/to/vitest.config.ts; Use process.env.VITEST or mode property on defineConfig (will be set to test / benchmark if not overridden) to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found