Skip to content

Commit 062f3be

Browse files
authored
Add more setup instructions to @metamask/typescript-eslint-config README (#209)
* Add more setup instructions to `@metamask/typescript-eslint-config` README Additional instructions have been added to explain how to configure ESLint to support rules that require type information. * Remove unnecessary tsconfig change * Remove unnecessary setting of project tsconfig
1 parent 042d441 commit 062f3be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/typescript/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@ module.exports = {
4040
extends: ['@metamask/eslint-config-typescript'],
4141
},
4242
],
43+
44+
// This is required for rules that use type information.
45+
// See here for more information: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
46+
parserOptions: {
47+
tsconfigRootDir: __dirname,
48+
},
4349
};
4450
```

0 commit comments

Comments
 (0)