Code Monkey home page Code Monkey logo

Comments (5)

n0m0r3pa1n avatar n0m0r3pa1n commented on August 10, 2024

I think the problem is in the core.coffee file and it is connected with the filePath variable which is passed to the lint method. I think the configFinder.getConfig is throwing an exception. When I manually place the path it does not throw anything but I still can not make it work with the plugins. It works when I call : coffeelint -f coffeelint.json ./src/

from linter-coffeelint.

AsaAyers avatar AsaAyers commented on August 10, 2024

Nothing is expecting you to install globally. IMO npm install -g is a bad idea and should only be allowed for packages that expose a shell command.

Do you also have coffeelint installed as a dependency of your project?

from linter-coffeelint.

n0m0r3pa1n avatar n0m0r3pa1n commented on August 10, 2024

Yes, it is a local dependency. This is part of the package.json:

"devDependencies": {
    "assert": "^1.3.0",
    "chai": "^3.5.0",
    "co-mocha": "^1.1.2",
    "coffeelint": "^1.15.0",
    "coffeelint-camel-case-vars": "0.0.4",
    "coffeelint-forbidden-keywords": "~0.1.1",
    "coffeelint-function-call-whitespace": "~0.1.3",
    "coffeelint-limit-newlines": "~0.0.2",
    "coffeelint-no-class-fat-arrows": "^0.1.0",
    "coffeelint-no-implicit-returns": "0.0.5",
    "coffeelint-no-trailing-commas": "~1.0.3",
    "coffeelint-prefer-double-quotes": "~0.1.0",
    "coffeelint-variable-scope": "~0.0.3",
    "inject-then": "^2.0.5",
    "mocha": "^2.4.5",
    "mocha-mongoose": "^1.1.1",
    "sinon": "^1.17.3"
  }

Screenshot of the editor

I debugged the configFinder. The exposeModules function in the config file throws an exception.

from linter-coffeelint.

AsaAyers avatar AsaAyers commented on August 10, 2024

https://github.com/jasonku/coffeelint-no-trailing-commas/blob/master/package.json#L5

That package is broken. Their package.json says the entry point is index.js, but that file doesn't exist. They should be publishing compiled JavaScript to NPM and main has to point to that file.

from linter-coffeelint.

n0m0r3pa1n avatar n0m0r3pa1n commented on August 10, 2024

Wow, thanks! It took me several hours of wondering and debugging. That exception stack trace is so bad...

from linter-coffeelint.

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.