diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-10-25 15:24:27 +0000 |
---|---|---|
committer | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-10-25 21:24:55 +0000 |
commit | 18d4d619e489ee72aa826346024b0a796dc71fa3 (patch) | |
tree | aea11c94b9d2f92ae3565c7f7fdaf6791d4f1862 /docs/package.json | |
parent | ab65bf49db46291dfc429cda4737e894d1897e6f (diff) |
docs: Add prettier support
Official guidelines:
https://prettier.io/docs/en/install.html
https://prettier.io/docs/en/integrating-with-linters.html
https://github.com/prettier/eslint-config-prettier
Steps taken:
npm install --save-dev --save-exact prettier
Create .prettierignore
Create .prettierrc.js
npm install --save-dev eslint-config-prettier
Edit .eslintrc.js
Diffstat (limited to 'docs/package.json')
-rw-r--r-- | docs/package.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/package.json b/docs/package.json index c97ebef..44536f0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -29,6 +29,8 @@ }, "devDependencies": { "eslint": "^7.12.0", - "eslint-plugin-react": "^7.21.5" + "eslint-config-prettier": "^6.14.0", + "eslint-plugin-react": "^7.21.5", + "prettier": "2.1.2" } } |