Comments (8)
It definitely is a nested selector. It might not generate a compound selector but it still generates a selector nevertheless. I’d recommend you don’t use selector nesting entirely, but that’s really up to you.
from sass-boilerplate.
Just updated the configuration for SelectorFormat
, care to try it?
from sass-boilerplate.
Yep. It's expected. :)
from sass-boilerplate.
But it's not a nesting selector. What you suggest for a project using BEM, to get rid of the warning correctly? Disable the sass lint rule ? Or use a mixin instead of & ? Thank you for your fast response :)
from sass-boilerplate.
if I avoid the the syntax of the first post, following your advice to "....have the base name repeated. " (from here). For example:
.example {
top: 43px;
}
.example__section { //<-- this line again
width: 100%;
}
I get another warning from sass-lint about the regexp for the "__". Do I miss something ?
from sass-boilerplate.
Okay, that might be a bug then. :)
Are you using the configuration from this repo?
from sass-boilerplate.
No warnings now. Thank you!
from sass-boilerplate.
Lovely. :)
from sass-boilerplate.
Related Issues (20)
- Responsive common utils? HOT 7
- Tests folder HOT 4
- functions and variables order HOT 7
- import order and vendors HOT 5
- Exclude vendor folder from lint HOT 5
- index.scss (eyeglass-style) HOT 3
- Rename themes to... HOT 6
- Importing in main.scss fails using gulp-sass HOT 7
- Vanilla CSS HOT 1
- Clarify the License HOT 4
- Rewrite the recommendation for vendor (Proposal) HOT 1
- vendor folder should be vendors ? HOT 1
- Add entry to README about `node-sass` configuration
- Question about vendor extension folder HOT 5
- Question about multi-page use. HOT 2
- Shouldn't macro components (layout) be imported AFTER micro components (modules)? HOT 2
- SCSS discourages @import in favor of @use rule HOT 1
- $breakpoint HOT 6
- layout vs layouts HOT 2
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 sass-boilerplate.