Skip to content

Commit a0aeac3

Browse files
feat: ✨ upgrade packages and move to prettier for sorting imports
1 parent 239e76d commit a0aeac3

File tree

4 files changed

+1166
-1203
lines changed

4 files changed

+1166
-1203
lines changed

Diff for: .eslintrc

-21
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"plugins": [
1212
"@typescript-eslint",
1313
"jest",
14-
"simple-import-sort",
1514
"unused-imports"
1615
],
1716
"env": {
@@ -80,26 +79,6 @@
8079
"argsIgnorePattern": "^_"
8180
}
8281
],
83-
"simple-import-sort/exports": "warn",
84-
"simple-import-sort/imports": [
85-
"warn",
86-
{
87-
"groups": [
88-
["^node:"],
89-
["^react", "^next"],
90-
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
91-
// & side effect imports
92-
["^@?\\w", "^\\u0000"],
93-
["^.+\\.s?css$"],
94-
// Other imports
95-
["^@/", "^~/"],
96-
// anything not matched in other groups
97-
["^"],
98-
// relative imports - anything that starts with a dot
99-
["^\\."]
100-
]
101-
}
102-
],
10382
"@typescript-eslint/await-thenable": "error",
10483
"@typescript-eslint/no-floating-promises": "error",
10584
"@typescript-eslint/no-misused-new": "error",

Diff for: .prettierrc

+13-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,17 @@
66
"semi": false,
77
"trailingComma": "all",
88
"tabWidth": 2,
9-
"printWidth": 120
9+
"printWidth": 120,
10+
"importOrderSeparation": false,
11+
"importOrder": [
12+
"^react",
13+
"^next",
14+
"<THIRD_PARTY_MODULES>",
15+
"",
16+
"^@/(.*)$",
17+
"",
18+
"^~/(.*)$",
19+
"",
20+
"^[./]"
21+
]
1022
}

Diff for: package.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,54 @@
1818
"commit": "cz"
1919
},
2020
"dependencies": {
21-
"@chakra-ui/react": "^2.4.9",
22-
"@emotion/react": "^11.10.5",
23-
"@emotion/styled": "^11.10.5",
24-
"framer-motion": "^8.4.6",
21+
"@chakra-ui/react": "^2.5.1",
22+
"@emotion/react": "^11.10.6",
23+
"@emotion/styled": "^11.10.6",
24+
"framer-motion": "^10.0.1",
2525
"is-ci": "^3.0.1",
26-
"next": "^13.1.2",
26+
"next": "^13.2.3",
2727
"react": "^18.2.0",
2828
"react-dom": "^18.2.0"
2929
},
3030
"devDependencies": {
31-
"@commitlint/cli": "^17.4.2",
32-
"@commitlint/config-conventional": "^17.4.2",
31+
"@commitlint/cli": "^17.4.4",
32+
"@commitlint/config-conventional": "^17.4.4",
33+
"@ianvs/prettier-plugin-sort-imports": "^3.7.1",
3334
"@testing-library/jest-dom": "^5.16.5",
34-
"@testing-library/react": "^13.4.0",
35-
"@types/jest": "^29.2.5",
36-
"@types/node": "^18.11.18",
37-
"@types/react": "^18.0.26",
38-
"@types/react-dom": "^18.0.10",
39-
"@typescript-eslint/eslint-plugin": "^5.48.2",
40-
"@typescript-eslint/parser": "^5.48.2",
41-
"commitizen": "^4.2.6",
35+
"@testing-library/react": "^14.0.0",
36+
"@types/jest": "^29.4.0",
37+
"@types/node": "^18.14.4",
38+
"@types/react": "^18.0.28",
39+
"@types/react-dom": "^18.0.11",
40+
"@typescript-eslint/eslint-plugin": "^5.54.0",
41+
"@typescript-eslint/parser": "^5.54.0",
42+
"commitizen": "^4.3.0",
4243
"cz-conventional-changelog": "^3.3.0",
4344
"devmoji": "^2.3.0",
44-
"eslint": "^8.32.0",
45+
"eslint": "^8.35.0",
4546
"eslint-config-airbnb": "19.0.4",
4647
"eslint-config-airbnb-typescript": "^17.0.0",
47-
"eslint-config-next": "^13.1.2",
48+
"eslint-config-next": "^13.2.3",
4849
"eslint-config-prettier": "^8.6.0",
4950
"eslint-config-react-app": "^7.0.1",
5051
"eslint-import-resolver-typescript": "^3.5.3",
5152
"eslint-plugin-import": "^2.27.5",
5253
"eslint-plugin-jest": "^27.2.1",
5354
"eslint-plugin-jsx-a11y": "^6.7.1",
5455
"eslint-plugin-prettier": "^4.2.1",
55-
"eslint-plugin-react": "^7.32.1",
56+
"eslint-plugin-react": "^7.32.2",
5657
"eslint-plugin-react-hooks": "^4.6.0",
57-
"eslint-plugin-simple-import-sort": "^9.0.0",
5858
"eslint-plugin-sonarjs": "^0.18.0",
5959
"eslint-plugin-unused-imports": "^2.0.0",
6060
"husky": "^8.0.3",
61-
"jest": "^29.3.1",
62-
"jest-environment-jsdom": "^29.3.1",
63-
"lint-staged": "^13.1.0",
64-
"next-router-mock": "^0.9.1-beta.0",
61+
"jest": "^29.4.3",
62+
"jest-environment-jsdom": "^29.4.3",
63+
"lint-staged": "^13.1.2",
64+
"next-router-mock": "^0.9.2",
6565
"npm-run-all": "^4.1.5",
66-
"prettier": "^2.8.3",
67-
"rimraf": "^4.1.1",
68-
"typescript": "^4.9.4",
66+
"prettier": "^2.8.4",
67+
"rimraf": "^4.1.4",
68+
"typescript": "^4.9.5",
6969
"yarn-or-npm": "^3.0.1"
7070
}
7171
}

0 commit comments

Comments
 (0)