Skip to content

Commit 52585be

Browse files
author
Vitor Hugo Salgado
committed
feat: upgrade deps + ci config
BREAKING CHANGE: eslint upgrade + remove some ts configs
1 parent 08a6048 commit 52585be

File tree

7 files changed

+149
-570
lines changed

7 files changed

+149
-570
lines changed

.eslintrc.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
3-
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc'],
4-
extends: ['plugin:@typescript-eslint/recommended', 'standard', 'prettier'],
3+
plugins: ['@typescript-eslint/eslint-plugin', 'import', 'eslint-plugin-tsdoc'],
4+
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
55
env: {
66
jest: true,
77
node: true
88
},
99
rules: {
10-
'tsdoc/syntax': 'error',
11-
12-
'no-unused-vars': 'off',
13-
'space-before-function-paren': 'off',
1410
'no-console': 'error',
15-
1611
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
17-
'no-dupe-class-members': 'off',
1812
'@typescript-eslint/no-dupe-class-members': ['error'],
19-
'no-useless-constructor': 'off',
2013
'@typescript-eslint/no-useless-constructor': ['error'],
2114
'@typescript-eslint/no-inferrable-types': ['off']
2215
}

.github/workflows/ci.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: ci
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7-
- master
87
- '[0-9]+.x'
98
tags:
109
- '*'
@@ -27,7 +26,7 @@ jobs:
2726
id: setup-node
2827
uses: actions/setup-node@v2
2928
with:
30-
node-version: 14.x
29+
node-version: 16.x
3130

3231
- uses: actions/cache@v2
3332
with:
@@ -87,14 +86,18 @@ jobs:
8786
run: |
8887
npm publish --access public
8988
89+
- name: Latest Changelog
90+
run: |
91+
diff --changed-group-format='%>' --unchanged-group-format='' <( git show HEAD~1:CHANGELOG.md ) CHANGELOG.md > CHANGELOG_LATEST.md || true
92+
9093
- name: Release
9194
uses: actions/create-release@v1
9295
env:
9396
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9497
with:
9598
tag_name: ${{ github.ref }}
9699
release_name: Release ${{ github.ref }}
97-
body_path: CHANGELOG.md
100+
body_path: CHANGELOG_LATEST.md
98101
draft: false
99102
prerelease: contains(github.ref, '-')
100103

@@ -103,6 +106,9 @@ jobs:
103106
needs:
104107
- test
105108
runs-on: ubuntu-latest
109+
permissions:
110+
pull-requests: write
111+
contents: write
106112
steps:
107113
- uses: fastify/github-action-merge-dependabot@v3.0.2
108114
with:

.github/workflows/codeql-analysis.yml

+1-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
name: "code-ql"
1+
name: CodeQL
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- master
8-
- '[0-9]+.x'
9-
paths-ignore:
10-
- 'docs/**'
11-
- '*.md'
12-
pull_request:
13-
branches:
14-
- main
15-
- master
16-
- '[0-9]+.x'
17-
paths-ignore:
18-
- 'docs/**'
19-
- '*.md'
20-
214
schedule:
225
- cron: '0 15 * * 0'
236

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.17.3
1+
v16.13.1

0 commit comments

Comments
 (0)