Giter Club home page Giter Club logo

Comments (3)

sindresorhus avatar sindresorhus commented on May 26, 2024

Make sure you're using the latest ESLint version.

from eslint-config-xo.

LitoMore avatar LitoMore commented on May 26, 2024

@sindresorhus It deleted the node_modules and reinstalled, I got the this error stack:

❯ npm test

> [email protected] test /Users/jiong.huang/Git/fandou
> xo

Error: /Users/jiong.huang/Git/fandou/node_modules/eslint-config-xo/index.js:
	Configuration for rule "array-element-newline" is invalid:
	Value "consistent" should be equal to one of the allowed values.
	Value "consistent" should be object.
	Value "consistent" should match exactly one schema in oneOf.

Referenced from: /Users/jiong.huang/Git/fandou/node_modules/eslint-config-xo/esnext.js
Referenced from:
    at validateRuleOptions (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-validator.js:119:19)
    at Object.keys.forEach.id (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-validator.js:162:9)
    at Array.forEach (<anonymous>)
    at validateRules (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-validator.js:161:30)
    at Object.validate (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-validator.js:239:5)
    at loadFromDisk (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-file.js:516:19)
    at load (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-file.js:559:20)
    at configExtends.reduceRight (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-file.js:425:36)
    at Array.reduceRight (<anonymous>)
    at applyExtends (/Users/jiong.huang/Git/fandou/node_modules/xo/node_modules/eslint/lib/config/config-file.js:403:26)
npm ERR! Test failed.  See above for more details.

It seems the eslint-config-xo is using the eslint from the xo. But the eslint version in xo is 4.19.1.

from eslint-config-xo.

LitoMore avatar LitoMore commented on May 26, 2024

Seems it fixed in [email protected].

Closing.

from eslint-config-xo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.