From 3aae1928927bfa3d3d8bcadb40433814a67a3eae Mon Sep 17 00:00:00 2001 From: Rui Wu Date: Sun, 14 Jul 2024 09:37:45 +0800 Subject: [PATCH] feat: introduce `extensionsWithStyleElement` option --- CHANGELOG.md | 3 ++- README.md | 7 +++++++ README.zh-CN.md | 7 +++++++ src/types.ts | 8 ++++++++ src/utils.ts | 23 +++++++++++++++-------- 5 files changed, 39 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79405bc..14630de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## Unreleased -- feat: support `astro` by default +- feat!: remove `chokidar` +- feat: introduce `extensionsWithStyleElement` option ## 4.4.0 (2024-02-24) diff --git a/README.md b/README.md index 7891ed4..4edec13 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,13 @@ If you're using the plugin defaults, the plugin will only call [eslint.lintFiles If you enable the `lintOnStart` option or disable the `lintDirtyOnly` option, the option value will not take effect. You need to change `include` value to include this option value. +### `extensionsWithStyleElement` + +- Type: `string[]` +- Default: `['.vue', '.svelte']` + +The file extensions that may have `