[FEATURE REQUEST] Support for '--ignore-path' flag as eslint and prettier
See original GitHub issueHi guys!
I would like to have the ‘–ignore-path’ flag to ignore files as I do with eslint and prettier. Given a folder structure like:
$ tree -a
.
├── .gitignore
├── LICENSE.md
├── README.md
├── dist
│ └── chunk.main.js
├── index.js
├── package-lock.json
├── package.json
├── server.log
└── src
├── auth.js
└── utils.js
We would have:
# like
$ prettier '**/*. js' --ignore-path .gitignore
# and
$ eslint --ext .js, .json, .html --ignore-path .gitignore .
# it could be
$ onchange '**/*{.js,.html,.yml,.json,.md}' --ignore-path .gitignore -- prettier --write {{change}}
# and
$ onchange '**/*{.js,.html,.json}' --ignore-path .gitignore -- eslint --fix {{change}}
I don’t know if this is possible or interesting for you, but I like this approach, and I’m willing to work on it if you think it’s a good idea.
What do you say?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[Feature Request] add warning about file ignored and cli flag ...
Personally I like the ESLint's way to warn about each file, the logic is just simple. And prettier --check reads --ignore-path too, right?...
Read more >Linting in TypeScript using ESLint and Prettier - LogRocket Blog
Integrate Prettier with ESLint to automate type-checking in your ... you can update the lint script to use the --ignore-path flag:
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >ESLint and Prettier with Vite and Vue.js 3 - Vue School Blog
Like ESlint, Prettier integrates well with most IDEs and has the same integration features as described for ESLint earlier. gif of ESLint in ......
Read more >Prettier 2.3. In which assignments are consistent, short keys ...
The feature is called “Ember / Handlebars” and not just “Handlebars” because Glimmer doesn't support some syntax and use cases of Handlebars.
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
Have you tried the exclude flag?
Done! Looking forward to the feedback.