Skip to content

Commit ac6e2b0

Browse files
committed
add npm run clean
1 parent ba2ab76 commit ac6e2b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Once you have babel running in watch mode, you can start making changes to parse
114114
* Take testing seriously! Aim to increase the test coverage with every pull request. To obtain the test coverage of the project, run: `npm run coverage`
115115
* Run the tests for the file you are working on with the following command: `npm test spec/MyFile.spec.js`
116116
* Run the tests for the whole project to make sure the code passes all tests. This can be done by running the test command for a single file but removing the test file argument. The results can be seen at *<PROJECT_ROOT>/coverage/lcov-report/index.html*.
117-
* Format your code by running `npm run prettier` followed by `npm run lint-fix`.
117+
* Format your code by running `npm run clean`.
118118
* Lint your code by running `npm run lint` to make sure the code is not going to be rejected by the CI.
119119
* **Do not** publish the *lib* folder.
120120
* Mocks belong in the `spec/support` folder.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
},
102102
"scripts": {
103103
"ci:check": "node ./resources/ci/ciCheck.js",
104+
"clean": "npm run prettier && npm run lint-fix",
104105
"definitions": "node ./resources/buildConfigDefinitions.js && prettier --write 'src/Options/*.js'",
105106
"docs": "jsdoc -c ./jsdoc-conf.json",
106107
"lint": "flow && eslint --cache ./",

0 commit comments

Comments
 (0)