Skip to content

Commit dbca115

Browse files
committed
eslint false positive
1 parent 68882bd commit dbca115

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

site/.eslintrc.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ overrides:
4343
# https://coder.com/docs/v2/latest/contributing/frontend#tests-getting-too-slow.
4444
testing-library/no-node-access: off
4545
testing-library/no-container: off
46+
- files: ["e2e/**/*.[tj]s"]
47+
extends: ["plugin:testing-library/react", "plugin:testing-library/dom"]
48+
rules:
49+
testing-library/prefer-screen-queries: "off"
4650
root: true
4751
rules:
4852
"@typescript-eslint/brace-style":
@@ -107,20 +111,16 @@ rules:
107111
- error
108112
- paths:
109113
- name: "@material-ui/core"
110-
message:
111-
"Use path imports to avoid pulling in unused modules. See:
114+
message: "Use path imports to avoid pulling in unused modules. See:
112115
https://material-ui.com/guides/minimizing-bundle-size/"
113116
- name: "@material-ui/icons"
114-
message:
115-
"Use path imports to avoid pulling in unused modules. See:
117+
message: "Use path imports to avoid pulling in unused modules. See:
116118
https://material-ui.com/guides/minimizing-bundle-size/"
117119
- name: "@material-ui/styles"
118-
message:
119-
"Use path imports to avoid pulling in unused modules. See:
120+
message: "Use path imports to avoid pulling in unused modules. See:
120121
https://material-ui.com/guides/minimizing-bundle-size/"
121122
- name: "@material-ui/core/Avatar"
122-
message:
123-
"You should use the Avatar component provided on
123+
message: "You should use the Avatar component provided on
124124
components/Avatar/Avatar"
125125
no-unused-vars: "off"
126126
"object-curly-spacing": "off"
@@ -156,7 +156,6 @@ rules:
156156
message: "Default React import not allowed",
157157
},
158158
]
159-
160159
settings:
161160
react:
162161
version: detect

0 commit comments

Comments
 (0)