diff --git a/website/docs/GettingStarted.md b/website/docs/GettingStarted.md index 518947392..a12208f7c 100644 --- a/website/docs/GettingStarted.md +++ b/website/docs/GettingStarted.md @@ -70,7 +70,13 @@ Then, add relevant entry to your ESLint config (e.g., `.eslintrc.js`). We recomm ```js module.exports = { - extends: ['plugin:testing-library/react'], + overrides: [ + { + // Test files only + files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'], + extends: ['plugin:testing-library/react'] + } + ] }; ```