tslint-consistent-codestyle
tslint-consistent-codestyle copied to clipboard
Collection of awesome rules to extend TSLint
I noticed the linter was not catching errors with my interface's members, so I did a quick test with the following examples: ``` { "type": "member", "format": "camelCase" } ```...
The docs could really use some love. - [x] rephrase stuff - [x] add code samples - [x] add config examples - [x] create a documentation page for each rule...
## Version **3.0.0** of **tsutils** was just published. Dependency tsutils Current Version 2.29.0 Type dependency The version **3.0.0** is **not covered** by your **current version range**. If you don’t accept...
I would like to have different styles for exported primitives and objects. It is possible to be done? It should look like: ``` export const PRIMITIVE_VARIABLE = 12; export const...
In my code, i sometimes use the pattern ```ts class CustomError extends Error { constructor(someBigObject: any) { super() this.object = someBigObject } get message(): string { const value = `Failed...
I would like to disallow short variable names and certain keywords. This should already be possible with a regex, but maybe that could still be added as an option? Examples...
Is there currently a way to specify the naming convention of a instance property that is assigned a function? example ```TypeScript class Blah { // need underscore private _testVat =...
Just a suggestion... similar to `no-unused-variable`: ``` "no-unused": [true, {"ignore-pattern": "^_"}] ``` This allows you to use things like `_` for array destructuring in parameters to skip no-unused for them.
I have rules that set the naming-convention to camelCase by default, but it does not work for object variables. Example: The `Test` name should be flagged as a rule violation,...
```ts type Values = T extends {[K in keyof T]: infer U} ? U : never; ``` `U` is marked as unused but is actually referenced in the then branch...