Prettier config for the LifewayIT Corinth team.
- Install the following as dev dependencies via npm or similar:
- prettier
- eslint-config-prettier
- You can download this dependency via GitHub with
npm install github:lifewayit/prettier-config-corinth -D
.
- Add a
prettier.config.js
file to the root of the repo. It will need to include the following:
const prettierConfig = require('prettier-config-corinth');
module.exports = prettierConfig;
- If applicable, extend the existing eslintrc file to include
prettier
. For example:
module.exports = {
env: {
node: true,
es6: true
},
extends: ["corinth", "prettier"]
};
- Install and enable the Prettier plugin for VSCode, which can be found here
If you would like to modify the prettier configuration, simply modify the index.json
file. The docs for possible options are here.