# stylelint-rtlcss-comments

> Lint rtlcss directive comments

Latest version **1.0.0-rc.1** (published 2019-02-04) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install stylelint-rtlcss-comments
pnpm add stylelint-rtlcss-comments
yarn add stylelint-rtlcss-comments
bun add stylelint-rtlcss-comments
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-rc.1 |
| Published | 2019-02-04 |
| First published | 2019-02-04 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anton Khlynovskiy |
| Maintainers | tradingview |
| Keywords | rtl, rtlcss, stylelint |

## Links

- npm: https://www.npmjs.com/package/stylelint-rtlcss-comments
- npm.io page: https://npm.io/package/stylelint-rtlcss-comments

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.0-rc.1 (latest) — 2019-02-04

## README

# stylelint-rtlcss-comments

# Usage

```js
module.exports.plugins = [
	// ...
	'stylelint-rtlcss-comments',
	// ...
];

module.exports.rules = {
	// ...
	'rtlcss-comments/block-directives': /* ... */,
	'rtlcss-comments/bang': /* ... */,
	// ...
}
```

## `rtlcss-comments/block-directives`

Disallows usage of `rtl:begin:` and `rtl:end:` block directives depending on options.

### never

`'rtlcss-comments/block-directives': 'never'`

Disallows all the block directives. Other, non-block, directives are still allowed.

```
.invalid {
	/*rtl:begin:ignore*/
	margin-left: 0;
	padding-left: 0;
	/*rtl:end:ignore*/
}
```

```
.valid {
	/*rtl:ignore*/
	margin-left: 0;
	/*rtl:ignore*/
	padding-left: 0;
}
```

### wraps-properties

`'rtlcss-comments/block-directives': 'wraps-properties'`

Only properties (and comments) are allowed within block directives. Directives should begin and end winthin same context: stylesheet, rule or @-rule.

```
.invalid {
	/*rtl:begin:ignore*/
	left: 0;
}
```

```
/*rtl:begin:ignore*/
.invalid {
	left: 0;
}
/*rtl:end:ignore*/
```

```
.valid {
	/*rtl:begin:ignore*/
	left: 0;
	/*rtl:end:ignore*/
}
```


## `rtlcss-comments/bang`

Requires or disallows `!` in all rtlcss directives.

### always

`'rtlcss-comments/bang': 'always'`

```
.invalid {
	/*rtl:ignore*/
	left: 0;
}
```

```
.valid {
	/*!rtl:ignore*/
	left: 0;
}
```

### never

`'rtlcss-comments/bang': 'never'`

```
.invalid {
	/*!rtl:ignore*/
	left: 0;
}
```

```
.valid {
	/*rtl:ignore*/
	left: 0;
}
```

---
_Source: https://npm.io/package/stylelint-rtlcss-comments · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
