-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
area: eslintoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
@babel/eslint-parser
Input code
function logged(value, { kind, name }) {
// implementation
}
class C {
@logged accessor x = 1;
// ^ error 'x' is not defined no-undef (eslint)
}Configuration file name
babel.config.json
Configuration
{
"plugins": [["@babel/plugin-proposal-decorators", { "version": "2023-05" }]]
}Current and expected behavior
Stackblitz repro: https://stackblitz.com/edit/stackblitz-starters-jypgau?file=index.js
Notice that eslint command produces an error.
Expectation is to have no error as this is valid syntax.
The actual compilation with @babel/cli works properly and the output runs as expected.
Environment
System:
OS: Linux 5.0 undefined
Binaries:
Node: 18.18.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.4.2 - /usr/local/bin/npm
pnpm: 8.6.12 - /usr/local/bin/pnpm
npmPackages:
@babel/cli: ^7.23.0 => 7.23.0
@babel/core: ^7.23.0 => 7.23.0
@babel/eslint-parser: ^7.22.15 => 7.22.15
@babel/plugin-proposal-decorators: ^7.23.0 => 7.23.0
eslint: ^8.50.0 => 8.50.0
Possible solution
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: eslintoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue