standard / eslint-config-standard

ESLint Config for JavaScript Standard Style

Home Page:https://standardjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show the wrong error notice about javascript files

Wayne529 opened this issue · comments

What version of this package are you using?
"eslint-config-standard": "^14.1.0"

What operating system, Node.js, and npm version?
node.js is 10.18.0 and npm version is 6.13.4

What happened?
when i use this npm with eslint, it get something wrong to notice me the errors in the javascript file of my project.like this error:
1:1 error Definition for rule 'no-async-promise-executor' was not found no-async-promise-executor
1:1 error Definition for rule 'no-misleading-character-class' was not found no-misleading-character-class
1:1 error Definition for rule 'no-useless-catch' was not found no-useless-catch
but the rules is used for Promise,not for the situation,my javascript is just es6 grammar like import/export.so i think it maybe a bug,because it get wrong notice.
I had view the update log of this,it add these rules above the 13.0 version.
so I turn off the rule in my eslintrc.js ,like this:
'no-async-promise-executor' : 'off',
'no-misleading-character-class' : 'off',
'no-useless-catch' : 'off'

or i reload the npm of lower version.
it can works. the wrong notice is gone.

What did you expect to happen?
i want the correct notice,if it has no error,it should not show the error notice

Are you willing to submit a pull request to fix this bug?
no.

I wish the question can be resolved, tks!

Hi, @Wayne529 and thank you for using Standard. Could you please share the version of the package eslint in your project by running $ npm ls eslint?

image
got the same problem @mightyiam

@woowalker could I see the error, please?

image

image

@mightyiam sorry for late reply

means that upgrade ESLint to v5 can get rid of this error ? @mightyiam

@woowalker yes, it should.

@mightyiam ok thanks