Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from Shopify/prettier-stylelint-formatter
Browse files Browse the repository at this point in the history
Use prettier-stylelint-formatter fork
  • Loading branch information
ismail-syed authored Nov 17, 2017
2 parents 5ec091b + 6750809 commit dfc0aa8
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 46 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

<!-- ## [Unreleased] -->
## [Unreleased]

- Replaces [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint) with a [forked](https://github.com/ismail-syed/prettier-stylelint-formatter) version addressing an [issue](https://github.com/hugomrdias/prettier-stylelint/issues/3) [#23](https://github.com/Shopify/stylelint-config-shopify/pull/23)

## [3.0.2] - 2017-11-14

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ npm run stylelint

This config also includes a prettier config which can be extended to format `.scss`.

Install [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint):
Install [`prettier-stylelint-formatter`](https://github.com/ismail-syed/prettier-stylelint-formatter):

```
$ yarn add --dev prettier-stylelint
$ yarn add --dev prettier-stylelint-formatter
```

Extend the config in your `package.json`:
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-config-shopify",
"version": "3.0.2",
"version": "4.0.0-alpha.1",
"description": "Shopify's stylelint rules and config",
"main": "index.js",
"repository": {
Expand Down Expand Up @@ -37,10 +37,12 @@
},
"devDependencies": {
"eslint": "^4.8.0",
"eslint-plugin-shopify": "^17.1.0",
"prettier-stylelint": "^0.4.2"
"eslint-plugin-shopify": "^17.1.0"
},
"peerDependencies": {
"stylelint": ">=8.0 <=8.1"
},
"optionalDependencies": {
"prettier-stylelint-formatter": "^0.5.0"
}
}
2 changes: 1 addition & 1 deletion prettier.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
extends: [
'./index',
'prettier-stylelint/config',
'prettier-stylelint-formatter/config',
],

// conflicts with prettier formatting
Expand Down
86 changes: 47 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"

autoprefixer@^7.1.2:
version "7.1.5"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.1.5.tgz#d65d14b83c7cd1dd7bc801daa00557addf5a06b2"
version "7.1.6"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.1.6.tgz#fb933039f74af74a83e71225ce78d9fd58ba84d7"
dependencies:
browserslist "^2.5.0"
caniuse-lite "^1.0.30000744"
browserslist "^2.5.1"
caniuse-lite "^1.0.30000748"
normalize-range "^0.1.2"
num2fraction "^1.2.2"
postcss "^6.0.13"
Expand Down Expand Up @@ -269,12 +269,12 @@ braces@^1.8.2:
preserve "^0.2.0"
repeat-element "^1.1.2"

browserslist@^2.5.0:
version "2.5.1"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.5.1.tgz#68e4bc536bbcc6086d62843a2ffccea8396821c6"
browserslist@^2.5.1:
version "2.9.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.9.0.tgz#706aca15c53be15610f466e348cbfa0c00a6a379"
dependencies:
caniuse-lite "^1.0.30000744"
electron-to-chromium "^1.3.24"
caniuse-lite "^1.0.30000760"
electron-to-chromium "^1.3.27"

buf-compare@^1.0.0:
version "1.0.1"
Expand Down Expand Up @@ -309,9 +309,9 @@ camelcase@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"

caniuse-lite@^1.0.30000744:
version "1.0.30000747"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000747.tgz#da86e78e12d0641abeeaee6ecd55d81bd9bd3b5d"
caniuse-lite@^1.0.30000748, caniuse-lite@^1.0.30000760:
version "1.0.30000764"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000764.tgz#97ea7472f9d3e691eede34f21983cfc219ac7842"

capture-stack-trace@^1.0.0:
version "1.0.0"
Expand All @@ -335,9 +335,9 @@ chalk@^2.0.0, chalk@^2.1.0:
escape-string-regexp "^1.0.5"
supports-color "^4.0.0"

chalk@^2.0.1:
version "2.2.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.2.0.tgz#477b3bf2f9b8fd5ca9e429747e37f724ee7af240"
chalk@^2.0.1, chalk@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba"
dependencies:
ansi-styles "^3.1.0"
escape-string-regexp "^1.0.5"
Expand Down Expand Up @@ -542,9 +542,9 @@ duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"

electron-to-chromium@^1.3.24:
version "1.3.26"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.26.tgz#996427294861a74d9c7c82b9260ea301e8c02d66"
electron-to-chromium@^1.3.27:
version "1.3.27"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.27.tgz#78ecb8a399066187bb374eede35d9c70565a803d"

emoji-regex@^6.1.0:
version "6.5.1"
Expand Down Expand Up @@ -1105,8 +1105,8 @@ ignore@^3.3.3:
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d"

ignore@^3.3.5:
version "3.3.5"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.5.tgz#c4e715455f6073a8d7e5dae72d2fc9d71663dba6"
version "3.3.7"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"

import-lazy@^2.1.0:
version "2.1.0"
Expand Down Expand Up @@ -1182,8 +1182,8 @@ is-arrayish@^0.2.1:
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"

is-buffer@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc"
version "1.1.6"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"

is-builtin-module@^1.0.0:
version "1.0.0"
Expand Down Expand Up @@ -1510,10 +1510,10 @@ lru-cache@^4.0.1:
yallist "^2.1.2"

make-dir@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.0.0.tgz#97a011751e91dd87cfadef58832ebb04936de978"
version "1.1.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51"
dependencies:
pify "^2.3.0"
pify "^3.0.0"

map-obj@^1.0.0, map-obj@^1.0.1:
version "1.0.1"
Expand Down Expand Up @@ -1794,7 +1794,7 @@ path-type@^2.0.0:
dependencies:
pify "^2.0.0"

pify@^2.0.0, pify@^2.2.0, pify@^2.3.0:
pify@^2.0.0, pify@^2.2.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"

Expand Down Expand Up @@ -1835,8 +1835,8 @@ pluralize@^7.0.0:
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"

postcss-less@^1.1.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-1.1.1.tgz#4bd240db517ce3407583d927858184f50045f4ab"
version "1.1.3"
resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-1.1.3.tgz#6930525271bfe38d5793d33ac09c1a546b87bb51"
dependencies:
postcss "^5.2.16"

Expand Down Expand Up @@ -1905,14 +1905,22 @@ postcss@^5.2.16:
source-map "^0.5.6"
supports-color "^3.2.3"

postcss@^6.0.0, postcss@^6.0.11, postcss@^6.0.13, postcss@^6.0.3, postcss@^6.0.6, postcss@^6.0.8:
postcss@^6.0.11:
version "6.0.13"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.13.tgz#b9ecab4ee00c89db3ec931145bd9590bbf3f125f"
dependencies:
chalk "^2.1.0"
source-map "^0.6.1"
supports-color "^4.4.0"

postcss@^6.0.13, postcss@^6.0.14, postcss@^6.0.3, postcss@^6.0.6, postcss@^6.0.8:
version "6.0.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.14.tgz#5534c72114739e75d0afcf017db853099f562885"
dependencies:
chalk "^2.3.0"
source-map "^0.6.1"
supports-color "^4.4.0"

prelude-ls@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
Expand All @@ -1925,9 +1933,9 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier-stylelint@^0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/prettier-stylelint/-/prettier-stylelint-0.4.2.tgz#62845e342f786218b008da69eef14f0a5c05bcfb"
prettier-stylelint-formatter@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/prettier-stylelint-formatter/-/prettier-stylelint-formatter-0.5.0.tgz#9f32cc887058497c43a684b80a47972ad4c091b9"
dependencies:
cosmiconfig "^3.0.1"
debug "^3.0.1"
Expand All @@ -1937,16 +1945,16 @@ prettier-stylelint@^0.4.2:
import-local "^0.1.1"
meow "^3.7.0"
pify "^3.0.0"
prettier "^1.7.0"
prettier "^1.8.2"
resolve-from "^4.0.0"
stylelint "^8.1.1"
temp-write "^3.3.0"
tempy "^0.2.1"
update-notifier "^2.2.0"

prettier@^1.7.0:
version "1.7.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa"
prettier@^1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.2.tgz#bff83e7fd573933c607875e5ba3abbdffb96aeb8"

process-nextick-args@~1.0.6:
version "1.0.7"
Expand Down Expand Up @@ -2336,10 +2344,10 @@ stylelint@^8.1.1:
table "^4.0.1"

sugarss@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-1.0.0.tgz#65e51b3958432fb70d5451a68bb33e32d0cf1ef7"
version "1.0.1"
resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-1.0.1.tgz#be826d9003e0f247735f92365dc3fd7f1bae9e44"
dependencies:
postcss "^6.0.0"
postcss "^6.0.14"

supports-color@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit dfc0aa8

Please sign in to comment.