Skip to content

Commit

Permalink
Fix Prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamahl19 committed Dec 17, 2023
1 parent 540da6c commit 4f297a7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": ["prettier-plugin-packagejson"],
"printWidth": 100,
"singleQuote": true
}
6 changes: 0 additions & 6 deletions .prettierrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ESLint runs when:

### Prettier

Formatting of the entire codebase (js(x), ts(x), json, html, css, md...) is covered by [Prettier](https://prettier.io/docs/en/index.html). Prettier is an opinionated code formatter which removes original styling and ensures that outputted code conforms to a consistent style. This project uses mostly default Prettier configuration with a small exception defined in [.prettierrc.js](./.prettierrc.js). You can read more about it here: [Why Prettier](https://prettier.io/docs/en/why-prettier.html) and [Editors Integration](https://prettier.io/docs/en/editors.html).
Formatting of the entire codebase (js(x), ts(x), json, html, css, md...) is covered by [Prettier](https://prettier.io/docs/en/index.html). Prettier is an opinionated code formatter which removes original styling and ensures that outputted code conforms to a consistent style. This project uses mostly default Prettier configuration with a small exception defined in [.prettierrc](./.prettierrc). You can read more about it here: [Why Prettier](https://prettier.io/docs/en/why-prettier.html) and [Editors Integration](https://prettier.io/docs/en/editors.html).

On top of there, there is a [prettier-plugin-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson) to sort the keys of a `package.json`` file using [sort-package-json](https://github.com/keithamus/sort-package-json).

Expand Down Expand Up @@ -280,7 +280,7 @@ The best part is that developers can [build their own](https://react.dev/learn/r
├── .gitignore : to keep Git from tracking specific files
├── .npmrc : an NPM [config](https://docs.npmjs.com/cli/using-npm/config)
├── .prettierignore : to ignore files when running Prettier
├── .prettierrc.js : contains Prettier [configuration](https://prettier.io/docs/en/options.html)
├── .prettierrc : contains Prettier [configuration](https://prettier.io/docs/en/options.html)
├── i18next-parser.config.ts : contains configuration for [i18next-parser](https://github.com/i18next/i18next-parser)
├── index.html : is the entry point to the application
├── package.json : holds metadata about the project and its dependencies
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
"@tsconfig/vite-react": "3.0.0",
"@types/node": "20.10.4",
"@types/react": "18.2.45",
"@types/react-dom": "18.2.17",
"@types/react-dom": "18.2.18",
"@typescript-eslint/eslint-plugin": "6.14.0",
"@typescript-eslint/parser": "6.14.0",
"@vitejs/plugin-react-swc": "3.5.0",
"@vitest/ui": "1.0.4",
"eslint": "8.55.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "npm:[email protected]",
Expand Down

1 comment on commit 4f297a7

@vercel
Copy link

@vercel vercel bot commented on 4f297a7 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.