Giter Site home page Giter Site logo

Comments (8)

blakeembrey avatar blakeembrey commented on May 18, 2024

Sounds like an issue for the rules repo?

from tslint-config-standard.

quantuminformation avatar quantuminformation commented on May 18, 2024

Which one is that?

from tslint-config-standard.

blakeembrey avatar blakeembrey commented on May 18, 2024

Probably https://palantir.github.io/tslint/rules/no-empty/ - you can use a comment for now. Not sure what the behaviour compared to ESLint is here.

from tslint-config-standard.

quantuminformation avatar quantuminformation commented on May 18, 2024

Well I doubt there is one, since there is no abstract class. Would be tricky to implement a layer on top just for TS too I think.

from tslint-config-standard.

blakeembrey avatar blakeembrey commented on May 18, 2024

I realise. You could compare the configuration that exists, there's likely a case for finer grain configuration in the rules. From what I can tell, ESLint separates it into block and function checks (http://eslint.org/docs/rules/no-empty and http://eslint.org/docs/rules/no-empty-function). Maybe it's something to propose into one of the rule repos? Unless you have a suggestion for this repo, I'll close it in favour of an issue in either ESLint rules or TSLint. Feel free to link it back here for context 😄

from tslint-config-standard.

blakeembrey avatar blakeembrey commented on May 18, 2024

I'd say make an issue in https://github.com/buzinas/tslint-eslint-rules to be more specific and similar to ESLint's built-in rules and make a second issue in TSLint itself - it seems like an oversight to not support abstract methods (via configuration or by default).

from tslint-config-standard.

blakeembrey avatar blakeembrey commented on May 18, 2024

Also, there weren't any line numbers so I couldn't really tell if some code was hidden or not (you should consider using markdown code blocks to make it easier). But I think you may have been using the method incorrectly too - why not mark the method as abstract so it doesn't need a body at all? An abstract class can still have normal or abstract methods.

from tslint-config-standard.

quantuminformation avatar quantuminformation commented on May 18, 2024

Thanks, just using abstract draw (canvas: CanvasRenderingContext2D)
fixes it for me!

from tslint-config-standard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.