Skip to content

Commit

Permalink
➕ Update eslint and related packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustLucas committed Oct 28, 2024
1 parent 2f25535 commit b1674cf
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 212 deletions.
24 changes: 12 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@
{
"groups": [
/* Style imports */
["^.+\\.?(css)$", "^styled-components$"],
["^.+\\.?(css)$"],

/* React imports */
["^react", "^@react"],
/* React et Next imports */
["^react", "^@react", "^next"],

/* Next imports */
["^next"],
["^[a-z]"],

/* Imports starting with @ */
["^@"],
["^@/"],

/* Parent imports. Put .. last */
["^\\.\\.(?!/?$)", "^\\.\\./?$"],

/* Other relative imports. Put same-folder imports and . last */
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"]
[
"^\\.\\.(?!/?$)",
"^\\.\\./?$",
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$"
]
]
}
],
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8.57.1",
"eslint": "^9.13.0",
"eslint-config-next": "14.2.15",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
Expand Down
Loading

0 comments on commit b1674cf

Please sign in to comment.