Comments (5)
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.
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.
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"
}
I debugged the configFinder. The exposeModules function in the config file throws an exception.
from linter-coffeelint.
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.
Wow, thanks! It took me several hours of wondering and debugging. That exception stack trace is so bad...
from linter-coffeelint.
Related Issues (20)
- language-coffee-script 'Preferred Line Length' as max_line_length HOT 1
- Migrate CircleCI to a 2.0 configuration HOT 6
- An in-range update of semantic-release is breaking the build 🚨 HOT 4
- An in-range update of @commitlint/cli is breaking the build 🚨 HOT 1
- An in-range update of @commitlint/travis-cli is breaking the build 🚨 HOT 1
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- indent errors for config.cson HOT 2
- Add support for coffeescope HOT 3
- False positive on modern Coffeescript syntax HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 2
- An in-range update of eslint is breaking the build 🚨 HOT 3
- An in-range update of eslint is breaking the build 🚨 HOT 3
- How to use coffeelint modules? HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 8
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 1
- Freezes on long files HOT 3
- CoffeeLint not loaded for .litcoffee files HOT 2
- Cannot convert undefined or null to object HOT 3
- Option to disable when no rules are found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-coffeelint.