I have a dot net core 2 web project. Recently, thousands of errors for all javascript equalities (==) and semicolons have been appeared due to ESLint. How can I get rid of these errors? Please help!
Asked
Active
Viewed 2,191 times
-2
-
You should check https://eslint.org/docs/rules/semi#require-or-disallow-semicolons-instead-of-asi-semi and https://eslint.org/docs/rules/eqeqeq – laruiss Sep 15 '18 at 20:32
-
It's hard to help you with the little information you provide. If there is a package.json, remove all the eslint dependencies. If there are scripts defined in the package.json that run eslint, remove then, If there is a .eslintrc and/or .eslintignore file in the project's root, delete them. Then check the configuration menus of your IDE (Visual Studio?) for eslint configuration and disable it. – Patrick Hund Sep 15 '18 at 20:32
2 Answers
0
You have four options:
- Uninstall eslint. If you don't want to see eslint errors or follow it's rules (configurable) then there is no point in using it.
- Ignore eslint errors.
- Disable/configure the eslint's
eqeqeq
andsemi
rules! Check eslint's getting started for more details. - Refactor your code, e.g. use
===
instead of==
.

Ram
- 143,282
- 16
- 168
- 197
0
ESLint is a tool which allows us to write clean, optimized, organized & valid JavaScript code by following a set of rules or coding guidelines.
ESLint has already been integrated in Visual Studio 2017 by Microsoft. You can enable or disable it as per your project requirement.
You could refer to here

Xueli Chen
- 11,987
- 3
- 25
- 36