sheerun / prettier-standard

Formats with Prettier and lints with ESLint+Standard! (✿◠‿◠)
MIT License
868 stars 44 forks source link

Add "npm init prettier-standard" to the installation instructions. #82

Closed JustinDFuller closed 5 years ago

JustinDFuller commented 5 years ago

As of NPM version 6.1.0 you can run npm init <initializer> that will use npx create-<initializer> to initialize an app. I've created a prettier-standard initializer based on the instructions provided here in this document (including husky and lint-staged).

JustinDFuller commented 5 years ago

I made {src,lib,test,tests,__tests__,bin}/**/*.js the default glob pattern. Any thoughts on this?

sheerun commented 5 years ago

Probably best default is **/*.js but I'd rather not encourage boilerplace. Instead make prettier-standard work without any as suggested with --check and --staged flags (see other issues)

sheerun commented 5 years ago

Hey. I've published create-modern-node for what I believe should be proper setup that incorporates prettier-standard. If can check it out and suggest changes if you want: https://github.com/sheerun/modern-node