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.

[FEATURE REQUEST] Support for '--ignore-path' flag as ​​eslint and prettier

See original GitHub issue

Hi 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeembreycommented, Sep 6, 2019

Have you tried the exclude flag?

0reactions
Oak-Vcommented, Sep 8, 2019

Done! Looking forward to the feedback.

Read more comments on GitHub >

github_iconTop 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 >

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