Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Feature/no param properties rule #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

LeoTT
Copy link
Contributor

@LeoTT LeoTT commented Jun 22, 2017

Verbietet folgenden Code:

class Foo {
  constructor(private bar: Bar) {}
}

Leonhard Tobisch added 7 commits June 19, 2017 15:29
indent rule does not yet allow setting a number of spaces.
I made a note at the indent-rule reminding to use 4 spaces.
3.3 **indent:** Enforces indentation spaces.

3.3 **indent:** Enforces indentation spaces. As soon as this rule supports setting the number of spaces per indentation it will be set to 4 spaces in the 5Minds-tslint-config.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

da wir das noch diskutieren bitte diesen Absatz ändern - 4 spaces sind nur eine Möglichkeit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 Space, da der meiste JS-Code bereits 2 beinhaltet und TypeScript sich daran anlehnen.

Copy link
Member

@moellenbeck moellenbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bitte auf 2 Spaces anpassen und auch die tslint und .editorconfig für *.ts und *.js anpassen, danke

class Foo {

constructor(private bar: Bar) {}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Würde hier noch eine Leerzeile einfügen, damit es konsistent zum obigen // good Beispiel ist.

@NullEnt1ty
Copy link
Contributor

Wie ist hier der Stand? Scheint ein wenig in Vergessenheit geraten zu sein :)

@LeoTT
Copy link
Contributor Author

LeoTT commented Sep 15, 2017

Change requests wurden behandelt. Indent-size situation verbessert sich sobald wir tslint updaten und die richtige Regel nutzen (#12) (gehört aber nicht in diesen PR).

Current version of our tslint includes new indent version which allows 
specifying number of spaces/tabs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants