Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
feat: adding eslint standard and hook on pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian committed Oct 8, 2021
1 parent 612e408 commit f14b92a
Show file tree
Hide file tree
Showing 5 changed files with 2,415 additions and 9,354 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.vscode
node_modules
test
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": ["standard"],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-extra-semi": "off",
"semi": "off"
}
}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
Loading

0 comments on commit f14b92a

Please sign in to comment.