Skip to content

Commit

Permalink
Add prettier and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
theimbender committed Feb 15, 2021
1 parent 885e488 commit 1b5ce0f
Show file tree
Hide file tree
Showing 12 changed files with 2,697 additions and 238 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
views/build/
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"sourceType": "module"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
/.phpunit.result.cache
/composer.phar
/phpunit.xml
/clover.xml
/satis.phar
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
views/build/
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@
"branch-alias": {
"dev-main": "2.0-dev"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
}
}
Loading

0 comments on commit 1b5ce0f

Please sign in to comment.