Skip to content

Commit

Permalink
Update eslint rules, remove unused import and bump dependencies versi…
Browse files Browse the repository at this point in the history
…ons (#129)

In this commit:
1. ESLint rules were updated to recognize the "node" environment in `.eslintrc`.
2. An unused import was removed from `src/swagger/getOpenAPISpec.ts`.
3. Project's `package.json` was updated to ignore common system/IDE files.
4. The version number was updated in `package.json` and `package-lock.json` as dependencies versions were updated.
5. The `tsconfig.json` is updated, adding "dom" to the "lib" property.
6. `package-lock.json` was auto-updated due to change in `package.json`.
7. Several dependencies were updated to newer versions in `package.json` and adjusted in `package-lock.json`.

These changes keep the project up to date and improve developer experience by preventing ESLint errors in Node.js code and excluding system-specific files.

Co-authored-by: OKhromets <[email protected]>
  • Loading branch information
akhromets and OKhromets authored Oct 26, 2023
1 parent 9c6f386 commit 0968fe6
Show file tree
Hide file tree
Showing 8 changed files with 3,698 additions and 3,764 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"env": {
"node": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
Expand Down Expand Up @@ -28,4 +31,4 @@
}
]
}
}
}
21 changes: 11 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.14.0
uses: actions/setup-node@v2
with:
node-version: '16.14.0'
- run: npm ci
- run: npm run build
- run: npm t
- run: npm run e2e
- name: Get code
uses: actions/checkout@v3
- name: Use Node.js 19.9.0
uses: actions/setup-node@v3
with:
node-version: '19.9.0'
- run: npm ci
- run: npm run build
- run: npm t
- run: npm run e2e
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Get code
uses: actions/checkout@v3
- name: Use Node.js 19.9.0
uses: actions/setup-node@v3
with:
node-version: '16.14.0'
node-version: '19.9.0'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# dependencies
/node_modules

# IDEs and editors
/.idea

# IDE - VSCode
.vscode/*
.vs/*
Expand All @@ -20,3 +23,6 @@

# code coverage
/coverage

# System Files
.DS_Store
Loading

0 comments on commit 0968fe6

Please sign in to comment.