Skip to content

Commit

Permalink
🎨 Update Prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
jyboy committed Apr 16, 2024
1 parent 197f36b commit b3a0ed0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
trailingComma: 'none',
semi: true,
singleQuote: true,
importOrder: ['^@core/(.*)$', '^[./]'],
importOrder: ['^react$', '<THIRD_PARTY_MODULES>', '^[./]'],
plugins: [
'@trivago/prettier-plugin-sort-imports',
'prettier-plugin-css-order',
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
},
"editor.quickSuggestions": {
"strings": "on"
},
"prettier.requireConfig": true,
"prettier.configPath": ".prettierrc.cjs",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
2 changes: 1 addition & 1 deletion src/pages/TableReservation/TableReservation.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useFormik } from 'formik';
import { useEffect } from 'react';
import { useFormik } from 'formik';
import { useNavigate } from 'react-router-dom';
import { object, string, number, date } from 'yup';
import Button from '../../components/Button/Button';
Expand Down

0 comments on commit b3a0ed0

Please sign in to comment.