]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Update CONTRIBUTING.md (#5579)
authorAlan Wang <wp_scut@163.com>
Thu, 4 Jun 2020 07:07:59 +0000 (15:07 +0800)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2020 07:07:59 +0000 (00:07 -0700)
CONTRIBUTING.md

index 924b05bd6e23ba490ceb56ec46aa4a707a2681b5..45fc3d43432b0d14f32105a8d8a9859438944d46 100644 (file)
@@ -47,7 +47,7 @@ cd moment
 npm install -g grunt-cli
 npm install
 git checkout develop  # all patches against develop branch, please!
-grunt                 # this runs tests and jshint
+grunt                 # this runs tests, eslint and prettier-check
 ```
 
 Changing locale files
@@ -68,12 +68,15 @@ Grunt tasks
 We use Grunt for managing the build. Here are some useful Grunt tasks:
 
   * `grunt` The default task lints the code and runs the tests. You should make sure you do this before submitting a PR.
-  * `grunt test` run the tests.
+  * `grunt test` Run the tests.
+  * `grunt lint` Perform syntax and code style checks.
   * `grunt release` Build everything, including minified files (do not include
     those in Pull Requests)
   * `grunt transpile:fr,ru` Build custom locale bundles `moment-with-locales.custom.js` and `locales.custom.js` inside `build/umd/min` containing just French and Russian.
   * `grunt size` Print size statistics.
 
+**Note:** If the prompt message is `Code style issues found in the above file(s). Forgot to run Prettier?`, Please run `npm run prettier-fmt`. 
+
 Becoming a moment team member
 =============================