Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Npm run format (prettier + eslint --fix + fixpack)
Browse files Browse the repository at this point in the history
  • Loading branch information
motin committed Mar 10, 2018
1 parent b8e61db commit a8b11d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# do not lint/format generated artifacts
dist/
package-lock.json
# makes sure that eslintrc.js gets linted/formatted
!.eslintrc.js
# don't lint/format package.json since npm install formats it differently by default
package.json
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"build-test-addon-xpi": "./bin/make_xpi.sh",
"dist": "webpack",
"eslint": "eslint src --ext jsm --ext js --ext json",
"eslint-fix": "npm run eslint -- --fix",
"format": "prettier '**/*.{css,js,jsm,json,md}' --trailing-comma=all --ignore-path=.eslintignore --write",
"postformat": "npm run eslint-fix && fixpack",
"predist": "npm run eslint",
"prepack": "fixpack && npm run dist",
"pretest": "npm run dist && npm run build-test-addon-xpi",
Expand Down

0 comments on commit a8b11d8

Please sign in to comment.