question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

semi's after class methods

See original GitHub issue

I know this probably isn’t an issue with this project, but I’m wondering if someone here might be able to help me figure out what is going on. For just about everything I’m able to have this remove semi’s from my code, however within classes I still seem to get them:

input

class MyComponent extends Component {
  static propTypes = {
    prop: PropTypes.node.isRequired,
  }
}

output

class MyComponent extends Component {
  static propTypes = {
    prop: PropTypes.node.isRequired,
  };
}

any idea how I might stop these from being inserted? What is slightly strange is that the linter does not complain in the editor, but on save the semi’s are getting inserted.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
guywaldmancommented, Mar 3, 2017

All glory be to @kentcdodds

1reaction
chrisdrackettcommented, Feb 28, 2017

yay! bliss.

Thanks @kentcdodds!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TestNG @AfterClass Annotations - Javatpoint
@AfterClass: The @AfterClass annotated method will be executed after all the test methods of a current class have been invoked.
Read more >
Overriding abstract Methods
An abstract class may have methods that are not abstract (the usual sort of method). These methods are inherited by child classes in...
Read more >
Is it ok to use empty methods as "semi-abstract" method? (PhP)
The valute may decide to overwrite it or not, so it doesnt have to be abstract. Still, if it were, in every class...
Read more >
Inheritance, Polymorphism, and Abstract Classes
Section 5.5. Inheritance, Polymorphism, and Abstract Classes. A class represents a set of objects which share the same structure and behaviors.
Read more >
AfterClass (JUnit API)
Annotating a public static void method with @AfterClass causes that method to be run after all the tests in the class have been...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found