From 2a903dbb4124e239fcc59789e10f91832120e337 Mon Sep 17 00:00:00 2001 From: Kirill Konshin Date: Tue, 29 Jan 2019 09:13:52 -0800 Subject: [PATCH 1/5] Update README.md for #1256 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6f826a85b..7a5a2d531 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,18 @@ rules: # etc... ``` +# Typescript + +You may use the following shortcut or assemble your own config using the granular settings described below. + +```yaml +extends: + - eslint:recommended + - plugin:import/errors + - plugin:import/warnings + - plugin:import/typescript # this line does the trick +``` + # Resolvers With the advent of module bundlers and the current state of modules and module From 5fe92d88c182a2ad77cf089e3aee2536e765010a Mon Sep 17 00:00:00 2001 From: Kirill Konshin Date: Tue, 29 Jan 2019 10:38:06 -0800 Subject: [PATCH 2/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7a5a2d531..3e22b427d 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,8 @@ rules: You may use the following shortcut or assemble your own config using the granular settings described below. +Make sure you have installed the `@eslint/typescript-parser` which is used in the following configuration. Unfortunately NPM does not allow to list optional peer dependencies. + ```yaml extends: - eslint:recommended From 4d13c57f99cc0eda831ab3ddaf7765b89bdef594 Mon Sep 17 00:00:00 2001 From: Kirill Konshin Date: Tue, 29 Jan 2019 10:38:28 -0800 Subject: [PATCH 3/5] Update typescript.js --- config/typescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/typescript.js b/config/typescript.js index d2d707c58..241c78a50 100644 --- a/config/typescript.js +++ b/config/typescript.js @@ -10,7 +10,7 @@ module.exports = { settings: { 'import/extensions': allExtensions, 'import/parsers': { - 'typescript-eslint-parser': tsExtensions + '@eslint/typescript-parser': tsExtensions }, 'import/resolver': { 'node': { From c8e96ac17fb539930cc769951bb5f1a94b3b8ab8 Mon Sep 17 00:00:00 2001 From: Ben Mosher Date: Wed, 30 Jan 2019 08:00:59 -0500 Subject: [PATCH 4/5] latest package name for official TS ESLint parser --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e22b427d..41bbff0a0 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ rules: You may use the following shortcut or assemble your own config using the granular settings described below. -Make sure you have installed the `@eslint/typescript-parser` which is used in the following configuration. Unfortunately NPM does not allow to list optional peer dependencies. +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: @@ -158,6 +158,8 @@ extends: - 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 From 784b6024be45251e9a793a51e55d85a9f0e1c1a2 Mon Sep 17 00:00:00 2001 From: Ben Mosher Date: Wed, 30 Jan 2019 08:01:25 -0500 Subject: [PATCH 5/5] update package name --- config/typescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/typescript.js b/config/typescript.js index 241c78a50..6a2a08618 100644 --- a/config/typescript.js +++ b/config/typescript.js @@ -10,7 +10,7 @@ module.exports = { settings: { 'import/extensions': allExtensions, 'import/parsers': { - '@eslint/typescript-parser': tsExtensions + '@typescript-eslint/parser': tsExtensions }, 'import/resolver': { 'node': {