Comments (8)
Sounds like an issue for the rules repo?
from tslint-config-standard.
Which one is that?
from tslint-config-standard.
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.
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.
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.
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.
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.
Thanks, just using abstract draw (canvas: CanvasRenderingContext2D)
fixes it for me!
from tslint-config-standard.
Related Issues (20)
- How to ignore d.ts files? HOT 1
- An in-range update of tslint is breaking the build 🚨 HOT 1
- An in-range update of @types/node is breaking the build 🚨 HOT 3
- Should installation instructions specifiy --save-dev? HOT 1
- WARNING when running with tslint-config-standard HOT 2
- An in-range update of tslint is breaking the build 🚨 HOT 1
- An in-range update of @types/node is breaking the build 🚨 HOT 1
- Is it possible to satisfy the no-duplicate-imports rule with type imports? HOT 8
- Linting for js files HOT 2
- Consider adding tslint-sonarts rules HOT 1
- Code that errors indentation when upgrading from v4 to v7 HOT 1
- no-multi-spaces false report on multiple spaces inside template literal HOT 3
- Using tslint-config-standard produces several warnings HOT 3
- Remove no-unused-variable (deprecated in tslint) HOT 8
- no-unused-variable is deprecated HOT 11
- Match standardjs for object-curly HOT 3
- suggestion: remove no-use-before-declare HOT 3
- Promises must be handled appropriately HOT 3
- Warnings when linting HOT 1
- How to migrate to the new eslint/typescript ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tslint-config-standard.