Skip to content

Commit

Permalink
fix: update dependencies and tools configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
valverdealbo committed Apr 18, 2021
1 parent 836c2c5 commit 6b2ff11
Show file tree
Hide file tree
Showing 14 changed files with 21,773 additions and 7,506 deletions.
20 changes: 15 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
{
"root": true,
"env": {
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "prettier", "prettier/@typescript-eslint"],
"plugins": ["@typescript-eslint", "import", "jest", "promise", "prettier"],
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:promise/recommended",
"plugin:prettier/recommended"
],
"settings": {
"import/resolver": {
"node": {
Expand All @@ -19,8 +29,8 @@
},
"rules": {
"no-underscore-dangle": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-var-requires": "off"
"import/no-default-export": "off",
"import/extensions": "off"
}
}
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@ name: CI

on:
push:
branches: [main]
branches:
- main
pull_request:
branches:
- main

jobs:
test-release:
lint-test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm test
- uses: coverallsapp/github-action@master
with:
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ node_modules
coverage
dist
build
.build
File renamed without changes.
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

12 changes: 12 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"testEnvironment": "node",
"collectCoverage": true,
"setupFilesAfterEnv": ["./jest.setup.js"],
"preset": "ts-jest",
"globals": {
"ts-jest": {
"isolatedModules": true
}
},
"testPathIgnorePatterns": ["/node_modules/", "/dist/"]
}
Loading

0 comments on commit 6b2ff11

Please sign in to comment.