Comments (3)
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.
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.
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)
- bug(outdated): -webkit-text-stroke and unicode-bidi properties
- docs(outdated): outdated documentation in official site HOT 1
- Project still maintained? HOT 1
- Checkstyle Reporter
- VS Code Stylint Extension HOT 1
- ^[-1]:hover ^[-1..-1] - property is not valid
- feature_request(config): support config via .stylintrc.js (CommonJS export)
- Asterisk sometimes considered universal selector when used for multiplication
- Add support for "font-variation-settings" (variable fonts) HOT 1
- The .stylintrc file is ignored while using with syntastic in vim.
- Unable to support the Stylint Sublime Text plugin
- CLI support for multiple files HOT 2
- Hexadecimal spelling HOT 1
- bug(duplicates): false positives, if exists comments for Stylus selectors HOT 1
- Would you consider changing license to MIT? HOT 2
- duplicate property or selector, consider merging {block}
- CSS Grid Property is not valid HOT 1
- "valid" and "brackets": false positives on Stylus hashes
- Shareble config support
- Duplicate Warning when use mixin {block}
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.
from stylint.