Skip to content

Commit

Permalink
Update README.md for #1256 (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-konshin authored and benmosher committed Jan 30, 2019
1 parent 9bac44e commit bdc05aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,22 @@ rules:
# etc...
```

# Typescript

You may use the following shortcut or assemble your own config using the granular settings described below.

Make sure you have installed the [`@typescript-eslint/parser`] which is used in the following configuration. Unfortunately NPM does not allow to list optional peer dependencies.

```yaml
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript # this line does the trick
```

[`@typescript-eslint/parser`]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser

# Resolvers

With the advent of module bundlers and the current state of modules and module
Expand Down
2 changes: 1 addition & 1 deletion config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
settings: {
'import/extensions': allExtensions,
'import/parsers': {
'typescript-eslint-parser': tsExtensions
'@typescript-eslint/parser': tsExtensions
},
'import/resolver': {
'node': {
Expand Down

3 comments on commit bdc05aa

@Kerumen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Do you plan to cut a new version soon?

@aliankarali
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you release this already?

@prcdpr
Copy link

@prcdpr prcdpr commented on bdc05aa Apr 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this fix to be released, can you please publish new version?

Please sign in to comment.