Skip to content

Commit

Permalink
fix: pre-commit hook setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbhavir committed Oct 9, 2018
1 parent e289ac6 commit b0a99c2
Show file tree
Hide file tree
Showing 9 changed files with 528 additions and 71 deletions.
11 changes: 1 addition & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
{
"presets": [
[
"@babel/env",
{
"targets": {
"browsers": ["last 2 versions"]
}
}
]
],
"presets": ["@babel/env"],
"plugins": ["@babel/plugin-transform-runtime"]
}
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ module.exports = {
rules: {
"space-before-function-paren": ["error", "never"],
semi: ["error", "never"],
"no-underscore-dangle": 0
"no-underscore-dangle": 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// trailing comma
'comma-dangle': ['error', 'always-multiline'],
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
lib
dist
.DS_Store
*.log

Expand Down
Loading

0 comments on commit b0a99c2

Please sign in to comment.