Skip to content

Commit

Permalink
feat(release): make this a real package
Browse files Browse the repository at this point in the history
installed all out automatic tools to make this deploy on releases and stuff like that
  • Loading branch information
thatkookooguy committed Nov 25, 2021
1 parent 74ac9a3 commit 2d51464
Show file tree
Hide file tree
Showing 16 changed files with 39,887 additions and 21,908 deletions.
31 changes: 31 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"projectName": "gitflow-hotfix",
"projectOwner": "Kibibit",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"badgeTemplate": "<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg?style=flat-square\" alt=\"All Contributors\"></a>",
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "Thatkookooguy",
"name": "Neil Kalman",
"avatar_url": "https://avatars3.githubusercontent.com/u/10427304?v=4",
"profile": "http://thatkookooguy.kibibit.io/",
"contributions": [
"code",
"doc",
"design",
"maintenance",
"infra",
"test"
]
}
],
"contributorsPerLine": 7,
"skipCi": true
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist/
lib/
node_modules/
jest.config.js
commitlint.config.js
.eslintrc.js
187 changes: 187 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
module.exports = {
plugins: [
'jest',
// '@typescript-eslint',
'@typescript-eslint/eslint-plugin',
'unused-imports',
'simple-import-sort',
'import'
],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
// 'plugin:github/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
project: [ './tsconfig.json' ]
},
rules: {
'unused-imports/no-unused-imports': 'error',
'simple-import-sort/imports': ['error', {
groups: [
// 1. built-in node.js modules
[`^(${require('module').builtinModules.join('|')})(/|$)`],
// 2.1. package that start without @
// 2.2. package that start with @
['^\\w', '^@\\w'],
// 3. @nestjs packages
['^@nestjs\/'],
// 4. @kibibit external packages
['^@kibibit\/'],
// 5. Internal kibibit packages (inside this project)
['^@kb-'],
// 6. Parent imports. Put `..` last.
// Other relative imports. Put same-folder imports and `.` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
// 7. Side effect imports.
// https://riptutorial.com/javascript/example/1618/importing-with-side-effects
['^\\u0000']
]
}],
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'eol-last': [ 2, 'windows' ],
'comma-dangle': [ 'error', 'never' ],
'max-len': [ 'error', { 'code': 80, 'ignoreComments': true } ],
'quotes': ['error', 'single'],
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
'selector': 'interface',
'format': ['PascalCase'],
'custom': {
'regex': '^I[A-Z]',
'match': true
}
}
],
'semi': 'off',
'@typescript-eslint/semi': ['error'],
'space-infix-ops': 'error',
'array-bracket-newline': 'off',
'array-bracket-spacing': [ 'error', 'always' ],
'array-element-newline': 'off',
'block-spacing': [ 'error', 'always' ],
'brace-style': [ 'error', '1tbs', {
'allowSingleLine': true
} ],
'camelcase': [ 'error', {
'properties': 'never'
} ],
'comma-dangle': [ 'error', 'never' ],
'comma-spacing': [ 'error', {
'after': true,
'before': false
} ],
'comma-style': 'error',
'computed-property-spacing': 'error',
'curly': [ 'error', 'multi-line' ],
'eol-last': 'error',
'func-call-spacing': 'error',
'indent': [ 'error', 2, {
'CallExpression': {
'arguments': 1
},
'FunctionDeclaration': {
'body': 1,
'parameters': 1
},
'FunctionExpression': {
'body': 1,
'parameters': 1
},
'ignoredNodes': [ 'ConditionalExpression' ],
'MemberExpression': 1,
'ObjectExpression': 1,
'SwitchCase': 1
} ],
'key-spacing': 'error',
'keyword-spacing': 'error',
'linebreak-style': 'error',
'max-len': [ 'error', {
// starting small (forcing 120), but later we should force 80
code: 120,
ignoreComments: true,
ignoreUrls: true,
ignoreStrings: true,
tabWidth: 2
} ],
'no-array-constructor': 'error',
'no-caller': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-invalid-this': 'error',
'no-irregular-whitespace': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': 'error',
'no-multi-str': 'error',

'no-multiple-empty-lines': [ 'error', {
max: 2
} ],
'no-new-object': 'error',
'no-new-wrappers': 'error',
'no-tabs': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-unused-vars': [ 'error', {
args: 'none'
} ],

'no-with': 'error',
'object-curly-spacing': [ 'error', 'always' ],
'one-var': [ 'error', {
const: 'never',
let: 'never',
var: 'never'
} ],
'operator-linebreak': [ 'error', 'after' ],
'padded-blocks': [ 'error', 'never' ],
'prefer-promise-reject-errors': 'error',
'quotes': [ 'error', 'single', {
allowTemplateLiterals: true
} ],
'semi': [ 'error' ],
'semi-spacing': 'error',
'space-before-blocks': 'error',
'space-before-function-paren': [ 'error', {
asyncArrow: 'always',
anonymous: 'never',
named: 'never'
} ],
'spaced-comment': [ 'error', 'always' ],
'switch-colon-spacing': 'error',
'arrow-parens': [ 'error', 'always' ],
'constructor-super': 'error', // eslint:recommended
'generator-star-spacing': [ 'error', 'after' ],
'no-new-symbol': 'error', // eslint:recommended
'no-this-before-super': 'error', // eslint:recommended
'no-var': 'error',
'prefer-const': [ 'error', { destructuring: 'all' } ],
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'rest-spread-spacing': 'error',
'yield-star-spacing': [ 'error', 'after' ],
'no-await-in-loop': 'warn',
'no-unreachable-loop': 'error',
'require-atomic-updates': 'error',
'dot-notation': 'error',
'require-await': 'warn',
'no-undefined': 'error',
'line-comment-position': [ 'error', { position: 'above' } ],
'template-curly-spacing': [ 'error', 'always' ]
},
env: {
node: true,
es6: true,
'jest/globals': true
}
};
55 changes: 0 additions & 55 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
dist/
lib/

# Dependency directory
node_modules

Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 3 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
. "$(dirname "$0")/_/husky.sh"
exec < /dev/tty && node_modules/.bin/cz --hook || true

0 comments on commit 2d51464

Please sign in to comment.