This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules, plus some extras and formatted files ready to go.
Plugins installed:
{
// rocketseat/eslint-config
"extends": "@rocketseat/eslint-config/react",
// eslint-plugin-import-helpers
"plugins": ["eslint-plugin-import-helpers"],
"rules": {
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"/^react/",
"module",
"/^@shared/",
["parent", "sibling", "index"]
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
}
}