Skip to content

Commit

Permalink
Use Yaml format and lintstagedrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Apr 10, 2018
1 parent b960778 commit c4f3e6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"src/**/*.php":
- "yarn run prettier --write"
- "vendor/bin/php-cs-fixer fix --config=.php_cs"
- "git add"

"Tests/**/*.php":
- "vendor/bin/php-cs-fixer fix --config=.php_cs"
- "git add"
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,5 @@
},
"scripts": {
"precommit": "lint-staged"
},
"lint-staged": {
"src/**/*.php": [
"yarn run prettier --write",
"vendor/bin/php-cs-fixer fix --config=.php_cs",
"git add"
],
"Tests/**/*.php": [
"vendor/bin/php-cs-fixer fix --config=.php_cs",
"git add"
]
}
}

0 comments on commit c4f3e6d

Please sign in to comment.