From 98079241558982275ab2a9cc04ad0f7153957d0a Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Mon, 28 Dec 2020 18:18:39 +0800 Subject: [PATCH] default open jsx --- src/eslint.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/eslint.ts b/src/eslint.ts index ec792db..02b653a 100644 --- a/src/eslint.ts +++ b/src/eslint.ts @@ -2,11 +2,10 @@ import * as path from 'path'; import * as fs from 'fs'; import tsEslintConfig from './tsEslintConfig'; -const parserOptions: { - tsconfigRootDir?: string; - project?: string; - createDefaultProgram?: boolean; -} = { +const parserOptions = { + ecmaFeatures: { + jsx: true, + }, project: './tsconfig.json', };