-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyevaluatingThe team will evaluate this issue to decide whether it meets the criteria for inclusionThe team will evaluate this issue to decide whether it meets the criteria for inclusionruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
Tell us about your environment
- ESLint Version: 4.0.0
- Node Version: 8.0.0
- npm Version: 5.0.3
What parser (default, Babel-ESLint, etc.) are you using?
babel-eslint
Please show your full configuration:
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
"globalReturn": false,
"jsx": true
}
},
"parser": "babel-eslint"
}
What did you do? Please include the actual source code causing the issue.
class Foo {
static bar = true
baz = 'meh'
}
What did you expect to happen?
no errors.
What actually happened? Please include the actual, raw output from ESLint.
no-undef is treating bar
and baz
as errors (assigning new globals?) This didn't error in eslint 3.x.x
ays-dev, krambertech, wmertens, wphampton, robgu and 12 more
Metadata
Metadata
Assignees
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlyevaluatingThe team will evaluate this issue to decide whether it meets the criteria for inclusionThe team will evaluate this issue to decide whether it meets the criteria for inclusionruleRelates to ESLint's core rulesRelates to ESLint's core rules