-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
16,910 additions
and
611 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,42 @@ | ||
{ | ||
"projectName": "kb-error", | ||
"projectOwner": "ZimGil", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 100, | ||
"commit": true, | ||
"commitConvention": "angular", | ||
"contributors": [ | ||
{ | ||
"login": "ZimGil", | ||
"name": "Gil Tichon", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/39461857?v=4", | ||
"profile": "https://github.com/ZimGil", | ||
"contributions": [ | ||
"code" | ||
] | ||
}, | ||
{ | ||
"login": "ortichon", | ||
"name": "O T", | ||
"avatar_url": "https://avatars0.githubusercontent.com/u/10263615?v=4", | ||
"profile": "https://github.com/ortichon", | ||
"contributions": [ | ||
"code" | ||
] | ||
}, | ||
{ | ||
"login": "Thatkookooguy", | ||
"name": "Neil Kalman", | ||
"avatar_url": "https://avatars3.githubusercontent.com/u/10427304?v=4", | ||
"profile": "http://thatkookooguy.kibibit.io/", | ||
"contributions": [ | ||
"code" | ||
] | ||
} | ||
], | ||
"contributorsPerLine": 7 | ||
} |
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 @@ | ||
coverage | ||
test-results | ||
node_modules | ||
jest.config.js |
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,117 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"es2021": true, | ||
"jest/globals": true | ||
}, | ||
"plugins": ["jest"], | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"accessor-pairs": "error", | ||
"no-unused-vars": "error", | ||
"default-case": "error", | ||
"eqeqeq": "error", | ||
"no-extend-native": "error", | ||
"curly": [ | ||
2, | ||
"all" | ||
], | ||
"operator-linebreak": [ | ||
2, | ||
"after" | ||
], | ||
"camelcase": [ | ||
2, | ||
{ | ||
"properties": "always" | ||
} | ||
], | ||
"max-len": [ | ||
2, | ||
80 | ||
], | ||
"indent": [ | ||
2, | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"quotes": [ | ||
2, | ||
"single" | ||
], | ||
"no-multi-str": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"no-trailing-spaces": 2, | ||
"space-unary-ops": [ | ||
2, | ||
{ | ||
"nonwords": false, | ||
"overrides": {} | ||
} | ||
], | ||
"one-var": [ | ||
2, | ||
{ | ||
"uninitialized": "always", | ||
"initialized": "never" | ||
} | ||
], | ||
"brace-style": [ | ||
2, | ||
"1tbs", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"keyword-spacing": [ | ||
2, | ||
{} | ||
], | ||
"space-infix-ops": 2, | ||
"space-before-blocks": [ | ||
2, | ||
"always" | ||
], | ||
"eol-last": 2, | ||
"space-before-function-paren": [ | ||
2, | ||
{ | ||
"anonymous": "ignore", | ||
"named": "never" | ||
} | ||
], | ||
"array-bracket-spacing": [ | ||
2, | ||
"never", | ||
{ | ||
"singleValue": true | ||
} | ||
], | ||
"space-in-parens": [ | ||
2, | ||
"never" | ||
], | ||
"no-multiple-empty-lines": 2, | ||
"no-with": 2, | ||
"no-spaced-func": 2, | ||
"key-spacing": [ | ||
2, | ||
{ | ||
"beforeColon": false, | ||
"afterColon": true | ||
} | ||
], | ||
"dot-notation": 2, | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"valid-jsdoc": 2 | ||
} | ||
} |
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,34 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# ESLint and Prettier must be in `package.json` | ||
- name: Install Node.js dependencies | ||
run: npm install | ||
|
||
- name: Run linters | ||
uses: wearerequired/lint-action@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Enable linters | ||
eslint: 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,25 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npx semantic-release |
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
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# kibibit | ||
test-results | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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
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 |
---|---|---|
@@ -1,2 +1,52 @@ | ||
# KbError | ||
Error class for Kibibit projects | ||
<p align="center"> | ||
<a href="https://github.com/Kibibit/announce-it" target="blank"><img src="kb-error.png" width="150" ></a> | ||
<h2 align="center"> | ||
@kibibit/kb-error | ||
</h2> | ||
</p> | ||
<p align="center"> | ||
<a href='https://coveralls.io/github/Kibibit/kb-error'><img src='https://coveralls.io/repos/github/Kibibit/kb-error/badge.svg' alt='Coverage Status' /></a> | ||
</p> | ||
<p align="center"> | ||
Basic erorr class for kibibit projects | ||
</p> | ||
<hr> | ||
|
||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
## How to install | ||
<!-- FILL THIS OUT --> | ||
|
||
## How to use | ||
<!-- FILL THIS OUT --> | ||
|
||
## Contributing | ||
|
||
If you have suggestions for how announce-it could be improved, or want to report a bug, open an issue! We'd love all and any contributions. | ||
|
||
For more, check out the [Contributing Guide](CONTRIBUTING.md). | ||
|
||
## Contributors | ||
|
||
Thanks goes to our contributors! ([emoji key](https://allcontributors.org/docs/en/emoji-key)): | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tr> | ||
<td align="center"><a href="https://github.com/ZimGil"><img src="https://avatars3.githubusercontent.com/u/39461857?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gil Tichon</b></sub></a><br /><a href="https://github.com/ZimGil/kb-error/commits?author=ZimGil" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/ortichon"><img src="https://avatars0.githubusercontent.com/u/10263615?v=4?s=100" width="100px;" alt=""/><br /><sub><b>O T</b></sub></a><br /><a href="https://github.com/ZimGil/kb-error/commits?author=ortichon" title="Code">💻</a></td> | ||
<td align="center"><a href="http://thatkookooguy.kibibit.io/"><img src="https://avatars3.githubusercontent.com/u/10427304?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Neil Kalman</b></sub></a><br /><a href="https://github.com/ZimGil/kb-error/commits?author=Thatkookooguy" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
|
||
## License | ||
|
||
[MIT](LICENSE) © 2020 Gil Tichon <ZimGil@kibibit.io> | ||
|
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,21 @@ | ||
module.exports = { | ||
extends: [ '@commitlint/config-angular' ], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', [ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test' | ||
] | ||
] | ||
} | ||
}; |
Oops, something went wrong.