-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And fix linting issues
- Loading branch information
Showing
58 changed files
with
3,198 additions
and
1,981 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,15 @@ | ||
root=true | ||
|
||
[*] | ||
indent_style=space | ||
indent_size=4 | ||
tab_width=4 | ||
end_of_line=lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
insert_final_newline=true | ||
max_line_length=140 | ||
|
||
[*.{yaml, yml, json}] | ||
indent_size=2 | ||
tab_width=2 |
Empty file.
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,111 @@ | ||
env: | ||
node: true | ||
jest/globals: true | ||
es6: true | ||
extends: | ||
- plugin:@typescript-eslint/eslint-recommended | ||
- plugin:prettier/recommended | ||
- eslint:recommended | ||
parser: "@typescript-eslint/parser" | ||
plugins: | ||
- "@typescript-eslint" | ||
- jest | ||
rules: | ||
"@typescript-eslint/array-type": | ||
- error | ||
- default: array-simple | ||
"@typescript-eslint/await-thenable": error | ||
"@typescript-eslint/class-name-casing": error | ||
"@typescript-eslint/consistent-type-assertions": off | ||
"@typescript-eslint/consistent-type-definitions": | ||
- error | ||
- interface | ||
"@typescript-eslint/explicit-function-return-type": | ||
- error | ||
- allowExpressions: true | ||
allowHigherOrderFunctions: true | ||
allowTypedFunctionExpressions: true | ||
"@typescript-eslint/explicit-member-accessibility": error | ||
"@typescript-eslint/generic-type-naming": error | ||
"@typescript-eslint/member-delimiter-style": | ||
- error | ||
- multiline: | ||
delimiter: semi | ||
requireLast: true | ||
singleline: | ||
delimiter: semi | ||
requireLast: false | ||
"@typescript-eslint/member-ordering": | ||
- error | ||
- default: | ||
- field | ||
- constructor | ||
- method | ||
no-empty-function: off | ||
"@typescript-eslint/no-empty-function": off | ||
"@typescript-eslint/no-empty-interface": off | ||
"@typescript-eslint/no-explicit-any": off | ||
"@typescript-eslint/no-extra-parens": off | ||
"@typescript-eslint/no-extraneous-class": off | ||
"@typescript-eslint/no-floating-promises": error | ||
"@typescript-eslint/no-for-in-array": off | ||
"@typescript-eslint/no-inferrable-types": off | ||
no-magic-numbers: off | ||
"@typescript-eslint/no-magic-numbers": off | ||
"@typescript-eslint/no-misused-new": error | ||
"@typescript-eslint/no-misused-promises": error | ||
"@typescript-eslint/no-namespace": error | ||
"@typescript-eslint/no-non-null-assertion": off | ||
"@typescript-eslint/no-parameter-properties": error | ||
"@typescript-eslint/no-require-imports": off | ||
"@typescript-eslint/no-this-alias": off | ||
"@typescript-eslint/no-type-alias": off | ||
"@typescript-eslint/no-unnecessary-condition": error | ||
"@typescript-eslint/no-unnecessary-qualifier": error | ||
"@typescript-eslint/no-unnecessary-type-arguments": off | ||
"@typescript-eslint/no-unnecessary-type-assertion": error | ||
"@typescript-eslint/no-unused-vars": | ||
- error | ||
- varsIgnorePattern: ^ignored | ||
argsIgnorePattern: ^ignored | ||
caughtErrorsIgnorePattern: ^ignored | ||
"@typescript-eslint/no-use-before-define": error | ||
"@typescript-eslint/no-useless-constructor": error | ||
"@typescript-eslint/no-var-requires": off | ||
"@typescript-eslint/prefer-for-of": error | ||
"@typescript-eslint/prefer-function-type": error | ||
"@typescript-eslint/prefer-includes": error | ||
"@typescript-eslint/prefer-namespace-keyword": error | ||
"@typescript-eslint/prefer-readonly": error | ||
"@typescript-eslint/prefer-regexp-exec": error | ||
"@typescript-eslint/prefer-string-starts-ends-with": error | ||
"@typescript-eslint/promise-function-async": off | ||
"@typescript-eslint/require-array-sort-compare": off | ||
"@typescript-eslint/require-await": error | ||
"@typescript-eslint/restrict-plus-operands": error | ||
"@typescript-eslint/semi": off | ||
"@typescript-eslint/strict-boolean-expressions": off | ||
"@typescript-eslint/typedef": off | ||
"@typescript-eslint/unbound-method": | ||
- error | ||
- ignoreStatic: true | ||
"@typescript-eslint/unified-signatures": error | ||
indent: off | ||
linebreak-style: | ||
- error | ||
- unix | ||
quotes: | ||
- error | ||
- double | ||
- avoidEscape: true | ||
semi: | ||
- error | ||
- always | ||
no-dupe-class-members: off | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
sourceType: module | ||
project: ./tsconfig.eslint.json |
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 @@ | ||
# Install git-hooks | ||
|
||
You must configure your local git to activate the custom git-hooks location. | ||
|
||
```bash | ||
> git config core.hooksPath .githooks | ||
``` | ||
|
||
In case your git-client does not work with custom githooks locations (thanks git Kraken 😡), you have to execute the following in your repo | ||
root | ||
|
||
```bash | ||
> cp -R .githooks/dot-git/* .git/hooks/ | ||
``` |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
[[ "${DEBUG}" != "true" ]] || set -x | ||
|
||
if ! which realpath > /dev/null ; then | ||
echo "GNU coreutils are needed. If this is macOS, run 'brew install coreutils'." | ||
exit 1 | ||
fi | ||
|
||
SCRIPTS_DIR="scripts" | ||
export GIT_HOOKS="$( cd "$(dirname "$0")" ; pwd -P )" | ||
GIT_HOOKS_SCRIPTS="${GIT_HOOKS}/${SCRIPTS_DIR}" | ||
CURRENT_HOOK="commit-msg" | ||
|
||
for f in "${GIT_HOOKS_SCRIPTS}/${CURRENT_HOOK}/"*.sh ; do | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done | ||
|
||
for d in $(find "${GIT_HOOKS}/.." -mindepth 2 -type d -iname .githooks) ; do | ||
f="${d}/${CURRENT_HOOK}" | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done |
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 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
bash ".githooks/commit-msg" |
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 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
bash ".githooks/post-commit" |
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 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
bash ".githooks/pre-commit" |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
[[ "${DEBUG}" != "true" ]] || set -x | ||
|
||
if ! which realpath > /dev/null ; then | ||
echo "GNU coreutils are needed. If this is macOS, run 'brew install coreutils'." | ||
exit 1 | ||
fi | ||
|
||
SCRIPTS_DIR="scripts" | ||
export GIT_HOOKS="$( cd "$(dirname "$0")" ; pwd -P )" | ||
GIT_HOOKS_SCRIPTS="${GIT_HOOKS}/${SCRIPTS_DIR}" | ||
CURRENT_HOOK="post-commit" | ||
|
||
for f in "${GIT_HOOKS_SCRIPTS}/${CURRENT_HOOK}/"*.sh ; do | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done | ||
|
||
for d in $(find "${GIT_HOOKS}/.." -mindepth 2 -type d -iname .githooks) ; do | ||
f="${d}/${CURRENT_HOOK}" | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done |
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
[[ "${DEBUG}" != "true" ]] || set -x | ||
|
||
if ! which realpath > /dev/null ; then | ||
echo "GNU coreutils are needed. If this is macOS, run 'brew install coreutils'." | ||
exit 1 | ||
fi | ||
|
||
SCRIPTS_DIR="scripts" | ||
export GIT_HOOKS="$( cd "$(dirname "$0")" ; pwd -P )" | ||
GIT_HOOKS_SCRIPTS="${GIT_HOOKS}/${SCRIPTS_DIR}" | ||
CURRENT_HOOK="pre-commit" | ||
|
||
for f in "${GIT_HOOKS_SCRIPTS}/${CURRENT_HOOK}/"*.sh ; do | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done | ||
|
||
for d in $(find "${GIT_HOOKS}/.." -mindepth 2 -type d -iname .githooks) ; do | ||
dn=$(basename $(dirname "${d}")) | ||
echo -e "\n[${CURRENT_HOOK}] checking subproject \033[1m${dn}\033[0m" | ||
f="${d}/${CURRENT_HOOK}" | ||
[[ -x "${f}" ]] || continue | ||
bash "${f}" ${@} | ||
done |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT="$(dirname ${0})/../../.." | ||
ROOT="$(realpath "${ROOT}")" | ||
yarn --cwd ${ROOT} precommit |
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
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,6 +1,42 @@ | ||
node_modules/ | ||
.idea | ||
.vscode | ||
dist/ | ||
coverage/ | ||
**/*_types-ti.ts | ||
# Typescript and node | ||
yarn-error.log | ||
tmp/ | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
# User-specific stuff | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
# Generated files | ||
.idea/**/contentModel.xml | ||
# Sensitive or high-churn files | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/dbnavigator.xml | ||
# CMake | ||
cmake-build-*/ | ||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
# File-based project format | ||
*.iws | ||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
# Operating Systems | ||
.DS_Store | ||
Thumbs.db | ||
[Dd]esktop.ini |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.