Skip to content

Commit 5bd592e

Browse files
committed
fix(docs): improve docs for suppressing E0214 (undeclared type)
E0214 can be suppressed by configuration. Mention this in the configuration docs and mention configuration in E0214's docs.
1 parent 74fb1b2 commit 5bd592e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/config.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The following groups are supported for the *global-groups* configuration propert
165165

166166
*literally-anything*:: all possible global variables.
167167
All global variables are defined as shadowable and writable.
168-
This in effect suppresses E0002, E0033, E0057, or E0059 entirely (except if variables are also configured using the *globals* configuration property).
168+
This in effect suppresses E0002, E0033, E0057, E0059, or E0214 entirely (except if variables are also configured using the *globals* configuration property).
169169
This group is not enabled by default.
170170
*browser*:: globals defined in HTML and DOM standards, including *window*, *alert*, and *console*.
171171
This group is enabled by default.
@@ -215,7 +215,7 @@ Such an application might have the following `quick-lint-js.config` file:
215215

216216
'''
217217

218-
If you want to suppress E0002, E0033, E0057, or E0059, configure *globals* or *global-groups*.
218+
If you want to suppress E0002, E0033, E0057, E0059, or E0214, configure *globals* or *global-groups*.
219219
For example, if you're seeing a spurious warning E0057 "use of undeclared variable: MyLibrary" (false positive), use the following configuration in `quick-lint-js.config`:
220220

221221
[source,json]
@@ -227,7 +227,7 @@ For example, if you're seeing a spurious warning E0057 "use of undeclared variab
227227
}
228228
----
229229

230-
If you are not seeing E0002, E0033, E0057, or E0059 (false negative), but you want to see E0057 "use of undeclared variable: $", use one of the following configuration in `quick-lint-js.config`:
230+
If you are not seeing E0002, E0033, E0057, E0059, or E0214 (false negative), but you want to see E0057 "use of undeclared variable: $", use one of the following configuration in `quick-lint-js.config`:
231231

232232
[source,json]
233233
----

docs/errors/E0214.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ const Title: FC = () => {
5656
};
5757
```
5858

59+
Alternatively, if the type is global in your environment, [write a
60+
quick-lint-js.config file](https://quick-lint-js.com/config/).
61+
5962
Introduced in quick-lint-js version 2.5.0.

0 commit comments

Comments
 (0)