Skip to content

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

Open
@candy-Tong

Description

@candy-Tong

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