This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
/
.eslintrc
82 lines (81 loc) · 1.81 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"react-app",
"react-app/jest"
],
"plugins": ["prettier", "simple-import-sort"],
"rules": {
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}
],
"react/jsx-curly-brace-presence": [
2,
{
"props": "never"
}
],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": false
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto" // This is need to handle different end-of-line in windows/mac
}
],
"import/first": "error",
"no-nested-ternary": 1,
"import/no-duplicates": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
[
// Packages `react` related packages come first.
"^react",
"^@?\\w",
// Internal packages.
"^@100mslive/react-sdk",
"^@100mslive/react-icons",
"^@100mslive/roomkit-react",
// Side effect imports.
"^\\u0000",
"(components)",
// Other relative imports. Put same-folder imports and `.`.
"^\\./(?=.*/)(?!/?$)",
"^\\.(?!/?$)",
"^\\./?$",
"(plugins)",
"(components)?(.*)(/use.*)",
".*(hooks)",
"(common)",
"(services)",
"(utils)",
"(constants)",
// Style imports.
"^.+\\.?(css)$"
]
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
},
"ignorePatterns": ["src/*.css", "src/images/*"]
}