Skip to content

Commit c417a52

Browse files
authored
Switched to standard rules for stylelint (#37)
1 parent 5240993 commit c417a52

File tree

5 files changed

+39
-7
lines changed

5 files changed

+39
-7
lines changed

.stylelintrc.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"processors": ["stylelint-processor-styled-components"],
32
"extends": [
4-
"stylelint-config-recommended",
3+
"stylelint-config-standard",
54
"stylelint-config-styled-components"
6-
]
5+
],
6+
"processors": ["stylelint-processor-styled-components"]
77
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules\\typescript\\lib"
3+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"react-dom": "^16.2.0",
5959
"styled-components": "^3.3.2",
6060
"stylelint": "^9.2.1",
61-
"stylelint-config-recommended": "^2.1.0",
61+
"stylelint-config-standard": "^18.2.0",
6262
"stylelint-config-styled-components": "^0.1.1",
6363
"stylelint-processor-styled-components": "^1.3.1",
6464
"ts-jest": "^22.0.1",

src/__utils__/Story.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ import Row from "../row";
55
import StoryProperties from "./StoryProperties";
66

77
const Story = styled.div`
8-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
9-
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
8+
font-family:
9+
-apple-system,
10+
BlinkMacSystemFont,
11+
"Segoe UI",
12+
Roboto,
13+
"Helvetica Neue",
14+
Arial,
15+
sans-serif,
16+
"Apple Color Emoji",
17+
"Segoe UI Emoji",
1018
"Segoe UI Symbol";
1119
${(props: StoryProperties) => (props.fullscreen ? "height: 100%;" : "")}
1220

yarn.lock

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6480,6 +6480,13 @@ postcss-selector-parser@^3.1.0:
64806480
indexes-of "^1.0.1"
64816481
uniq "^1.0.1"
64826482

6483+
postcss-sorting@^3.1.0:
6484+
version "3.1.0"
6485+
resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-3.1.0.tgz#af7c90ee73ad12569a57664eaf06735c2e25bec0"
6486+
dependencies:
6487+
lodash "^4.17.4"
6488+
postcss "^6.0.13"
6489+
64836490
postcss-svgo@^2.1.1:
64846491
version "2.1.6"
64856492
resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-2.1.6.tgz#b6df18aa613b666e133f08adb5219c2684ac108d"
@@ -6513,7 +6520,7 @@ postcss-zindex@^2.0.1:
65136520
postcss "^5.0.4"
65146521
uniqs "^2.0.0"
65156522

6516-
postcss@6.0.22, postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.14, postcss@^6.0.16, postcss@^6.0.17, postcss@^6.0.21, postcss@^6.0.22, postcss@^6.0.6, postcss@^6.0.8:
6523+
postcss@6.0.22, postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.13, postcss@^6.0.14, postcss@^6.0.16, postcss@^6.0.17, postcss@^6.0.21, postcss@^6.0.22, postcss@^6.0.6, postcss@^6.0.8:
65176524
version "6.0.22"
65186525
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.22.tgz#e23b78314905c3b90cbd61702121e7a78848f2a3"
65196526
dependencies:
@@ -7896,10 +7903,24 @@ stylelint-config-recommended@^2.1.0:
78967903
version "2.1.0"
78977904
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz#f526d5c771c6811186d9eaedbed02195fee30858"
78987905

7906+
stylelint-config-standard@^18.2.0:
7907+
version "18.2.0"
7908+
resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-18.2.0.tgz#6283149aba7f64f18731aef8f0abfb35cf619e06"
7909+
dependencies:
7910+
stylelint-config-recommended "^2.1.0"
7911+
78997912
stylelint-config-styled-components@^0.1.1:
79007913
version "0.1.1"
79017914
resolved "https://registry.yarnpkg.com/stylelint-config-styled-components/-/stylelint-config-styled-components-0.1.1.tgz#b408388d7c687833ab4be4c4e6522d97d2827ede"
79027915

7916+
stylelint-order@^0.8.1:
7917+
version "0.8.1"
7918+
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-0.8.1.tgz#35f71af3a15954154e0e99e5646ba3d6fbe34f8d"
7919+
dependencies:
7920+
lodash "^4.17.4"
7921+
postcss "^6.0.14"
7922+
postcss-sorting "^3.1.0"
7923+
79037924
stylelint-processor-styled-components@^1.3.1:
79047925
version "1.3.1"
79057926
resolved "https://registry.yarnpkg.com/stylelint-processor-styled-components/-/stylelint-processor-styled-components-1.3.1.tgz#630f78cc131b782848a731425b037043bd07648e"

0 commit comments

Comments
 (0)