Skip to content

Commit 91de341

Browse files
authored
Prepare 2.0.0 (#1)
1 parent 0f49669 commit 91de341

File tree

13 files changed

+19313
-7873
lines changed

13 files changed

+19313
-7873
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,62 @@
1-
name: Tests
2-
on: [push, pull_request]
3-
env:
4-
CI: true
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '**'
510

611
jobs:
7-
run:
8-
name: Node ${{ matrix.node }} on ${{ matrix.os }}
12+
lint:
13+
name: Lint
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: 'lts/*'
24+
cache: npm
25+
26+
- name: Install latest npm
27+
run: npm install --global npm@latest
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Lint
33+
run: npm run lint
34+
35+
test:
36+
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
37+
938
runs-on: ${{ matrix.os }}
1039

1140
strategy:
1241
fail-fast: false
1342
matrix:
14-
node: [12, 14]
15-
os: [ubuntu-latest, windows-latest]
43+
node: [12, 14, 16]
44+
os: [ubuntu-latest, windows-latest, macos-latest]
1645

1746
steps:
18-
- name: Clone repository
19-
uses: actions/checkout@v2
47+
- uses: actions/checkout@v2
2048

21-
- name: Set Node.js version
22-
uses: actions/setup-node@v1
49+
- name: Use Node.js ${{ matrix.node }}
50+
uses: actions/setup-node@v2
2351
with:
2452
node-version: ${{ matrix.node }}
53+
cache: npm
2554

26-
- run: node --version
27-
- run: npm --version
55+
- name: Install latest npm
56+
run: npm install --global npm@latest
2857

29-
- name: Install npm dependencies
58+
- name: Install dependencies
3059
run: npm ci
3160

32-
- name: Run tests
61+
- name: Test
3362
run: npm test

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.md
1+
__tests__/*.scss

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# 2.0.0
2+
3+
This release adds over a dozen new rules.
4+
5+
If needed, you can [extend the config](README.md#extending-the-config) to turn off any of the new rules.
6+
7+
- Removed: `stylelint` less than `14.0.0` from peer dependencies.
8+
- Changed: updated to [`[email protected]`](https://github.com/stylelint-scss/stylelint-config-recommended-scss/releases/tag/5.0.0).
9+
- Changed: updated to [`[email protected]`](https://github.com/stylelint/stylelint-config-standard/releases/tag/23.0.0).
10+
- Added: `scss/at-else-closing-brace-newline-after` rule.
11+
- Added: `scss/at-else-closing-brace-space-after` rule.
12+
- Added: `scss/at-else-empty-line-before` rule.
13+
- Added: `scss/at-else-if-parentheses-space-before` rule.
14+
- Added: `scss/at-function-parentheses-space-before` rule.
15+
- Added: `scss/at-function-pattern` rule.
16+
- Added: `scss/at-if-closing-brace-newline-after` rule.
17+
- Added: `scss/at-if-closing-brace-space-after` rule.
18+
- Added: `scss/at-mixin-argumentless-call-parentheses` rule.
19+
- Added: `scss/at-mixin-parentheses-space-before` rule.
20+
- Added: `scss/at-mixin-pattern` rule.
21+
- Added: `scss/at-rule-conditional-no-parentheses` rule.
22+
- Added: `scss/dollar-variable-colon-space-after` rule.
23+
- Added: `scss/dollar-variable-colon-space-before` rule.
24+
- Added: `scss/dollar-variable-empty-line-before` rule.
25+
- Added: `scss/dollar-variable-pattern` rule.
26+
- Added: `scss/double-slash-comment-empty-line-before` rule.
27+
- Added: `scss/double-slash-comment-whitespace-inside` rule.
28+
- Added: `scss/percent-placeholder-pattern` rule.
29+
30+
# 1.1.0
31+
32+
- Updated `peerDependencies` to include `stylelint@10`
33+
134
# 1.0.0
235

3-
- Initial release
36+
- Initial release

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,46 @@
11
# stylelint-config-standard-scss
22

33
[![npm version](http://img.shields.io/npm/v/stylelint-config-standard-scss.svg)](https://www.npmjs.org/package/stylelint-config-standard-scss)
4-
[![Build Status](https://github.com/stylelint-scss/stylelint-config-standard-scss/workflows/Tests/badge.svg)](https://github.com/stylelint-scss/stylelint-config-standard-scss/actions?workflow=Tests)
4+
[![Build Status](https://github.com/stylelint-scss/stylelint-config-standard-scss/workflows/Tests/badge.svg)](https://github.com/stylelint-scss/stylelint-config-standard-scss/actions?workflow=CI)
55
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
66
[![Downloads per month](https://img.shields.io/npm/dm/stylelint-config-standard-scss.svg)](https://npmcharts.com/compare/stylelint-config-standard-scss)
7-
[![Greenkeeper badge](https://badges.greenkeeper.io/stylelint-scss/stylelint-config-standard-scss.svg)](https://greenkeeper.io/)
87

98
> The standard shareable SCSS config for Stylelint.
109
11-
Extends [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard) and [`stylelint-config-recommended-scss`](https://github.com/stylelint-scss/stylelint-config-recommended-scss).
10+
This config:
1211

13-
Turns on additional rules to enforce the common stylistic conventions found within a handful of Sass styleguide such as [Sass Guidelines](https://sass-guidelin.es/) and [Sass Style Guide](https://css-tricks.com/sass-style-guide/).
14-
15-
Use it as is or as a foundation for your own config.
12+
- extends the [`stylelint-config-standard` shared config](https://github.com/stylelint/stylelint-config-standard) and configures its rules for SCSS
13+
- extends the [`stylelint-config-recommended-scss` shared config](https://github.com/stylelint-scss/stylelint-config-recommended-scss)
1614

1715
To see the rules that this config uses, please read the [config itself](/index.js).
1816

1917
## Installation
2018

2119
```shell
22-
npm install stylelint stylelint-config-standard-scss --save-dev
20+
npm install --save-dev stylelint-config-standard-scss
2321
```
2422

2523
## Usage
2624

27-
If you've installed `stylelint-config-standard-scss` locally within your project, just set your `stylelint` config to:
25+
Set your `stylelint` config to:
2826

2927
```json
3028
{
3129
"extends": "stylelint-config-standard-scss"
3230
}
3331
```
3432

35-
If you've globally installed `stylelint-config-standard-scss` using the `-g` flag, then you'll need to use the absolute path to `stylelint-config-standard-scss` in your config e.g.
36-
37-
```json
38-
{
39-
"extends": "/absolute/path/to/stylelint-config-standard-scss"
40-
}
41-
```
42-
4333
### Extending the config
4434

4535
Simply add a `"rules"` key to your config, then add your overrides and additions there.
4636

47-
For example, to turn off the `block-no-empty` rule, and add the `unit-whitelist` rule:
37+
For example, to turn off the `scss/dollar-variable-pattern` rule:
4838

4939
```json
5040
{
5141
"extends": "stylelint-config-standard-scss",
5242
"rules": {
53-
"block-no-empty": null,
54-
"unit-whitelist": ["em", "rem", "s"]
43+
"scss/dollar-variable-pattern": null
5544
}
5645
}
5746
```

__tests__/css-invalid.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

__tests__/css-valid.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)