Skip to content

Commit

Permalink
Merge 0064e6c into ef64bda
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Nov 24, 2020
2 parents ef64bda + 0064e6c commit 3a0bd85
Show file tree
Hide file tree
Showing 19 changed files with 13,774 additions and 23 deletions.
File renamed without changes.
14 changes: 8 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
quote_type = single
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = spaces
indent_size = 2

[package.json]
[{package.json,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*,*.ts}]
indent_size = 2

[{changelog.md,.*}]
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm i
run: npm ci

- name: Run tests
run: npm run test
Expand Down
7 changes: 7 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hooks": {
"pre-push": "npm t",
"pre-commit": "lint-staged",
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": "standard --env mocha"
}
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=false

File renamed without changes.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ class PostHTML {
? tree || []
: parser(tree, options)

tree = [].concat(tree)

// sync mode
if (options.sync === true) {
this.plugins.forEach((plugin, index) => {
Expand Down
File renamed without changes.

0 comments on commit 3a0bd85

Please sign in to comment.