Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint 不會檢查 Markdown 內的 <script> 區塊 #12

Open
rileychh opened this issue Aug 29, 2024 · 0 comments
Open

ESLint 不會檢查 Markdown 內的 <script> 區塊 #12

rileychh opened this issue Aug 29, 2024 · 0 comments

Comments

@rileychh
Copy link
Contributor

ESLint 現在只對 Markdown 檔案啟用 format 規則(可以用 Config Inspector 檢查)。也就是說,這樣子的檔案也會通過 Lint:

<script setup lang="ts">
const foo ='42';
    console.log  (`Hello ${foo}`)                  ;
</script>

# 這是一個 Markdown 檔案

不是很理想對吧?要想辦法對 Markdown 檔案啟用 Vue 插件的規則才行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant