Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 716 Bytes

HACKING.md

File metadata and controls

26 lines (15 loc) · 716 Bytes

Hacking on Cockpit Machines

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.

Running eslint

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.