Skip to content

Commit

Permalink
Add and apply Prettier and PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrckvzn committed Oct 1, 2021
1 parent 93bbac8 commit 91f7f96
Show file tree
Hide file tree
Showing 11 changed files with 885 additions and 119 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/vendor
.php-cs-fixer.cache
5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
trailingComma: none
printWidth: 80
tabWidth: 2
useTabs: false
singleQuote: true
requirePragma: false
insertPragma: false
semi: false

# php
phpVersion: '7.4'
trailingCommaPHP: true
braceStyle: 'psr-2'

overrides:
- files: '*.php'
options:
tabWidth: 4
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"psr-4": {
"A17\\Twill\\Image\\": "src/"
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0"
}
}
Loading

0 comments on commit 91f7f96

Please sign in to comment.