"eslint --ignore-path" should accept multiple file paths
See original GitHub issueCurrent, eslint --ignore-path
accept only one ignore file, it is useful if .gitignore
and .eslintignore
could be used together.
As of ESLint v4.14.0
, --ignore-path
command line argument is accepting path::String
, is is proposed to change to [path::String]
, so addition files could be included.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Ignoring Code - ESLint - Pluggable JavaScript Linter
You can tell ESLint to ignore specific files and directories using ignorePatterns in your config files. ignorePatterns patterns follow the same rules as...
Read more >ESLint Ignore Multiple Paths for All Rules (or One Rule!)
Simply place the . eslintignore file in the project root folder. There is no additional configuration needed.
Read more >Disable eslint rules for folder - Stack Overflow
To ignore some folder from eslint rules we could create the file .eslintignore in root directory and add there the path to the...
Read more >ESLint | WebStorm Documentation - JetBrains
First it looks for a directory closest to the linted file which contains a .eslintignore or .eslintrc.* file, or a package.json file with ......
Read more >CLI - Prettier
Given a list of paths/patterns, the Prettier CLI first treats every entry in it as a literal path. ... Prettier CLI will ignore...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is an actual usecase.
I want eslint to only check files I can modify so I do
--ignore-path .gitignore
. But additionally I don’t want eslint to check my flow-typed annotations.The only way I can do this now is to copy everything from .gitignore to .eslintignore and add flow-typed/* there. But then I have to always add lines to .gitignore and .eslintignore every time I want to ignore something.
This is kinda minor but I would love to know about a better way
@ilyavolodin .gitignore + .eslintignore is a really common case. I’ve got a vendor directory in source control and I want to ignore my /build directories etc.
Currently both ignore files are in the root of the repo so it’s less important that relative paths are preserved.