xojs / eslint-config-xo

ESLint shareable config for XO

Home Page:https://github.com/xojs/xo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected top-level property "reportUnusedDisableDirectives" in base config

shanoaice opened this issue · comments

VSCode ESLint Plugin repeorted an error to me when using the xo config preset

Error: ESLint configuration in d:\localforagedown\node_modules\eslint-config-xo\index.js is invalid:
	- Unexpected top-level property "reportUnusedDisableDirectives".

Referenced from: d:\localforagedown\node_modules\eslint-config-xo\browser.js
Referenced from: D:\localforagedown\.eslintrc.js
    at validateConfigSchema (d:\localforagedown\node_modules\eslint\lib\config\config-validator.js:235:15)
    at Object.validate (d:\localforagedown\node_modules\eslint\lib\config\config-validator.js:261:5)
    at loadFromDisk (d:\localforagedown\node_modules\eslint\lib\config\config-file.js:544:19)
    at load (d:\localforagedown\node_modules\eslint\lib\config\config-file.js:587:20)
    at d:\localforagedown\node_modules\eslint\lib\config\config-file.js:453:36
    at Array.reduceRight (<anonymous>)
    at applyExtends (d:\localforagedown\node_modules\eslint\lib\config\config-file.js:431:26)
    at loadFromDisk (d:\localforagedown\node_modules\eslint\lib\config\config-file.js:551:22)
    at load (d:\localforagedown\node_modules\eslint\lib\config\config-file.js:587:20)
    at d:\localforagedown\node_modules\eslint\lib\config\config-file.js:453:36

When I restarted vscode this problem disappears.

This is definitely a VSCode ESLint problem. When you can reproduce, report it over there instead.

Also see: microsoft/vscode-eslint#763