It is a little more complicated because you have to omit the previous rule as well (and overriding it may interfere with other CSS rules), so it should be:
.some-class {
&[dir="rtl"] { margin-right: 1em; }
&:not([dir="rtl"]) {
margin-left: 1em;
}
}