Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #17

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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