Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Fix Babel 6.4: A semicolon is required after a class property #171

Closed
ChrisCinelli opened this issue Jan 30, 2016 · 6 comments
Closed

Fix Babel 6.4: A semicolon is required after a class property #171

ChrisCinelli opened this issue Jan 30, 2016 · 6 comments
Labels

Comments

@ChrisCinelli
Copy link

I upgraded Babel to 6.4. Before semicolon after class property were not mandatory but now I have ton of :

Module build failed: SyntaxError: 
...
A semicolon is required after a class property

Do you know of a preset to automatically fix these automatically? I tried airbn and google without success.

See also http://stackoverflow.com/questions/35103415/autofix-babel-6-4-a-semicolon-is-required-after-a-class-property

@weslleyaraujo
Copy link

I am having the same issue,

// .babelrc
{
  "presets": ["es2015", "react", "stage-0"]
}

// package.json
"babel-core": "^6.0.20",
"babel-loader": "^6.2.0",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"babel-preset-stage-0": "^6.3.13",

@electerious
Copy link

Has nothing to do with linter-jscs. However, it looks like a auto-fix as already been merged into jscs: jscs-dev/node-jscs#2057

@ChrisCinelli
Copy link
Author

My understanding is that node-jscs is packaged with AtomLinter/linter-jscs so it will take a new release to be able to use this feature in AtomLinter/linter-jscs

@electerious
Copy link

Wasn't aware that node-jscs is packaged with linter-jscs. Would explain why it the new requireCapitalizedConstructorsNew property isn't working, yet.

@Arcanemagus
Copy link
Member

Correct, this plugin uses it's bundled version of jscs (for now), it looks like @ChrisCinelli filed #172 and @casesandberg is taking care of it though 😉.

@casesandberg
Copy link
Contributor

This was fixed in linter-jscs@3.4.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants