16.0.24 • Published 3 years ago
prettier-standard-cli v16.0.24
Just a simple wrapper around Prettier & Standard with auto-fix enabled.
Why
- Simplify
package.json
use - Filter non-
js
file extensions fromstandard
, thinksjson
isjs
Getting Started
npm i -D prettier-standard-cli
Deployment
cli
prettier 'styles/*.{json,js}'
standard 'src/*.js'
prettier-standard 'src/**/*.{css,json,js}'
package.json
{
"devDependencies": {
"lint-staged":"*",
"husky":"*",
"prettier-standard-cli":"*"
},
"scripts": {
"precommit":"lint-staged",
"lint": "prettier-standard 'src/**/*.{css,json,js}'",
},
"lint-staged": {
"src/**/*.{css,json,js}": [
"prettier-standard",
"git add"
]
}
}
package.json standalone equivalent
{
"devDependencies": {
"lint-staged":"*",
"husky":"*",
"prettier":"*",
"standard":"*"
},
"scripts": {
"precommit":"lint-staged",
"lint": "prettier --write --loglevel warn 'src/**/*.{css,json,js}' && standard --fix 'src/**/*.js'",
},
"lint-staged": {
"src/**/*.{css,json}": [
"prettier --write",
"git add"
],
"src/**/*.js": [
"prettier --write",
"standard --fix",
"git add"
]
}
}
Built With
Authors
License
This project is licensed under the MIT License - see the LICENSE file for details
Acknowledgments
- sheerun/prettier-standard for the insperation
16.0.23
3 years ago
16.0.24
3 years ago
16.0.22
3 years ago
16.0.21
3 years ago
16.0.20
3 years ago
16.0.19
3 years ago
16.0.18
3 years ago
16.0.17
3 years ago
16.0.16
3 years ago
16.0.15
3 years ago
16.0.14
3 years ago
16.0.13
3 years ago
16.0.12
3 years ago
16.0.11
3 years ago
16.0.10
3 years ago
16.0.9
3 years ago
16.0.8
3 years ago
16.0.7
3 years ago
16.0.6
3 years ago
16.0.5
3 years ago
16.0.4
3 years ago
16.0.3
3 years ago
14.3.3
4 years ago
14.3.1
4 years ago
11.0.6
6 years ago
11.0.5
6 years ago
11.0.4
6 years ago
11.0.3
6 years ago
11.0.2
6 years ago
11.0.1
6 years ago
11.0.0
6 years ago