From 70fa83d099895368bfc1ff4f714ad60f2ecdcb75 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Thu, 25 Oct 2018 15:47:29 -0700 Subject: [PATCH 1/2] add options to README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index f7027ec..bf62d97 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,18 @@ Instead, you also need to make use of one more plugins which will add or extend By far the most common case will be installing the [eslint-plugin-typescript](https://github.com/nzakas/eslint-plugin-typescript) plugin, but there are also other relevant options available such a [eslint-plugin-tslint](https://github.com/JamesHenry/eslint-plugin-tslint). +## Options + +The following are the available options and their default values: + +```js +parserOptions: { + ecmaFeatures: { + jsx: false, + } +} +``` + ## Supported TypeScript Version We will always endeavor to support the latest stable version of TypeScript. From e679acf77cdb545ab8dc9a31324c9b9f180c381d Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sun, 4 Nov 2018 16:08:11 -0800 Subject: [PATCH 2/2] Link to full options --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf62d97..c34e0ec 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,12 @@ By far the most common case will be installing the [eslint-plugin-typescript](ht ## Options -The following are the available options and their default values: +The full list of options can be found in the [typescript-estree README](https://github.com/JamesHenry/typescript-estree#parsecode-options). Use them like this in your eslintrc: ```js parserOptions: { ecmaFeatures: { - jsx: false, + jsx: true, } } ```