Skip to content

Commit f49fa8f

Browse files
committed
Merge branch 'release/v1.8.0'
2 parents b0ae01f + 60a9c29 commit f49fa8f

30 files changed

+2923
-4168
lines changed

.eslintrc.js

Lines changed: 109 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,119 @@
11
module.exports = {
22
env: {
3-
es2021: true,
4-
node: true,
3+
es2021: true,
4+
node: true,
5+
},
6+
settings: {
7+
react: {
8+
version: "detect",
9+
},
510
},
611
extends: [
7-
"eslint:recommended",
8-
"plugin:react/recommended",
9-
"plugin:@typescript-eslint/recommended",
12+
"eslint:recommended",
13+
"plugin:react/recommended",
14+
"plugin:@typescript-eslint/recommended",
1015
],
1116
parser: "@typescript-eslint/parser",
1217
parserOptions: {
13-
ecmaFeatures: {
14-
jsx: true,
15-
},
16-
ecmaVersion: 12,
17-
sourceType: "module",
18+
ecmaFeatures: {
19+
jsx: true,
20+
},
21+
ecmaVersion: 12,
22+
sourceType: "module",
1823
},
19-
plugins: ["react", "react-hooks", "@typescript-eslint"],
24+
plugins: [
25+
"react",
26+
"react-hooks",
27+
"@typescript-eslint",
28+
"typescript-sort-keys",
29+
"sort-destructure-keys",
30+
"import",
31+
],
2032
rules: {
21-
"linebreak-style": ["error", "unix"],
22-
quotes: ["error", "double"],
23-
semi: ["error", "always"],
24-
"react-hooks/rules-of-hooks": "error",
25-
"react-hooks/exhaustive-deps": "error",
26-
"react/display-name": "off"
33+
"linebreak-style": ["error", "unix"],
34+
quotes: ["warn", "double"],
35+
semi: ["warn", "always"],
36+
"react-hooks/rules-of-hooks": "error",
37+
"react-hooks/exhaustive-deps": "error",
38+
"react/display-name": "off",
39+
"react/prop-types": "off",
40+
"no-unused-vars": "off", // disable the base rule as it can report incorrect errors
41+
"@typescript-eslint/consistent-type-imports": [
42+
"warn",
43+
{ prefer: "type-imports" },
44+
],
45+
"@typescript-eslint/no-unused-vars": [
46+
"warn",
47+
{
48+
vars: "all",
49+
args: "after-used",
50+
ignoreRestSiblings: true,
51+
},
52+
],
53+
"no-unreachable": "warn",
54+
"typescript-sort-keys/interface": "warn",
55+
"typescript-sort-keys/string-enum": "warn",
56+
"sort-destructure-keys/sort-destructure-keys": [
57+
"warn",
58+
{ caseSensitive: false },
59+
],
60+
"react/jsx-sort-props": [
61+
"warn",
62+
{
63+
ignoreCase: true,
64+
reservedFirst: ["key", "children", "ref"],
65+
},
66+
],
67+
"import/order": [
68+
"warn",
69+
{
70+
"newlines-between": "always",
71+
distinctGroup: true,
72+
alphabetize: {
73+
order: "asc",
74+
caseInsensitive: true,
75+
orderImportKind: "desc",
76+
},
77+
groups: [
78+
"builtin",
79+
"external",
80+
"parent",
81+
"sibling",
82+
"internal",
83+
"unknown",
84+
],
85+
pathGroupsExcludedImportTypes: ["react"],
86+
pathGroups: [
87+
{
88+
pattern: "react",
89+
group: "builtin",
90+
position: "before",
91+
},
92+
{
93+
pattern: "([a-z]|@)**",
94+
group: "external",
95+
},
96+
{
97+
pattern: "**/styles",
98+
group: "internal",
99+
position: "before",
100+
},
101+
{
102+
pattern: "**/types",
103+
group: "internal",
104+
position: "before",
105+
},
106+
{
107+
pattern: "**/components/**",
108+
group: "internal",
109+
},
110+
{
111+
pattern: "**/utils/**",
112+
group: "internal",
113+
position: "after",
114+
},
115+
],
116+
},
117+
],
27118
},
28-
};
119+
};

