Skip to content

Unexpected top-level property "lintOnSave". #5568

Closed
@ghost

Description

Version

4.4.1

Reproduction link

https://github.com/davidmoseler/vue-dynamic-table

Environment info

Environment Info:
Killed

Steps to reproduce

Clone following repository and run

npm run lint

What is expected?

No error

What is actually happening?

An error happens although the docs are being followed. According to the docs:

ESLint can be configured via .eslintrc or the eslintConfig field in package.json.

And then it gives the configuration structure only for .eslintrc:

module.exports = {
  lintOnSave: false
}

So I used

"eslintConfig": {
    "lintOnSave": false
}

in package.json, and the output is:

 ERROR  Error: ESLint configuration in package.json is invalid:
        - Unexpected top-level property "lintOnSave".

So, either there is a bug, or the docs could probably have an example of where the lintOnSave property is expected in package.json.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions