Skip to content

Commit

Permalink
refactor: prettier setup
Browse files Browse the repository at this point in the history
  • Loading branch information
anmostovoy committed Feb 12, 2020
1 parent 84a7671 commit 14d7fca
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 146 deletions.
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
dist
npm
.cache
.nyc_output
.*
*.log
*.md
*.json
benchmark
browser-test
rollup.config.js
21 changes: 14 additions & 7 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"parser": "typescript",
"useTabs": true,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"printWidth": 120
"overrides": [
{
"files": "*.{js,jsx,ts,tsx}",
"options": {
"parser": "typescript",
"useTabs": true,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"printWidth": 120
}
}
]
}
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ notifications:
email: false

node_js:
- '12'
- "12"

jobs:
include:
Expand Down Expand Up @@ -34,4 +34,3 @@ jobs:
provider: script
skip_cleanup: true
script: sh scripts/deploy.sh $TRAVIS_TAG

Loading

0 comments on commit 14d7fca

Please sign in to comment.