From 6cf4b9f364c44bccef84128eb19ad5cd74155475 Mon Sep 17 00:00:00 2001 From: Amir Nissim Date: Wed, 22 May 2019 20:02:52 +0300 Subject: [PATCH] docs(eslint-plugin): Add note for running eslint with ext for .ts files (#547) --- packages/eslint-plugin/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-plugin/README.md b/packages/eslint-plugin/README.md index 18dc3a6e6cda..6b605d31b57b 100644 --- a/packages/eslint-plugin/README.md +++ b/packages/eslint-plugin/README.md @@ -68,6 +68,8 @@ If you want to use rules which require type information, you will need to specif See [@typescript-eslint/parser's README.md](../parser/README.md) for more information on the available "parserOptions". +**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.** + ## Usage with Prettier Install [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) to disable our code formatting related rules: