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

[one-component-per-file] do not check createApp function written by the developer #2201

Open
2 tasks done
candy-Tong opened this issue Jun 1, 2023 · 0 comments · May be fixed by #2203
Open
2 tasks done

[one-component-per-file] do not check createApp function written by the developer #2201

candy-Tong opened this issue Jun 1, 2023 · 0 comments · May be fixed by #2203
Labels

Comments

@candy-Tong
Copy link

candy-Tong commented Jun 1, 2023

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 8
  • eslint-plugin-vue version: 9.14.1
  • Node version: node16
  • Operating System: win10

Please show your full configuration:

What did you do?

import { createApp } from 'other.js'
test(() => {
    createApp({})
})

test(() => {
    createApp({})
})

I write a function name createApp and when i write the unit test it has eslint one-component-per-file warning.

What did you expect to happen?

There is no eslint warning.

What actually happened?

It show the one-component-per-file warning`

Repository to reproduce this issue

candy-Tong added a commit to candy-Tong/eslint-plugin-vue that referenced this issue Jun 1, 2023
candy-Tong added a commit to candy-Tong/eslint-plugin-vue that referenced this issue Jun 1, 2023
candy-Tong added a commit to candy-Tong/eslint-plugin-vue that referenced this issue Jun 1, 2023
candy-Tong added a commit to candy-Tong/eslint-plugin-vue that referenced this issue Jun 1, 2023
@FloEdelmann FloEdelmann added the bug label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants