Skip to content

Commit

Permalink
feat: new rules (#291)
Browse files Browse the repository at this point in the history
Co-authored-by: nikkeyl <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Nov 29, 2024
1 parent b6d9df2 commit 7e988e4
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 97 deletions.
48 changes: 6 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,48 +38,6 @@ export default defineConfig({
});
```

### Add the Space Between Logical Groups

If you want to add spaces between logical groups,
add this rule to your **Stylelint** config:

```js
import { defineConfig } from 'stylelint-define-config';

export default defineConfig({
extends: '@archoleat/stylelint-config-extended-scss',
rules: {
'declaration-empty-line-before': null,
},
});
```

#### Before

```scss
.popup {
opacity: 0;
position: fixed;
inset: 0;
z-index: 1;
pointer-events: none;
}
```

#### After

```scss
.popup {
opacity: 0;

position: fixed;
inset: 0;
z-index: 1;

pointer-events: none;
}
```

## This Config

### Extends
Expand Down Expand Up @@ -149,6 +107,9 @@ This is a list of the lints turned on in this configuration.
Rule enabled.
- Disallow the use of `@debug`.

- [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before):
Rule enabled.

##### Case

- [`value-keyword-case`](https://stylelint.io/user-guide/rules/value-keyword-case):
Expand All @@ -166,6 +127,9 @@ This is a list of the lints turned on in this configuration.
- [`declaration-no-important`](https://stylelint.io/user-guide/rules/declaration-no-important):
Rule enabled.

- [`declaration-empty-line-before`](https://stylelint.io/user-guide/rules/declaration-empty-line-before):
Rule enabled.

##### Descending

- [`no-descending-specificity`](https://stylelint.io/user-guide/rules/no-descending-specificity):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { describe, expect, test as spec } from 'vitest';

import { createLogicalGroup } from '#utils';
import { propertiesGroup } from '#utils';

describe('Create Logical Group', async () => {
describe('Create Properties Group', async () => {
spec(
'should create an object with (groupName: String, properties: [])',
async () => {
const properties = ['display', 'z-index'];

await createLogicalGroup({
await propertiesGroup({
groupName: 'Test Group Name',
properties,
}).then((parameters) => {
Expand Down
Loading

0 comments on commit 7e988e4

Please sign in to comment.