Skip to content

Commit

Permalink
merge v9
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Nov 1, 2022
2 parents a1b8b7c + 80af6de commit c342e4b
Show file tree
Hide file tree
Showing 25 changed files with 8,359 additions and 17,550 deletions.
4 changes: 1 addition & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ root = true
end_of_line = lf
charset = utf-8
insert_final_newline = true

[*.{js,json}]
indent_style = space
indent_size = 4
indent_size = 2
trim_trailing_whitespace = true
29 changes: 29 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended

parser: '@typescript-eslint/parser'

plugins:
- '@typescript-eslint'

env:
node: true
es2020: true

rules:
no-console: error
complexity: [error, { max: 6 }]
max-depth: [error, { max: 2 }]
max-nested-callbacks: [error, { max: 2 }]
max-params: [error, { max: 4 }]
max-statements: [error, { max: 10 }, { ignoreTopLevelFunctions: false }]
max-len: [error, { code: 120, ignoreUrls: true }]
max-lines: [error, { max: 200, skipComments: true, skipBlankLines: true }]
semi: [error, always]
no-multiple-empty-lines: [error, { max: 1 }]
space-before-function-paren: [error, { anonymous: always, named: never, asyncArrow: always }]
no-constant-condition: [error, { checkLoops: false }]
'@typescript-eslint/explicit-module-boundary-types': 0
'@typescript-eslint/no-non-null-assertion': 0
'@typescript-eslint/no-unused-vars': [error, { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }]
12 changes: 1 addition & 11 deletions .github/workflows/autotests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [12, 14]
node-version: [14, 16]

steps:
- uses: actions/checkout@v1
Expand All @@ -30,13 +30,3 @@ jobs:

- name: run tests
run: npm test

- name: Generate lcov report
if: matrix.node-version == 14
run: npx nyc report --reporter=lcov

- name: Run coveralls
uses: coverallsapp/github-action@master
if: matrix.node-version == 14
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
45 changes: 7 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,10 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
.DS_Store
.vscode
.idea

# Dependency directories
# npm
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

.idea
npm-debug.log

/check.js
/dist
/check.ts
8 changes: 8 additions & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# Exit on any error
set -euo pipefail

npx lint-staged
# dont run test before commit to not trigger google limits
# npm test
7 changes: 7 additions & 0 deletions .hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# Exit on any error
set -euo pipefail

npm run lint
npm test
Loading

0 comments on commit c342e4b

Please sign in to comment.