Skip to content

Commit

Permalink
feat: bump node version; npm audit fix; npm run lint -- --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neo-antonio-canabrava committed Jul 5, 2024
1 parent baa4aa6 commit 32fd009
Show file tree
Hide file tree
Showing 14 changed files with 15,849 additions and 3,585 deletions.
10 changes: 8 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"extends": "eslint-config-neo/config-backend",
"rules": {
"no-console": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"autofix/no-unused-vars": "off"
}
}
}
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Cache node modules
uses: actions/cache@preview
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: yarn --frozen-lockfile --prefer-offline --non-interactive
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test -- --coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '20'
- name: Cache node modules
uses: actions/cache@preview
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: yarn --frozen-lockfile --prefer-offline --non-interactive
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test -- --coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.2.0 (July 5, 2024)

- npm audit fix
- bumped node version required to 20
- bumped manually other libraries

## 1.1.2 (October 17, 2020)

- Changed `node_modules` glob pattern to also exclude nested node_modules
Expand All @@ -11,7 +17,7 @@

## 1.1.0 (March 9, 2020)

- Add `ignore-numbers` argument which takes an array of numbers you want to ignore
- Add `ignore-numbers` argument which takes an array of numbers you want to ignore

## 1.0.4 (December 10, 2019)

Expand Down
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = {
'!<rootDir>/node_modules/',
'!<rootDir>/build/',
'!<rootDir>/dist/',
'!<rootDir>/*.js'
'!<rootDir>/*.js',
],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/test/tsconfig.json'
}
tsConfig: '<rootDir>/test/tsconfig.json',
},
},
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/dist/', '<rootDir>/config.*.js']
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/dist/', '<rootDir>/config.*.js'],
};
Loading

0 comments on commit 32fd009

Please sign in to comment.