Skip to content

Commit

Permalink
chore: add eslint and prettier (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker authored Jan 28, 2022
1 parent c7f25e5 commit c09ba21
Show file tree
Hide file tree
Showing 9 changed files with 915 additions and 38 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.eslintrc.js
src/libs/kontra.js
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
env: {
node: true,
es2021: true
},
parserOptions: {
ecmaVersion: 12
},
extends: 'eslint:recommended',
rules: {
'no-debugger': 0,
'no-inner-declarations': 0
}
};
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 80,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid"
}
Loading

0 comments on commit c09ba21

Please sign in to comment.