Skip to content

Plugin requires "parserOptions.sourceType" being configured to "script" #244

Closed
@tristanHessell

Description

@tristanHessell

Rules in this repo have a dependency on eslint being configured with:

...
parserOptions: {
  sourceType: 'script',
}

This is makes sense, but I ran into unexpectedly as I created a plugin from scratch rather than using the yeoman generator (https://github.com/eslint/generator-eslint).
For context, using the generator eslint-plugin-node/recommended gets extended and this config sets the parserOption).

Can we update the documentation somewhere to make it clear that this is a configuration requirement?

I'm happy to create a PR to update README.md with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions