Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .depcheckrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ignores: [ "@graphql-codegen/cli", "@graphql-codegen/client-preset", "@graphql-typed-document-node/core", "@ianvs/prettier-plugin-sort-imports", "jest-environment-jsdom", "react-dom", "terraso-client-shared", "terraso-backend" ]
ignores: [ "@commitlint/config-conventional", "@commitlint/cli", "@graphql-codegen/cli", "@graphql-codegen/client-preset", "@graphql-typed-document-node/core", "@ianvs/prettier-plugin-sort-imports", "jest-environment-jsdom", "react-dom", "terraso-client-shared", "terraso-backend" ]
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
npx --no-install commitlint --edit "$1"
2 changes: 2 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
npm ci
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ lint:

format:
npm run format-js

setup-git-hooks:
@cp scripts/commit-msg.sample .git/hooks/commit-msg
@echo "git hooks installed"
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# terraso-client-shared
Code that is shared between multiple Terraso clients.

## Contributing

Before contributing to the project, it's recommended that you set up
your local git running the following command:

```sh
$ make setup-git-hooks
```

This will activate two git hooks to automatically check JavaScript code
style and commit message structure before each commit.
Code that is shared between multiple Terraso clients.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
Loading