Skip to content

Commit

Permalink
feat(prettier): add YAML support (#239)
Browse files Browse the repository at this point in the history
Prettier 1.14.0 adds YAML support.
(https://prettier.io/blog/2018/07/29/1.14.0.html)
  • Loading branch information
ybiquitous authored Aug 11, 2018
1 parent c4ac79c commit 461f7d1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ rules:
required_approving_review_count: 1
required_status_checks:
contexts:
- continuous-integration/travis-ci
- continuous-integration/travis-ci
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ cache:

before_install:
# `npm ci` is available since npm@5.7.0
- if ruby -e "exit(1) if Gem::Version.new(ARGV[0]) >= Gem::Version.new('5.7.0')" $(npm -v); then
npm i -g npm@latest;
fi
- if ruby -e "exit(1) if Gem::Version.new(ARGV[0]) >= Gem::Version.new('5.7.0')" $(npm -v); then npm i -g npm@latest; fi

before_script:
- commitlint-travis
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
"prettier --write",
"markdownlint",
"git add"
],
"*.{yml,yaml}": [
"prettier --write",
"git add"
]
},
"ignore": [
Expand Down
4 changes: 2 additions & 2 deletions sideci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ linter:
eslint:
npm_install: true
options:
ignore-path: '.gitignore'
ext: '.js,.jsx,.mjs'
ignore-path: ".gitignore"
ext: ".js,.jsx,.mjs"
4 changes: 4 additions & 0 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"prettier --write",
"markdownlint",
"git add"
],
"*.{yml,yaml}": [
"prettier --write",
"git add"
]
},
"ignore": [
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"prettier --write",
"markdownlint",
"git add"
],
"*.{yml,yaml}": [
"prettier --write",
"git add"
]
},
"ignore": [
Expand Down

0 comments on commit 461f7d1

Please sign in to comment.