Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Configuration code style #56

Merged
merged 4 commits into from
Nov 20, 2018
Merged

Configuration code style #56

merged 4 commits into from
Nov 20, 2018

Conversation

wiese
Copy link
Contributor

@wiese wiese commented Nov 20, 2018

Let tslint check our JS (configuration) files in the project root, too.
With the release of palantir/tslint#3641 (I subscribed) the manual [prototypical] re-specification of jsRules will hopefully be obsolte soon.

Consistently indent JSON files. This goes against the tab indentation we
do for program files but allows for configuration files modified by
programs (e.g. npm using JSON.stringify() for package.json) to stay
consistent in the long run.

Let tslint check our JS (configuration) files in the project root, too.
With the release of palantir/tslint#3641 (I
subscribed) the manual [prototypical] re-specification of `jsRules` will
hopefully be obsolte soon.
Apply rules defined for JS files.
Consistently indent JSON files. This goes against the tab indentation we
do for program files but allows for configuration files modified by
programs (e.g. npm using JSON.stringify() for package.json) to stay
consistent in the long run.
@wiese wiese requested review from jakobw and bitPogo November 20, 2018 10:11
Copy link
Member

@jakobw jakobw left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

],
"lib": [
"esnext",
"es5",
"dom",
"dom.iterable",
"scripthost"
]
],
"allowJs": true
Copy link
Member

Choose a reason for hiding this comment

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

nice

@jakobw jakobw merged commit 9becdd3 into master Nov 20, 2018
@jakobw jakobw deleted the config-cs branch November 20, 2018 12:47
@wiese
Copy link
Contributor Author

wiese commented Dec 18, 2018

palantir/tslint#3641 was released in tslint 5.12.0 (comes with @vue/cli-plugin-typescript@3.2.0) - unfortunately this comment is right in that extends is not taken into account when building the jsRules so we can't switch it out just yet - I'll keep watching.

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.

2 participants