Basic Prettier config for Monterail projects
npm install @monteway/prettierVery basic configuration for Prettier.
``bash`
npm i -D prettier @monteway/prettier
Simply create your Prettier config file with following content:
`js`
module.exports = require('@monteway/prettier/config');
This is the default configuration for Prettier.\
For the sake of consistency between projects it should not be changes or overwritten.
`js
{
// Max line length is 100 characters.
printWidth: 100,
// Put semicolons always.
semi: true,
// Use single quotes.
singleQuote: true,
// Identation should be 2 spaces.
tabWidth: 2,
// Put commas whenever possible.
trailingComma: 'all',
}
``