Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
@candy-Tong

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /