Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cf4b9f

Browse files
amirnissimbradzacher
authored andcommitted
docs(eslint-plugin): Add note for running eslint with ext for .ts files (typescript-eslint#547)
1 parent 5792aa1 commit 6cf4b9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-plugin/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ If you want to use rules which require type information, you will need to specif
6868

6969
See [@typescript-eslint/parser's README.md](../parser/README.md) for more information on the available "parserOptions".
7070

71+
**Note: Make sure to use `eslint --ext .js,.ts` since by [default](https://eslint.org/docs/user-guide/command-line-interface#--ext) `eslint` will only search for .js files.**
72+
7173
## Usage with Prettier
7274

7375
Install [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) to disable our code formatting related rules:

0 commit comments

Comments
 (0)