Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stylelint/stylelint-config-standard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 25.0.0
Choose a base ref
...
head repository: stylelint/stylelint-config-standard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 26.0.0
Choose a head ref
  • 9 commits
  • 8 files changed
  • 3 contributors

Commits on Mar 26, 2022

  1. Bump minimist from 1.2.5 to 1.2.6 (#242)

    Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
    - [Release notes](https://github.com/substack/minimist/releases)
    - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)
    
    ---
    updated-dependencies:
    - dependency-name: minimist
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 26, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    089a535 View commit details

Commits on Apr 29, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e6d44ab View commit details

Commits on May 4, 2022

  1. Update deps (#246)

    ybiquitous authored May 4, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    967f120 View commit details

Commits on May 21, 2022

  1. Update deps (#247)

    This change:
    
    - includes the `husky` major update.
      See https://github.com/typicode/husky/releases/tag/v8.0.0
    - syncs the `pre-commit` script with one in the `stylelint/stylelint` repo.
      See https://github.com/stylelint/stylelint/blob/e1e28fec4b4f1a98fc94d81b7ffa0cdb393242ac/.husky/pre-commit
    ybiquitous authored May 21, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    120a9e6 View commit details

Commits on May 24, 2022

  1. Bump deps (#248)

    ybiquitous authored May 24, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    271ae9d View commit details

Commits on May 25, 2022

  1. Bump deps (#249)

    ybiquitous authored May 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2f7299e View commit details

Commits on Jun 7, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    74b33f7 View commit details

Commits on Jun 8, 2022

  1. Prepare 26.0.0 (#253)

    * Refactor out redundant no-irregular-whitespace
    
    * Add selector-not-notation
    
    * Add import-notation
    
    * Update deps
    
    * Update changelog
    
    * Update version number
    
    * Update recommended config
    
    * Fix order
    
    * Fix fixture
    jeddy3 authored Jun 8, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    848e372 View commit details
  2. 26.0.0

    jeddy3 committed Jun 8, 2022
    Copy the full SHA
    bb7c7ca View commit details
Showing with 1,659 additions and 2,690 deletions.
  1. +4 −52 .github/workflows/nodejs.yml
  2. +2 −2 .husky/pre-commit
  3. +7 −0 CHANGELOG.md
  4. +2 −2 README.md
  5. +2 −2 __tests__/valid.css
  6. +2 −1 index.js
  7. +1,629 −2,620 package-lock.json
  8. +11 −11 package.json
56 changes: 4 additions & 52 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -11,57 +11,9 @@ on:

jobs:
lint:
name: Lint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js LTS
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
cache: npm

- name: Install latest npm
run: npm install --global npm@8.3
# TODO: npm@8.4 is broken on Windows. See https://github.com/npm/cli/issues/4341
# run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
uses: stylelint/.github/.github/workflows/lint.yml@main

test:
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install latest npm
run: npm install --global npm@8.3
# TODO: npm@8.4 is broken on Windows. See https://github.com/npm/cli/issues/4341
# run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Test
run: npm test
uses: stylelint/.github/.github/workflows/test.yml@main
with:
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
[ -n "$CI" ] && exit 0

. "$(dirname "$0")/_/husky.sh"
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 26.0.0

- Removed: `stylelint` less than `14.9.0` from peer dependencies.
- Changed: updated to [`stylelint-config-recommended@8.0.0`](https://github.com/stylelint/stylelint-config-recommended/releases/tag/8.0.0)
- Added: `import-notation` rule.
- Added: `selector-not-notation` rule.

## 25.0.0

- Removed: `stylelint` less than `14.4.0` from peer dependencies.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@ To see the rules that this config uses, please read the [config itself](./index.

<!-- prettier-ignore -->
```css
@import url("x.css");
@import url("y.css");
@import "x.css";
@import "y.css";

/**
* Multi-line comment
4 changes: 2 additions & 2 deletions __tests__/valid.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url("x.css");
@import url("y.css");
@import "x.css";
@import "y.css";

/**
* Multi-line comment
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ module.exports = {
'function-url-quotes': 'always',
'function-whitespace-after': 'always',
'hue-degree-notation': 'angle',
'import-notation': 'string',
indentation: 2,
'keyframes-name-pattern': [
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
@@ -108,7 +109,6 @@ module.exports = {
'media-query-list-comma-space-before': 'never',
'no-empty-first-line': true,
'no-eol-whitespace': true,
'no-irregular-whitespace': true,
'no-missing-end-of-source-newline': true,
'number-leading-zero': 'always',
'number-max-precision': 4,
@@ -145,6 +145,7 @@ module.exports = {
'selector-list-comma-space-before': 'never',
'selector-max-empty-lines': 0,
'selector-no-vendor-prefix': true,
'selector-not-notation': 'complex',
'selector-pseudo-class-case': 'lower',
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-pseudo-element-case': 'lower',
4,249 changes: 1,629 additions & 2,620 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-config-standard",
"version": "25.0.0",
"version": "26.0.0",
"description": "Standard shareable config for Stylelint",
"keywords": [
"stylelint",
@@ -45,23 +45,23 @@
]
},
"dependencies": {
"stylelint-config-recommended": "^7.0.0"
"stylelint-config-recommended": "^8.0.0"
},
"devDependencies": {
"@stylelint/prettier-config": "^2.0.0",
"@stylelint/remark-preset": "^3.0.0",
"eslint": "^8.8.0",
"eslint-config-stylelint": "^15.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.3",
"np": "^7.6.0",
"eslint": "^8.16.0",
"eslint-config-stylelint": "^15.1.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.4.2",
"np": "^7.6.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"prettier": "^2.6.2",
"remark-cli": "^10.0.1",
"stylelint": "^14.4.0"
"stylelint": "^14.9.0"
},
"peerDependencies": {
"stylelint": "^14.4.0"
"stylelint": "^14.9.0"
}
}