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] Allow ignoring paths via package.json

See original GitHub issue

I propose adding a second top level key to package.json named eslintIgnore that contains an array of paths to be ignored (or not).

  • #698 landed support for eslintConfig in package.json and it help keep the root of the project tidy.
  • #4261 proposed merging .eslintignore with .eslintrc, but it was rejected because “config files cascade, and ignore files do not”.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kaicataldocommented, May 11, 2017

As discussed in today’s TSC meeting, this issue is now accepted.

1reaction
kaicataldocommented, Jun 27, 2017

@HarrisonMc555 Ah, I see what you’re saying. There’s definitely assumed knowledge regarding how to upgrade a package using npm, but that isn’t specific to ESLint.

Maybe in the future we could include an install command and a link to npm’s docs? That being said, I think it’ll be difficult to always anticipate when that’s useful and when it’s extra noise - I think at some point it’s reasonable to assume knowledge about (or the ability to discover) how the package manager works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

package.json - npm Docs
This feature is helpful for local offline development and creating tests that require npm installing where you don't want to hit an external...
Read more >
'package.json' is not under 'rootDir' - Stack Overflow
When using // @ts-ignore on top of the import call and setting "rootDir": "./src" it works. In this case enabling resolveJsonModule will ...
Read more >
Configuring package.json · Jest
Use the <rootDir> string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your...
Read more >
Modules: Packages | Node.js v19.3.0 Documentation
Imported CommonJS modules have their URLs converted to absolute paths and are then loaded via the CommonJS module loader. package.json and file extensions#....
Read more >
How To Use Node.js Modules with npm and package.json
Let's run through this example. In your locator application, you will use the axios library, which will help you make HTTP requests. Install...
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