Skip to content

Commit

Permalink
lint: add pretty config and script
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Sep 8, 2019
1 parent 88c90d6 commit 21baa9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dev-sync": "cp -r deviceinfo* *podspec windows web android ios example/node_modules/react-native-device-info/",
"flow-check": "npx flow check-contents < deviceinfo.js.flow",
"lint": "npx eslint ./ --ignore-pattern example --ignore-pattern node_modules --fix --quiet",
"pretty": "prettier --write deviceinfo.js",
"shipit": "np",
"ts-check": "npx tsc deviceinfo.d.ts --noEmit",
"precommit": "lint-staged && yarn analyze"
Expand Down

0 comments on commit 21baa9c

Please sign in to comment.