jwbay / tslint-misc-rules Goto Github PK
View Code? Open in Web Editor NEWCollection of miscellaneous TSLint rules
License: MIT License
Collection of miscellaneous TSLint rules
License: MIT License
It's throwing a warning for (...items) => {}. In this case the parentheses are required.
Properties on a class are triggering this rule, not just methods with TypeScript 2.1.4
this.functionCall()
gets flagged
<div onClick={ this.functionCall }/>
does not.
queryProtoType.execute = jest.fn(() => new Promise(() => {}));
Should make tslint a peer dependency
The following fails to lint and the parentheses are required in this case.
Promise.all([some, promises])
.then(([result, values]) => {});
stream.js:74
throw er; // Unhandled stream error in pipe.
TypeError: Cannot read property 'getStart' of undefined
at ClassMethodNewlinesWalker.validate (\node_modules\tslint-misc-rules\rules\classMethodNewlinesRule.js:43:76)
import 'b';
import 'a';
import { x } from 'y';
import * as z from 'z';
incorrectly becomes
import 'a';
import 'b';
import * as z from 'z';
import { x } from 'y';
when it should be
import 'b';
import 'a';
import * as z from 'z';
import { x } from 'y';
() => { statement; statement2; }
() => { return returnX; }
() => { return {}; }
Seeing cases where sometimes jsx-attribute-value-spacing doesn't pick up invalid cases.
Right now there is a peer dependency to typescript, that doesn't include typescript 3 and above: "typescript": ">=2.1 <=3.0"
. Since typescript 3 has been released for a while, it would be good to update this dependency to allow tslint-misc-rules
to be used with typescript 3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.