Skip to content

ESLint configuration may be out of date #18

@paulbrzeski

Description

@paulbrzeski

I'm getting a console error for the config (below)

Perhaps the ESLint config has changed since this was implemented?

Error log:

[!] (plugin eslint) Error: ESLint configuration in node_modules\rollup-plugin-pug\.eslintrc.js is invalid:
        - Property "overrides" is the wrong type (expected array but got `{"files":["test/*.js"],"env":{"mocha":true},"rules":{"no-console":0}}`).

node_modules\rollup-plugin-pug\dist\runtime.es.js
Error: ESLint configuration in node_modules\rollup-plugin-pug\.eslintrc.js is invalid:
        - Property "overrides" is the wrong type (expected array but got `{"files":["test/*.js"],"env":{"mocha":true},"rules":{"no-console":0}}`).

    at validateConfigSchema (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\shared\config-validator.js:286:15)
    at ConfigArrayFactory._normalizeConfigData (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\config-array-factory.js:574:9)
    at ConfigArrayFactory._loadConfigDataInDirectory (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\config-array-factory.js:526:33)
    at ConfigArrayFactory.loadInDirectory (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\config-array-factory.js:434:18)
    at CascadingConfigArrayFactory._loadConfigInAncestors (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:328:46)
    at CascadingConfigArrayFactory._loadConfigInAncestors (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:347:20)
    at CascadingConfigArrayFactory.getConfigArrayForFile (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:272:18)
    at CLIEngine.isPathIgnored (myproject\node_modules\rollup-plugin-eslint\node_modules\eslint\lib\cli-engine\cli-engine.js:951:18)
    at Object.transform (myproject\node_modules\rollup-plugin-eslint\index.js:36:15)
    at C:\Users\paulb\AppData\Roaming\npm\node_modules\rollup\dist\shared\node-entry.js:13113:25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions