Merge 62a9576554 into 1da6473420
This commit is contained in:
commit
4a5c5a0c6e
2 changed files with 15 additions and 1 deletions
13
README.md
13
README.md
|
|
@ -33,6 +33,19 @@ ln -s `pwd`/dist ~/.local/share/cockpit/starter-kit
|
||||||
After changing the code and running `make` again, reload the Cockpit page in
|
After changing the code and running `make` again, reload the Cockpit page in
|
||||||
your browser.
|
your browser.
|
||||||
|
|
||||||
|
# Running eslint
|
||||||
|
|
||||||
|
This plugin uses [ESLint](https://eslint.org/) to automatically check
|
||||||
|
JavaScript code style in `.jsx` and `.es6` 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
|
||||||
|
|
||||||
|
Rules configuration can be found in the `.eslintrc.json` file.
|
||||||
|
|
||||||
# Automated Testing
|
# Automated Testing
|
||||||
|
|
||||||
Run `make check` to build an RPM, install it into a standard Cockpit test VM
|
Run `make check` to build an RPM, install it into a standard Cockpit test VM
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "LGPL-2.1",
|
"license": "LGPL-2.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack"
|
"build": "webpack",
|
||||||
|
"eslint": "eslint --ext .jsx --ext .es6 ."
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.0.0",
|
"@babel/core": "^7.0.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue