Giter Site home page Giter Site logo

Comments (3)

awayken avatar awayken commented on July 19, 2024

This might be related. In the following file, I get the same namingConvention issue but I'm setting a tuple instead of a font stack. Rather than make another issue, I'm including it here. Let me know if you'd like this broken out.

fontfaces.styl

$font-faces = (Regular 400) (Medium 500)

for $face in $font-faces {
    @font-face {
        font-family: $face[ 1 ];
        font-weight: $face[ 2 ];
    }
}

Output:

Warning:  preferred naming convention is lowercase-dash
File: ../temp-stylus/fontfaces.styl
Line: 1: $font-faces = (Regular 400) (Medium 500)

from stylint.

rossPatton avatar rossPatton commented on July 19, 2024

not fully sure how to tackle this one without knowing the context of where a variable is used, and that would require a lot of changes to stylint. var/class/id names can be anything, and font names can be anything.

just use the @stylint off toggle? in my experience, seeing up your font stack is usually just done once, in one place and then used everywhere

from stylint.

awayken avatar awayken commented on July 19, 2024

The project I've been running Stylint against only has two places where I've run into this issue, so I'm willing to use the toggle technique. If I start to run into this more frequently, I might reopen this comment to further the discussion.

Thanks for looking into it!

from stylint.

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.