Git Product home page Git Product logo

node-lesslint's People

Contributors

chriswong avatar ielgnaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-lesslint's Issues

求帮助?

我在开发atom插件时遇到一个问题,
代码 https://github.com/ecomfe/node-lesslint/blob/master/lib/LesslintVisitor.js#L270

   this._visitor = new tree.visitor(this);   // 加断点tree.visitor is undefined 

我并不认为以下代码能加载依赖模块 less/lib/less/visitor.js
https://github.com/ecomfe/node-lesslint/blob/master/lib/LesslintVisitor.js#L9

var tree = require('less/lib/less/tree');

在atom运行环境中,很显然visitor.js 没有加载进来。
我将代码作了一些调整,
https://github.com/ecomfe/node-lesslint/blob/master/lib/LesslintVisitor.js#L9 改为如下:

var tree = require('less/lib/less/visitor');

然后再less/lib/less/visitor.js模块中导出tree 模块
程序可顺利运行!!

也许你不了解atom运行环境,但是麻烦解释下,less/lib/less/visitor 模块是如何被依赖进来的?
这个bug也只有插件发布的时候会出现,开发中不出现,很诡异!!!!期待回复~

不支持 vendor-prefixes-sort 问题

目前对于有多种私有前缀的属性,是不是还不支持检测?

{
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

graceful-fs的依赖貌似该升级了

安装时fecs的提示
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

查了下依赖,是依赖less的版本过低了,less已经用4以上了

Mixin Error

.foo {
    .transition(width 1s);
    .size(30px, 20px);
    .clearfix();
}

Lesslint v1.0.1 执行检查结果:

fecs  WARN → line 2, col 26: Must contain spaces before the `{`
fecs  WARN → line 3, col 22: Must contain spaces before the `{`
fecs  WARN → line 4, col 16: Must contain spaces before the `{`
fecs  WARN → line 3, col 5: When multiple selectors share a statement block, each selector statement must be per line

判断语法需要针对Mixin做进一步处理

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.