Comments (6)
Will take a look at this one today.
from sass-lint.
Any opinions on whether this should trigger when using both long hand and short hand properties?
Should the following trigger an error?
.foo {
margin-left: 10px;
padding: 0;
margin: 0;
}
from sass-lint.
I reckon it should because you are technically duplicating it there it's just sort of hidden from you, in that instance your margin-left value is being overwritten?
margin: {
margin-top: 0,
margin-right: 0,
margin-bottom: 0,
margin-left: 0
}
from sass-lint.
I've checked out the way SCSS Lint works, and they don't cause an error as technically they are different properties. Maybe this could be a different rule?
property-overwrite
or something similar ? Thoughts?
from sass-lint.
Makes sense to me, maybe that would actaully be preferable so we can keep the rules fairly granular.
from sass-lint.
Since this is only ever disallowing (as you wouldn't ever be enforcing duplicate properties), I think it should follow the current convention for 'disallows' and call it no-duplicate-property
from sass-lint.
Related Issues (20)
- Nested properties not recognized in .sass syntax HOT 1
- sass-lint:disable-block re-enables rules after sass-lint:disable
- README.md includes documentation for `sass-lint:disable-next-line` which has been reverted
- DANGER: 1.13.1 is published to npm and does not appear to reflect your latest source HOT 3
- Request For Additional Info Regarding "Unmaintained" Status HOT 1
- Can't use no-misspelled-properties with interoperable CSS
- sassLint and property-sort-order HOT 1
- scroll-margin violating no-misspelled-properties rule
- Dependencies are out of date - 36 breaking, 569 versions behind
- Property "text-decoration-thickness" marked as mispelled
- sass-lint complains about mixins calls HOT 5
- sass-lint warns about a security vulnerability in minimist package (dependency) HOT 3
- Expected indentation of 0 space but found 2 - Indentation problem - sass-lint Config
- Force pseudo-nesting with parent selector
- condition validaiotn not working HOT 1
- Cannot find eslint formatters module HOT 3
- Please check validity of the block starting from line
- found 6 vulnerabilities (3 moderate, 2 high, 1 critical)
- Invalid syntax when assigning namespaced variables HOT 2
- Extend separate_groups options in PropertySortOrder
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-lint.