Skip to content

Commit

Permalink
Merge 335e691 into 3e2b929
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed Nov 11, 2020
2 parents 3e2b929 + 335e691 commit f6e3c80
Show file tree
Hide file tree
Showing 17 changed files with 16,910 additions and 611 deletions.
42 changes: 42 additions & 0 deletions .all-contributorsrc
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
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
test-results
node_modules
jest.config.js
117 changes: 117 additions & 0 deletions .eslintrc.json
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
}
}
34 changes: 34 additions & 0 deletions .github/workflows/eslint.yml
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
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
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
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

name: Run Tests

on: push
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
Expand All @@ -23,3 +29,7 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# kibibit
test-results

# Logs
logs
*.log
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 kibibit
Copyright (c) 2020 kibibit

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
54 changes: 52 additions & 2 deletions README.md
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>

21 changes: 21 additions & 0 deletions commitlint.config.js
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'
]
]
}
};

0 comments on commit f6e3c80

Please sign in to comment.