Skip to content

Commit

Permalink
style: add pre-commit hooks to run eslint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JaviIG authored Oct 15, 2021
1 parent 039d524 commit 3acc741
Show file tree
Hide file tree
Showing 72 changed files with 149,207 additions and 152,875 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
root: true,
extends: ['plugin:@empathyco/x/recommended'],
ignorePatterns: [
'**/*.d.ts',
'**/*.js',
'**/jest.setup.ts',
'**/dist',
'packages/search-adapter',
'packages/eslint-plugin-x'
],
parserOptions: {
tsconfigRootDir: __dirname,
project: './packages/**/tsconfig.eslint.json'
}
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.eslintcache
.DS_Store
**/node_modules
**/dist
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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"

npx lint-staged
Loading

0 comments on commit 3acc741

Please sign in to comment.