Skip to content

Commit b8cc4de

Browse files
Add and Config ESLint and Prettier
1 parent 68d85f5 commit b8cc4de

11 files changed

+2083
-155
lines changed

.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "@rocketseat/eslint-config/react",
3+
"plugins": ["simple-import-sort"],
4+
"rules": {
5+
"simple-import-sort/imports": "error"
6+
}
7+
}

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020
"tailwindcss-animate": "^1.0.7"
2121
},
2222
"devDependencies": {
23+
"@rocketseat/eslint-config": "^2.1.0",
2324
"@types/node": "^20.10.8",
2425
"@types/react": "^18.2.43",
2526
"@types/react-dom": "^18.2.17",
2627
"@vitejs/plugin-react": "^4.2.1",
2728
"autoprefixer": "^10.4.16",
29+
"eslint": "^8.56.0",
30+
"eslint-plugin-simple-import-sort": "^10.0.0",
2831
"postcss": "^8.4.33",
32+
"prettier-plugin-tailwindcss": "^0.5.11",
2933
"tailwindcss": "^3.4.1",
3034
"typescript": "^5.2.2",
3135
"vite": "^5.0.8"

0 commit comments

Comments
 (0)