Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat!: use ecmaVersion latest#2965

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
aladdin-add wants to merge1 commit intoairbnb:master
base:master
Choose a base branch
Loading
fromaladdin-add:patch-2
Draft
Changes fromall 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
feat!: use ecmaVersion latest
The following code is often used when using @eslint/eslintrc with `eslint-config-airbnb-base`:```js// mimic CommonJS variables -- not needed if using CommonJSconst __filename = fileURLToPath(import.meta.url);const __dirname = path.dirname(__filename);const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended});```However, `import.meta` is not supported in ecmaVersion: '2018'. This change allows users to be able to use it that way.
  • Loading branch information
@aladdin-add
aladdin-add authoredApr 10, 2024
commit59140bdf005acfdb8d9a35a13fa27a2c7c35b764
2 changes: 1 addition & 1 deletionpackages/eslint-config-airbnb-base/index.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@ module.exports = {
'./rules/strict',
].map(require.resolve),
parserOptions: {
ecmaVersion:2018,
ecmaVersion:'latest',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this is a change we can't make unless babel-preset-airbnb is handling it by default. unfortunately i no longer maintain it, so I'm not familiar with what the latest version supports.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

seems it's no longer actively maintained - the last version was released ~4 years ago.
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

accurate. but this is airbnb's eslint config, so my hands are kind of tied :-/

sourceType: 'module',
},
rules: {},
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp