All-in-one linting utilities.
yarn add --dev ta-lint
Create a prettier.config.js
in the root of your project that exports our standard configuration:
// prettier.config.js
module.exports = require('ta-lint/configs/prettier')
That's all you need to run prettier in your project! If you'd like, you can setup convenient npm scripts in your package.json
:
{
"scripts": {
"prettier": "prettier \"{src,tests}/**/*.{js,ts,tsx}\"",
"prettier:fix": "npm run prettier -- --write"
}
}