Skip to content

Commit ad47d6a

Browse files
committedMar 29, 2024
Add some eslint rules
1 parent 44f317b commit ad47d6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+968
-737
lines changed
 

‎.eslintrc.json

+30
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,36 @@
44
"prettier"
55
],
66
"rules": {
7+
"react/no-access-state-in-setstate": [
8+
"error"
9+
],
10+
"react/prefer-read-only-props": [
11+
"error"
12+
],
13+
"react/hook-use-state": [
14+
"error"
15+
],
16+
"react/jsx-sort-props": [
17+
"error"
18+
],
19+
"react/jsx-no-useless-fragment": [
20+
"error"
21+
],
22+
"react/jsx-curly-brace-presence": [
23+
"error",
24+
{
25+
"props": "always",
26+
"children": "always",
27+
"propElementValues": "always"
28+
}
29+
],
30+
"react/function-component-definition": [
31+
"error",
32+
{
33+
"namedComponents": "arrow-function",
34+
"unnamedComponents": "arrow-function"
35+
}
36+
],
737
"no-restricted-imports": [
838
"error",
939
{

‎.idea/codeStyles/Project.xml

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.