Skip to content

Commit dbc8671

Browse files
docs: add FAQ entry about running ESLint on transpiled code (typescript-eslint#6155)
1 parent d91a5fc commit dbc8671

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/linting/Troubleshooting.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ This is to be expected - ESLint rules do not check file extensions on purpose, a
107107

108108
If you have some pure JavaScript code that you do not want to apply certain lint rules to, then you can use [ESLint's `overrides` configuration](https://eslint.org/docs/user-guide/configuring#configuration-based-on-glob-patterns) to turn off certain rules, or even change the parser based on glob patterns.
109109

110+
## Should I run ESLint on transpiled output JavaScript files?
111+
112+
No.
113+
114+
Source TypeScript files have all the content of output JavaScript files, plus type annotations.
115+
There's no benefit to also linting output JavaScript files.
116+
110117
## TypeScript should be installed locally
111118

112119
Make sure that you have installed TypeScript locally i.e. by using `npm install typescript`, not `npm install -g typescript`,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy