Skip to content

Commit

Permalink
Merge pull request #10 from wildbit/add-new-rules-stylelint-8
Browse files Browse the repository at this point in the history
Add new rules from Stylelint 8
  • Loading branch information
efedorenko authored Sep 22, 2017
2 parents 9c68043 + 70fb8c6 commit 97d6711
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
'value-list-comma-newline-after': 'always-multi-line',
'value-list-comma-space-after': 'always-single-line',
'value-list-comma-space-before': 'never',
'value-list-max-empty-lines': 0,

// Property
'property-case': 'lower',
Expand All @@ -60,7 +61,7 @@ module.exports = {
// Declaration block
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-no-redundant-longhand-properties': true,
'declaration-block-no-redundant-longhand-properties': [true, {'severity': 'warning'}],
'declaration-block-semicolon-newline-after': 'always-multi-line',
'declaration-block-semicolon-newline-before': 'never-multi-line',
'declaration-block-semicolon-space-after': 'always-single-line',
Expand Down Expand Up @@ -207,17 +208,16 @@ module.exports = {
],

// Block
'block-closing-brace-empty-line-before': 'never',
'block-closing-brace-newline-after': 'always',
'block-closing-brace-newline-before': 'always-multi-line',
'block-closing-brace-space-after': 'always-single-line',
'block-closing-brace-space-before': 'always-single-line',
'block-no-empty': null,
'block-opening-brace-newline-after': ['always'],
'block-closing-brace-newline-before': ['always'],
'block-opening-brace-newline-after': 'always-multi-line',
'block-opening-brace-newline-before': 'never-single-line',
'block-opening-brace-space-after': 'always-single-line',
'block-opening-brace-space-before': 'always',
'block-no-empty': null,

// Selector
'selector-combinator-space-after': 'always',
Expand All @@ -242,12 +242,15 @@ module.exports = {
// Media feature
'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-name-no-vendor-prefix': [true, {'severity': 'warning'}],
'media-feature-range-operator-space-after': 'always',
'media-feature-range-operator-space-before': 'always',
'media-feature-parentheses-space-inside': 'never',

// Comment
'comment-no-empty': true,
'comment-whitespace-inside': 'always',

// General / Sheet
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-config-wildbit",
"version": "1.2.0",
"version": "8.1.1",
"description": "Shareable stylelint config",
"main": "index.js",
"repository": {
Expand All @@ -18,7 +18,7 @@
},
"homepage": "https://github.com/wildbit/stylelint-config-wildbit#readme",
"dependencies": {
"stylelint": "~8.0.0",
"stylelint": "~8.1.1",
"stylelint-order": "^0.6.0"
}
}

0 comments on commit 97d6711

Please sign in to comment.