Giter Site home page Giter Site logo

Comments (6)

kevinsawicki avatar kevinsawicki commented on July 30, 2024

This was intended behavior so that if the file being imported many times had lint errors it wouldn't be reported over and over again for each file being imported into.

I feel like this should be an option to the config since it is nice to be able to disable it when importing third-party libraries with possible lint errors.

What do you think about that? Maybe call it lintImports or something in the config?

from grunt-lesslint.

merio avatar merio commented on July 30, 2024

I very much agree on adding a configuration option for this.
Maybe the config can accept an array of imported files that are allowed/not allowed to be linted? In this way you can include/exclude files using the usual grunt patterns such as ['dir//*.less', '!dir/dir2//*.less']

from grunt-lesslint.

kevinsawicki avatar kevinsawicki commented on July 30, 2024

Yeah, you are right, that is a better idea.

from grunt-lesslint.

merio avatar merio commented on July 30, 2024

Awesome, do you want me to try and make a PR or are you going to work on it? Just to be sure we're not duplicating efforts :)

from grunt-lesslint.

kevinsawicki avatar kevinsawicki commented on July 30, 2024

I can do it in the next couple days, but if you want to do it, a PR is definitely welcome.

Let me know.

from grunt-lesslint.

kevinsawicki avatar kevinsawicki commented on July 30, 2024

I pushed a fix for this and released it as 0.9.0. You can now add an imports glob.

Please let me know if you have any issues with it.

from grunt-lesslint.

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.