scalableminds / coffeelint-min-colon-spacing Goto Github PK
View Code? Open in Web Editor NEWValidate a minimum spacing left and right of a colon assignment
Validate a minimum spacing left and right of a colon assignment
aallison@upbringgrain-lm corazon (master)*$ coffeelint -v
1.6.1
aallison@upbringgrain-lm corazon (master)*$ sudo npm install -g coffeelint-newline-after-function
npm ERR! peerinvalid The package coffeelint does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants coffeelint@~1.3
npm ERR! peerinvalid Peer [email protected] wants coffeelint@~1.1
npm ERR! System Darwin 13.4.0
npm ERR! command "/Users/aallison/.nvm/v0.10.32/bin/node" "/Users/aallison/.nvm/v0.10.32/bin/npm" "install" "-g" "coffeelint-newline-after-function"
npm ERR! cwd /Users/aallison/Workspace/growth/corazon
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/aallison/Workspace/growth/corazon/npm-debug.log
npm ERR! not ok code 0
If I validate this code against the current master
data =
userId: req.currentUserId
lat: req.param 'lat' # optional
lng: req.param 'lng' # optional
set left to 0, and right to 1, I get the following error
โ #47: Colon assignment without proper spacing. Incorrect spacing around column 12.
Minimum Expected left: 0, right: 1.
Got left: 0, right: 3.
This seems incorrect, surely 1 is less than 3?
Furthermore, if I set right
to a high value like 20, it works just fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.