Commit 006d74f
feat: add type declaration file (#279)
* Add type declaration file
Hand roll a type declaration file for `flat.js` that accurately reflects
the exported plugin. This resolves type errors when attempting to use
`globals` and `recommended` configs in type-checked eslint configs and
also aids in autocomplete when typing (as in keyboard button press, not
"does it satisfy expected type") properties of the plugin.
* (Revisions) Add type declaration file
Update code style from review
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
---------
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>1 parent 9015c2e commit 006d74f
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments