]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Improve prettier scripts and documentation 22994/head
authorTiago Melo <tspmelo@gmail.com>
Wed, 11 Jul 2018 16:25:05 +0000 (17:25 +0100)
committerTiago Melo <tspmelo@gmail.com>
Thu, 26 Jul 2018 12:42:55 +0000 (13:42 +0100)
commit2796f921d677be70d094a658f6e40501e4bdd7b3
tree483b627048287803a524b2b6c6ea89d543dcf646
parent6a4bf5eca6642dce6afcf92bbf695acad39a0c02
mgr/dashboard: Improve prettier scripts and documentation

Added prettier validation to the run-frontend-unittests script. This will make
sure we are always running prettier in our commits.

Added 2 new npm scripts:
- 'prettier', will run prettier formatter on all frontend files
- 'prettier:lint', will check all frontend files against prettier linter

Removed 'pretty-quick' and related scripts. Since we now have all files
prettified we can simply run prettier on them.

Remove 'tslint-eslint-rules' package and all related rules. Prettier can check
all the removed rules.

Updated HACKING.rst with some information about prettier.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/HACKING.rst
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/frontend/tslint.json
src/pybind/mgr/dashboard/run-frontend-unittests.sh