WebThingsIO / wiki Public
Michael Stegeman edited this page
Feb 5, 2020
Clone this wiki locally
- You have cloned or forked the gateway
- You have installed PyCharm 2017.1 or later.
- PyCharm as the plugin Node.js integration, Vendor-JetBrains at version 171 or later.
Using the Correct Lint Tool
The Lint tool used for the WebThings project should be in your
/node_packages directory here:
To run the lint tool from the command line you could do:
$ npm run lint $ ### OR ### $ ./node_modules/eslint/bin/eslint.js .
Setting PyCharm to Use the Lint Tool
But you don't want to be bothered with all that hassle if you have a good IDE! Open PyCharm's settings: File -> Settings
- Enabled is checked
- ESLint package is set as:
- Select OK.