.vscode/settings.json

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "explicit"
4+
},
5+
"eslint.workingDirectories": ["./src"],
6+
"gitmoji.addCustomEmoji": [
7+
{
8+
"emoji": "",
9+
"code": ":sparkles:",
10+
"description": "Introduce new features"
11+
},
12+
{
13+
"emoji": "💄",
14+
"code": ":lipstick:",
15+
"description": "Improve styling/UI"
16+
},
17+
{
18+
"emoji": "👼",
19+
"code": ":angel:",
20+
"description": "Improve user experience"
21+
},
22+
{
23+
"emoji": "🧑‍💻",
24+
"code": ":technologist:",
25+
"description": "Improve developer experience"
26+
},
27+
{
28+
"emoji": "🩹",
29+
"code": ":adhesive_bandage:",
30+
"description": "Minor fix for a non-critical issue"
31+
},
32+
{
33+
"emoji": "🐛",
34+
"code": ":bug:",
35+
"description": "Fix a bug"
36+
},
37+
{
38+
"emoji": "🚑️",
39+
"code": ":ambulance:",
40+
"description": "Make a critical patch"
41+
},
42+
{
43+
"emoji": "😷",
44+
"code": ":mask:",
45+
"description": "Attempt to fix an issue"
46+
},
47+
{
48+
"emoji": "🦺",
49+
"code": ":safety_vest:",
50+
"description": "Safeguard against an issue"
51+
},
52+
{
53+
"emoji": "🚧",
54+
"code": ":construction:",
55+
"description": "Work in progress"
56+
},
57+
{
58+
"emoji": "🧵",
59+
"code": ":thread:",
60+
"description": "Tie up loose end"
61+
},
62+
{
63+
"emoji": "⚡️",
64+
"code": ":zap:",
65+
"description": "Improve performance"
66+
},
67+
{
68+
"emoji": "📱",
69+
"code": ":iphone:",
70+
"description": "Adjust styling for different screen sizes"
71+
},
72+
{
73+
"emoji": "💸",
74+
"code": ":money_with_wings:",
75+
"description": "Make changes to money-related infrastructure"
76+
},
77+
{
78+
"emoji": "🤖",
79+
"code": ":robot_face:",
80+
"description": "Add or update analytics or tracking code"
81+
},
82+
{
83+
"emoji": "📝",
84+
"code": ":memo:",
85+
"description": "Add or update documentation or comments"
86+
},
87+
{
88+
"emoji": "🧽",
89+
"code": ":sponge:",
90+
"description": "Clean up code"
91+
},
92+
{
93+
"emoji": "🚚",
94+
"code": ":truck:",
95+
"description": "Move or rename files/folders"
96+
},
97+
{
98+
"emoji": "♻️",
99+
"code": ":recycle:",
100+
"description": "Refactor code"
101+
},
102+
{
103+
"emoji": "⚰️",
104+
"code": ":coffin:",
105+
"description": "Remove dead code"
106+
},
107+
{
108+
"emoji": "☠️",
109+
"code": ":skull_and_crossbones:",
110+
"description": "Deprecate code"
111+
},
112+
{
113+
"emoji": "🍾",
114+
"code": ":champagne:",
115+
"description": "Begin a project"
116+
},
117+
{
118+
"emoji": "🔖",
119+
"code": ":bookmark:",
120+
"description": "Bump version"
121+
},
122+
{
123+
"emoji": "🍱",
124+
"code": ":bento:",
125+
"description": "Add or update assets"
126+
},
127+
{
128+
"emoji": "💬",
129+
"code": ":speech_balloon:",
130+
"description": "Add or update text"
131+
},
132+
{
133+
"emoji": "",
134+
"code": ":heavy_plus_sign:",
135+
"description": "Add a dependency"
136+
},
137+
{
138+
"emoji": "",
139+
"code": ":heavy_minus_sign:",
140+
"description": "Remove a dependency"
141+
},
142+
{
143+
"emoji": "⬇️",
144+
"code": ":arrow_down:",
145+
"description": "Downgrade dependencies"
146+
},
147+
{
148+
"emoji": "⬆️",
149+
"code": ":arrow_up:",
150+
"description": "Upgrade dependencies"
151+
},
152+
{
153+
"emoji": "📌",
154+
"code": ":pushpin:",
155+
"description": "Pin dependencies to specific versions"
156+
},
157+
{
158+
"emoji": "🤫",
159+
"code": ":shushing_face:",
160+
"description": "Fix linter/compiler warnings"
161+
},
162+
{
163+
"emoji": "🧪",
164+
"code": ":alembic:",
165+
"description": "Add or update tests"
166+
},
167+
{
168+
"emoji": "🔨",
169+
"code": ":hammer:",
170+
"description": "Attempt to fix failing test"
171+
},
172+
{
173+
"emoji": "⚙️",
174+
"code": ":gear:",
175+
"description": "Add or update config"
176+
},
177+
{
178+
"emoji": "🔐",
179+
"code": ":closed_lock_with_key:",
180+
"description": "Add or update secrets"
181+
},
182+
{
183+
"emoji": "🗃️",
184+
"code": ":card_file_box:",
185+
"description": "Make database-related changes"
186+
},
187+
{
188+
"emoji": "🏗️",
189+
"code": ":building_construction:",
190+
"description": "Make architectural/infrastructure changes"
191+
},
192+
{
193+
"emoji": "🥚",
194+
"code": ":egg:",
195+
"description": "Add or update an easter egg"
196+
}
197+
],
198+
"gitmoji.onlyUseCustomEmoji": true
199+
}

0 commit comments

Comments
 (0)