coffeelint-camel-case-vars's People
coffeelint-camel-case-vars's Issues
$httpProvider is treated as non camel-case variable
As well as any other variable which name starts with $
.
A simple npm install isn't enough to install the module
Right now I have to do this to use this module in a project:
npm install coffeelint-camel-case-vars
coffee --compile node_modules/coffeelint-camel-case-vars/index.coffee
Without the second command I get a module not found error. Perhaps you forgot to compile before publishing to npm?
Cannot find module 'coffeelint-camel-case-vars'
I'm trying to setup coffeelint-camel-case-vars, but I keep getting this error:
$ coffeelint client/t_admin/admin.coffee
Error: Cannot find module 'coffeelint-camel-case-vars' from '/Users/kyleking/Developer/TeamBikes/TeamBIKES/MeteorApp/client/t_admin'
at module.exports (/usr/local/lib/node_modules/coffeelint/node_modules/resolve/lib/sync.js:32:11)
at expandModuleNames (/usr/local/lib/node_modules/coffeelint/lib/configfinder.js:84:33)
at Object.exports.getConfig (/usr/local/lib/node_modules/coffeelint/lib/configfinder.js:137:16)
at getFallbackConfig (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:140:27)
at lintFiles (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:95:38)
at Object.<anonymous> (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:247:21)
at Object.<anonymous> (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:252:4)
at Module._compile (module.js:399:26)
at Object.Module._extensions..js (module.js:406:10)
at Module.load (module.js:345:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:355:17)
at require (internal/module.js:13:17)
at Object.<anonymous> (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:34:5)
at Module._compile (module.js:399:26)
at Object.Module._extensions..js (module.js:406:10)
at Module.load (module.js:345:32)
at Function.Module._load (module.js:302:12)
at Function.Module.runMain (module.js:431:10)
at startup (node.js:141:18)
at node.js:977:3
Probably related, but originally I would get this error when installing:
$ npm i -g coffeelint-camel-case-vars
[cut]
/usr/local/lib
├── UNMET PEER DEPENDENCY coffeelint@^1.5
└── [email protected]
npm WARN [email protected] requires a peer of coffeelint@^1.5 but none was installed.
Which I solved by running: npm i -g coffeelint coffeelint-camel-case-vars
I also checked:
$ echo $NODE_PATH
/usr/local/lib/node_modules/
I need to install everything globally for the coffeelint sublime linter. Do you know how I could solve this? Thanks in advance!
Too strict about foreign variable names
Sometimes you have to use API provided by external libraries. And if they do not use came case, you are out of luck with this rule.
So maybe this should check only top-level variable names? So if you do Foo.external_api
this should not be an error. But if you do:
class Foo
@external_api = 'bar'
This would be an error.
_$mainPanels should be valid camel case
No?
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.