From 746af731bbab45d2a095ca52fb11f6c7894ea7b6 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Tue, 9 Aug 2022 23:20:15 +0900 Subject: [PATCH 1/3] Add support for parser object to `parserOptions.parser` --- README.md | 20 ++++++++++++++++++ src/common/espree.ts | 16 ++------------ src/common/parser-object.ts | 30 ++++++++++++++++++++++++++ src/common/parser-options.ts | 25 ++++++++++++++++++---- src/script/index.ts | 14 ++++++------ src/sfc/custom-block/index.ts | 14 ++++++------ test/index.js | 40 +++++++++++++++++++++++++++++++++++ 7 files changed, 127 insertions(+), 32 deletions(-) create mode 100644 src/common/parser-object.ts diff --git a/README.md b/README.md index dc7b2123..bdb85d25 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,26 @@ You can also specify an object and change the parser separately for `