Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

.nvue file support #10

Closed
Siykt opened this issue May 5, 2023 · 1 comment
Closed

.nvue file support #10

Siykt opened this issue May 5, 2023 · 1 comment

Comments

@Siykt
Copy link

Siykt commented May 5, 2023

.nvue file support

目前不支持.nvue文件的类型解析,主要原因应该是在eslint-vue-preser

like-this

复现步骤

  1. clone项目
  2. 修改tsconfig.json include 支持.nvue文件解析
    "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "src/**/*.nvue"]
  3. 修改任意pages下的.vue.nvue即可复现
@ModyQyW
Copy link

ModyQyW commented May 5, 2023

我认为这应该去 eslint-vue-parser 提。.nvue 并不属于 vue 生态内的通用标准,很有可能被驳回支持。

你可以考虑用户侧的 patch,直接修改 eslint-vue-parser 的源码来处理,在源码中找到 ".vue" 并增加 .nvue 的判断应该就可以了。

@zguolee zguolee closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants