mdjermanovic on noextendnative-es2021
Update: report es2021 globals i… (compare)
Thanks @ilyavolodin this was what I was looking for... overlooked in the documentation...
Another query as followup to above response, is there a way I can configure eslint lint to warn for one configuration and error for another configuration...
I am looking for something like max-lines
should warn if between 250 - 500 lines and error is file has more than 500 lines.
I can write a custom rule for max line ranges, however, does eslint have an option to switch between warn
and error
based on config? should this be requested as a feature or does not make sense at all.
.eslintrc.js#overrides[2] » plugin:@typescript-eslint/recommended
.eslintrc.js#overrides[2]
.eslintrc.js#overrides[3] » plugin:@typescript-eslint/recommended
Hi
I still can not see answer for problem with eslint and "@babel/plugin-proposal-optional-chaining"
"Hi, I installed "@babel/plugin-proposal-optional-chaining": "^7.6.0", and added to .eslintrc.json"
with this error: ESLint couldn't find the plugin "@babel/eslint-plugin-plugin-proposal-optional-chaining".
@babel/plugin-proposal-optional-chaining
install that too?
eslint-plugin-optional-chaining
to the plugin section of your config? or did eslint just infer that it should be there when you installed the babel plugin? (i don't use babel so just feeling around in the dark here to try to understand why it's looking for the plugin)