Skip to content

Instantly share code, notes, and snippets.

View kirilknysh's full-sized avatar
:bowtie:
go pro

Kiril Knysh kirilknysh

:bowtie:
go pro
View GitHub Profile
@kirilknysh
kirilknysh / settings.json
Created March 15, 2020 14:15
[nodejs-api-service] vscode settings eslint
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.alwaysShowStatus": true
}
@kirilknysh
kirilknysh / package.json.diff
Created January 3, 2020 15:20
[nodejs-api-service] package.json linters
diff --git a/package.json b/package.json
index 2285a23..766810e 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,8 @@
"start": "",
"dev": "",
"test": "exit 0",
- "lint-staged": "exit 0"
+ "lint-staged": "lint-staged",
@kirilknysh
kirilknysh / .lintstagedrc
Created January 3, 2020 15:17
[nodejs-api-service] lint-staged
{
"**/*.+(js|ts)": [
"eslint"
]
}
@kirilknysh
kirilknysh / .eslintignore
Created January 3, 2020 14:56
[nodejs-api-service] eslintignore
# don't ever lint node_modules
node_modules
# don't lint build output
build
@kirilknysh
kirilknysh / .eslintrc.js
Created January 3, 2020 14:55
[nodejs-api-service] eslintrc
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
plugins: ['@typescript-eslint'],
extends: ['standard-with-typescript'],
rules: {
'@typescript-eslint/strict-boolean-expressions': ['off'],
@kirilknysh
kirilknysh / package.json.diff
Created January 2, 2020 17:12
[nodejs-api-service] package.json git hooks
diff --git a/package.json b/package.json
index 55be359..4676d37 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,8 @@
"tsc": "tsc",
"start": "",
"dev": "",
- "test": ""
+ "test": "exit 0",
@kirilknysh
kirilknysh / .huskyrc
Last active January 2, 2020 17:17
[nodejs-api-service]huskyrc
{
"hooks": {
"pre-commit": "npm run lint-staged",
"pre-push": "npm t"
}
}
@kirilknysh
kirilknysh / .editorconfig
Created January 2, 2020 16:34
[nodejs-api-service] editorconfig
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
@kirilknysh
kirilknysh / .gitignore
Created December 17, 2019 20:34
[nodejs-api-service] gitkeep
# Ignore everything in this directory
*
# Except this file
!.gitignore
@kirilknysh
kirilknysh / tsconfig.json.diff
Last active December 17, 2019 21:00
[nodejs-api-service] tsconfig.json changes v1
diff --git a/tsconfig.json b/tsconfig.json
index 3eb89be..b8b8e5b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,7 +2,7 @@
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
- "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
+ "target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */