Skip to content

Commit

Permalink
Upgrade to eslint-plugin-security v3 (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored May 8, 2024
1 parent 46a67f9 commit bf86e86
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 86 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-squids-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/foundry': major
---

Upgraded `eslint-plugin-security` to v3. Read the [changelog](https://github.com/eslint-community/eslint-plugin-security/blob/main/CHANGELOG.md).
8 changes: 1 addition & 7 deletions .changeset/dirty-crews-suffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@
'@sumup/foundry': major
---

Update of linter libraries to support the latest versions of Typescript:

- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint-config-airbnb-typescript

This is a breaking change as the introduction of ESLint v9 requires a minimum Node version of v18.18, whereas previously Foundry only required v18.12+.
Upgraded `@typescript-eslint/*` to v7. Read the [changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/CHANGELOG.md).
5 changes: 5 additions & 0 deletions .changeset/fair-timers-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/foundry': major
---

Raised the minimum Node version to ^18.18 || ^20.9 || >=22.
5 changes: 5 additions & 0 deletions .changeset/unlucky-boxes-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sumup/foundry': major
---

Upgraded `eslint-config-airbnb-typescript` to v18. Read the [release notes](https://github.com/iamturns/eslint-config-airbnb-typescript/releases/tag/v18.0.0).
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
node: [18, 20, 22]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
105 changes: 64 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
"release": "changeset publish"
},
"engines": {
"node": "^18.12 || >=20"
"node": "^18.18 || ^20.9 || >=22"
},
"browserslist": [
"node 18.12",
"node 20"
"node 18.18",
"node 20.9",
"node 22"
],
"dependencies": {
"@babel/core": "^7.24.5",
Expand All @@ -62,7 +63,7 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-security": "^3.0.0",
"husky": "^4.3.8",
"inquirer": "^8.2.6",
"is-ci": "^3.0.1",
Expand Down
Loading

0 comments on commit bf86e86

Please sign in to comment.