Here's where to get the code:
$ git clone https://github.com/cockpit-project/cockpit-machines
$ cd cockpit-machines
The remainder of the commands assume you're in the top level of the Cockpit Machines git repository checkout.
Cockpit Machines uses ESLint to automatically check
JavaScript code style in .jsx
and .js
files.
The linter is executed within every build as a webpack preloader.
For developer convenience, the ESLint can be started explicitly by:
$ npm run eslint
Violations of some rules can be fixed automatically by:
$ npm run eslint:fix
Rules configuration can be found in the .eslintrc.json
file.