Code Monkey home page Code Monkey logo

eslint-issue-3474's Introduction

To reproduce the issues:

git clone https://github.com/gajus/eslint-issue-3474.git
cd eslint-issue-3474
npm install
node ./node_modules/.bin/eslint index.js

which ought to produce:

curiosity:eslint-issue-3474 gajus$ node ./node_modules/.bin/eslint index.js
/eslint-issue-3474/node_modules/eslint/lib/rules/sort-vars.js:21
                    var lastVariableName = memo.id.name,
                                               ^
TypeError: Cannot read property 'id' of undefined
    at /eslint-issue-3474/node_modules/eslint/lib/rules/sort-vars.js:21:48
    at Array.reduce (native)
    at EventEmitter.VariableDeclaration (/eslint-issue-3474/node_modules/eslint/lib/rules/sort-vars.js:19:31)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)
    at Controller.controller.traverse.enter (/eslint-issue-3474/node_modules/eslint/lib/eslint.js:824:25)
    at Controller.__execute (/eslint-issue-3474/node_modules/eslint/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/eslint-issue-3474/node_modules/eslint/node_modules/estraverse/estraverse.js:495:28)
    at EventEmitter.module.exports.api.verify (/eslint-issue-3474/node_modules/eslint/lib/eslint.js:817:24)
    at processText (/eslint-issue-3474/node_modules/eslint/lib/cli-engine.js:199:27)

eslint-issue-3474's People

Contributors

gajus avatar

Watchers

 avatar  avatar

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.