tslint-consistent-codestyle icon indicating copy to clipboard operation
tslint-consistent-codestyle copied to clipboard

Collection of awesome rules to extend TSLint

Results 33 tslint-consistent-codestyle issues
Sort by recently updated
recently updated
newest added
trafficstars

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...

greenkeeper

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...

enhancement
help wanted
breaking change

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...

enhancement

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...

enhancement
help wanted

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.

enhancement
help wanted

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...

bug