Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Disable error messages #975

Closed
RyanMitchellWilson opened this issue Aug 7, 2017 · 10 comments
Closed

Disable error messages #975

RyanMitchellWilson opened this issue Aug 7, 2017 · 10 comments

Comments

@RyanMitchellWilson
Copy link

Whenever I try to just use atom for something other than my main project I get these errors every single time I press a key in file. Can these be removed or given an option to disable them?

screen shot 2017-08-07 at 3 06 26 pm

@Arcanemagus
Copy link
Member

Can you open Developer Tools and check on the error it's reporting on? It should only be giving you that if something is very broken with the setup.

@RyanMitchellWilson
Copy link
Author

I'm getting Cannot find module 'babel-eslint' Error: Cannot find module 'babel-eslint'

@Arcanemagus
Copy link
Member

That means you have a configuration somewhere for the open file that is specifying babel-eslint as the parser, you can see which configuration it's using from the Linter ESLint: Debug command.

@RyanMitchellWilson
Copy link
Author

RyanMitchellWilson commented Aug 7, 2017

I have the Disable when no ESLint config is found (in package.json or .eslintrc) checked and it is still showing up.
I'm trying to run the react-native-video example and from what I can tell, it doesn't have an .eslintrc file or anything specifying babel-eslint anywhere. And the package.json looks just like this:

{
  "name": "VideoPlayer",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "node_modules/react-native/packager/packager.sh"
  },
  "dependencies": {
    "react": "15.4.2",
    "react-native": "^0.42.0",
    "react-native-video": "file:../"
  }
}

Is there a way to just disable them completely so that I never see messages like this pop up?

@Arcanemagus
Copy link
Member

As I said, if it's showing up you have an ESLint configuration file somewhere, either in a parent directory to this project, or at ~/.eslintrc.

@RyanMitchellWilson
Copy link
Author

RyanMitchellWilson commented Aug 8, 2017

Ok, I've looked around and I don't have a .eslintrc, yet it is still happening. Can an option be added to just turn off those kind of errors in general? Because it literally opens a new error message for every single key that I press.

Also why would this be looking in any parent directories? If it is not in my project currently opened it shouldn't be looking elsewhere for it. Because say I'm working on two different projects, I don't want the linter for one project interfering with my other project.

@Arcanemagus
Copy link
Member

ESLint has a complex set of rules for determining the configuration, you can find details here.

@bl00mber
Copy link

bl00mber commented Sep 5, 2017

This errors always appear when node_modules dependencies not installed yet. Would be great if this errors (or plugin completely) will be auto-disabled for projects without this folder.

@Arcanemagus
Copy link
Member

Duplicate of #387

@Arcanemagus Arcanemagus marked this as a duplicate of #387 Sep 17, 2017
@Arcanemagus
Copy link
Member

Looks like this was already filed before, marked as a duplicate of that issue, and I've got a PR incoming that handles this in a much cleaner way 😉.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants