Skip to content

Commit

Permalink
Add more setup instructions to @metamask/typescript-eslint-config R…
Browse files Browse the repository at this point in the history
…EADME (#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
  • Loading branch information
Gudahtt committed Nov 16, 2022
1 parent 042d441 commit 062f3be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/typescript/README.md
Expand Up @@ -40,5 +40,11 @@ module.exports = {
extends: ['@metamask/eslint-config-typescript'],
},
],

// This is required for rules that use type information.
// See here for more information: https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
parserOptions: {
tsconfigRootDir: __dirname,
},
};
```

0 comments on commit 062f3be

Please sign in to comment.