Skip to content

Commit

Permalink
Fix /bun config profile so it emulates Node.js ^21.0.0 versions, …
Browse files Browse the repository at this point in the history
…otherwise linting for feature support will fail for modern APIs common in Bun apps like `Request`, `Response`, and `Headers` (#17)
  • Loading branch information
mangs authored Jul 26, 2024
1 parent bbbfb6c commit b7263c7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.0.1

- Fix `/bun` config profile so it emulates Node.js `^21.0.0` versions, otherwise linting for feature support will fail for modern APIs common in Bun apps like `Request`, `Response`, and `Headers`
- Upgrade dependencies to latest versions

## 2.0.0

- **Breaking Changes**
Expand Down
Binary file modified bun.lockb
Binary file not shown.
5 changes: 4 additions & 1 deletion lib/eslintBunConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"Bun": "readonly"
},
"settings": {
"import/core-modules": ["bun", "bun:jsc", "bun:sql", "bun:sqlite", "bun:test"]
"import/core-modules": ["bun", "bun:jsc", "bun:sql", "bun:sqlite", "bun:test"],
"node": {
"version": "^21.0.0"
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@babbel/eslint-config",
"version": "2.0.0",
"version": "2.0.1",
"author": "Eric L. Goldstein <egoldstein@babbel.com>",
"description": "Hierarchical ESLint configuration collection that intends to be simple to use, layered, and shared with others",
"keywords": [
Expand Down Expand Up @@ -65,7 +65,7 @@
"eslint-plugin-playwright": "1.6.2",
"eslint-plugin-regexp": "2.6.0",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-unicorn": "54.0.0"
"eslint-plugin-unicorn": "55.0.0"
},
"devDependencies": {
"@mangs/bun-utils": "2.26.1",
Expand All @@ -76,7 +76,7 @@
"@types/react-dom": "18.3.0",
"eslint": "8.57.0",
"jest": "29.7.0",
"preact": "10.23.0",
"preact": "10.23.1",
"prettier": "3.3.3",
"prop-types": "15.8.1",
"react": "18.3.1",
Expand Down

0 comments on commit b7263c7

Please sign in to comment.