Skip to content

Commit

Permalink
Merge pull request #10 from sky-uk/update-stylelint
Browse files Browse the repository at this point in the history
Bump Stylelint
  • Loading branch information
joe-bell authored Mar 2, 2017
2 parents 6a16caf + 3932d1b commit 4c34e0a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ In your stylesheet this would look like:
```scss
.block {
/* block styles here */
}

.block__element {
/* element styles here */
}
.block__element {
/* element styles here */
}
```

Expand Down Expand Up @@ -244,21 +244,21 @@ Defining separately:
border: solid 1px grey;
transition: border 1s ease;

.c-example__heading {
text-transform: uppercase;
}

&:focus,
&:hover {
text-decoration: underline;
border: solid 1px black;
border: solid 1px black;
}

@media(min-width: 721px) {
font-size: 1em;
}
}

.c-example__heading {
text-transform: uppercase;
}

/* States
=========================================== */

Expand Down
16 changes: 7 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'always',
{
except: [
'blockless-group',
'blockless-after-blockless',
'first-nested',
],
ignore: [
Expand Down Expand Up @@ -39,7 +39,6 @@ module.exports = {
],
'comment-no-empty': true,
'comment-whitespace-inside': 'always',
'custom-property-no-outside-root': true,
'declaration-bang-space-after': 'never',
'declaration-bang-space-before': 'always',
'declaration-block-no-duplicate-properties': [
Expand All @@ -50,7 +49,6 @@ module.exports = {
],
},
],
'declaration-block-no-ignored-properties': true,
'declaration-block-no-redundant-longhand-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-semicolon-newline-after': 'always',
Expand Down Expand Up @@ -88,15 +86,14 @@ module.exports = {
2,
{
ignore: [
'at-rules-without-declaration-blocks',
'blockless-at-rules',
],
},
],
'media-feature-colon-space-after': 'always',
'media-feature-colon-space-before': 'never',
'media-feature-name-case': 'lower',
'media-feature-name-no-unknown': true,
'media-feature-no-missing-punctuation': true,
'media-feature-parentheses-space-inside': 'never',
'media-feature-range-operator-space-after': 'always',
'media-feature-range-operator-space-before': 'always',
Expand All @@ -114,9 +111,12 @@ module.exports = {
},
'property-case': 'lower',
'property-no-unknown': true,
'rule-non-nested-empty-line-before': [
'rule-empty-line-before': [
'always-multi-line',
{
except: [
'first-nested',
],
ignore: [
'after-comment',
],
Expand All @@ -136,7 +136,6 @@ module.exports = {
'selector-list-comma-space-after': 'always-single-line',
'selector-list-comma-space-before': 'never',
'selector-max-empty-lines': 0,
'selector-no-empty': true,
'selector-no-id': true,
'selector-pseudo-class-case': 'lower',
'selector-pseudo-class-no-unknown': true,
Expand All @@ -149,8 +148,7 @@ module.exports = {
'shorthand-property-no-redundant-values': true,
'string-no-newline': true,
'string-quotes': 'double',
'stylelint-disable-reason': 'always-before',
'time-no-imperceptible': true,
'time-min-milliseconds': 10,
'unit-case': 'lower',
'unit-no-unknown': true,
'value-keyword-case': [
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-config-sky-uk",
"version": "2.0.0",
"version": "3.0.0",
"description": "Sky's CSS Stylelint configuration, following our Style Guide",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -41,13 +41,13 @@
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.9.0",
"pre-commit": "^1.2.2",
"stylelint": "^7.8.0",
"stylelint-scss": "^1.4.1",
"stylelint": "^7.9.0",
"stylelint-scss": "^1.4.3",
"stylelint-selector-bem-pattern": "^1.0.0"
},
"peerDependencies": {
"stylelint": "^7.8.0",
"stylelint-scss": "^1.4.1",
"stylelint": "^7.9.0",
"stylelint-scss": "^1.4.3",
"stylelint-selector-bem-pattern": "^1.0.0"
},
"eslintConfig": {
Expand Down

0 comments on commit 4c34e0a

Please sign in to comment.