-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added CONTRIBUTING.md file * Added source code formatter and linter * Configured Visual Studio Code settings * Added git pre-commit hook
- Loading branch information
1 parent
4a3a6d6
commit 8ace021
Showing
16 changed files
with
1,558 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package.json | ||
package-lock.json | ||
node_modules/ | ||
stories/ | ||
dist/ | ||
.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"embeddedLanguageFormatting": "auto", | ||
"endOfLine": "lf", | ||
"insertPragma": false, | ||
"proseWrap": "preserve", | ||
"requirePragma": false, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"trailingComma": "es5", | ||
"useTabs": false, | ||
"printWidth": 100 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 2, | ||
"editor.detectIndentation": false, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"files.eol": "\n", | ||
"files.insertFinalNewline": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Contributing to SSGulnur | ||
|
||
Please use this guide while contributing to the SSGulnur project. | ||
|
||
## Welcome | ||
|
||
Thank you for your intention to contribute to this project! Every contribution is welcome, important and is very appreciated. | ||
|
||
## Issues | ||
|
||
You can work on any issue (assuming someone is not already working on it) in this project or can create a new issue if you have an idea that was not already documented. Please leave a comment letting other contributors know that you are starting to explore the issue and will be working on its solution. | ||
|
||
## Set-up and contribution | ||
|
||
If you are working on one of the issues, you will need to set-up SSGulnur locally. | ||
|
||
VSCode is preferred editor, as the recommended extensions will be downloaded automatically. | ||
|
||
1. Fork this project, to have your own copy where you would be able to freely make changes. | ||
2. Clone the forked repo to your local machine. | ||
3. Run npm to install the tool globally `npm install -g`. | ||
4. Create a new branch with a descriptive name such as issue-123. | ||
5. Work on that branch and make all required changes to complete the issue. | ||
6. Test you work, run the tool in your terminal. | ||
- run `npm run lint` and `npm run prettier-check` to check your code for styling issues or bugs. | ||
7. Commit regularly. | ||
7. When you are done, push your work and request a pull to the `main` branch. | ||
|
||
Please follow [conventional commit messages convention](https://www.conventionalcommits.org/en/v1.0.0/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.