Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

ng g @co-it/schematics:prettier #1

Closed
9 tasks done
GregOnNet opened this issue Mar 7, 2019 · 2 comments
Closed
9 tasks done

ng g @co-it/schematics:prettier #1

GregOnNet opened this issue Mar 7, 2019 · 2 comments
Assignees

Comments

@GregOnNet
Copy link
Member

GregOnNet commented Mar 7, 2019

  • Install prettier
  • Provide opinionated .prettierrc
  • Register format command in package.json
  • Update tslint.json to extend from tslint-config-prettier.
  • Warn if competing prettier configuration is detected
  • Update tslint rules according to prettier
  • Offer possibility to setup pre commit hook uing husky
  • Place husky configuration in own file (see Angular Material Husky)
  • Provide workaround to override an existing .prettierrc
    • Using apply with MergeStrategie.Overwrite does not work (see #11337).
@GregOnNet GregOnNet self-assigned this Mar 10, 2019
@GregOnNet GregOnNet mentioned this issue Mar 10, 2019
@GregOnNet
Copy link
Member Author

GregOnNet commented Mar 14, 2019

tslint.json

{
 "quotemark": [true, "single"],
 "arrow-parens": false,
 "max-line-length": [true, 80],
 "trailing-comma": [true, {"multiline": "never", "singleline": "never"}]
}

@GregOnNet
Copy link
Member Author

#11 is merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant