Skip to content

Commit

Permalink
build: make Prettier prettier (covidatlas#210)
Browse files Browse the repository at this point in the history
* added pretty command
* added comment about defaults
* line length = 120
* yarn.lock updates

Co-authored-by: Larry Davis <[email protected]>
  • Loading branch information
hyperknot and lazd authored Mar 21, 2020
1 parent a723362 commit 73ce3f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# http://editorconfig.org
# defaults: https://github.com/editorconfig/editorconfig-defaults/blob/master/.editorconfig

root = true

[*]
charset = utf-8
quote_type = single
max_line_length = 500
max_line_length = 120
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/coronadatascraper-cache
/coronavirus-data-sources
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"test": "FILES_MODIFIED=$(git diff --name-only HEAD) jest",
"timeseries": "node timeseries.js",
"update": "npm run updateModules && rm -rf cache/* && npm run start",
"updateModules": "git submodule update --remote"
"updateModules": "git submodule update --remote",
"pretty": "prettier --write --single-quote '**/*.js'"
},
"dependencies": {
"@adobe/focus-ring-polyfill": "^0.1.5",
Expand Down

0 comments on commit 73ce3f7

Please sign in to comment.