简体   繁体   中英

PhpStorm going mad highlighting JS syntax

My PhpStorm installation is highlighting my JS files for syntax ( JSLint ). It is not recognizing functions in other JS files within the project. The PHP side is OK.

JSHint: 'result' is not defined W110
JSLINT: Expected "" and instead found ""

Those are some of the errors I am seeing. How do I reset the JS syntax checker to default?

If you don't like your code being linted with JSHint/JSLint, please try disabling them in Settings | Languages & Frameworks | JavaScript | Code Quality Tools Settings | Languages & Frameworks | JavaScript | Code Quality Tools Settings | Languages & Frameworks | JavaScript | Code Quality Tools : clear Enable checkboxes in JSLint and JSHint pages. Otherwise, you have to change linters configuration to match your setup: add 'result'and other global vars to 'Predefined' in Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint, 'Predefined (,separated)' Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint, 'Predefined (,separated)' Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint, 'Predefined (,separated)' , etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM