Skip to content

Commit

Permalink
🎁 Add unprefixed gap properties (#166)
Browse files Browse the repository at this point in the history
These are added outside of the other `grid` properties, since it is
now used in `flex` contexts as well, but directly after `grid-gap`
for better backwards-compatibility.

See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/gap)
for reference.

Closes #140
  • Loading branch information
stormwarning committed Jul 31, 2020
1 parent 905c955 commit 78c544f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 73 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ module.exports = {
},
{
// Display mode.
properties: [
'box-sizing',
'display',
],
properties: ['box-sizing', 'display'],
},
{
// Flexible boxes.
Expand Down Expand Up @@ -59,6 +56,10 @@ module.exports = {
'grid-column-gap',
],
},
{
// Gap.
properties: ['gap', 'row-gap', 'column-gap'],
},
{
// Align.
properties: ['align-content', 'align-items', 'align-self'],
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

142 changes: 74 additions & 68 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,77 @@
{
"name": "stylelint-config-recess-order",
"version": "2.0.4",
"description": "Recess-based property sort order for Stylelint.",
"keywords": [
"bootstrap",
"properties-order",
"property order",
"recess",
"stylelint",
"stylelint-config",
"stylelint-order"
],
"homepage": "https://github.com/stormwarning/stylelint-config-recess-order",
"bugs": "https://github.com/stormwarning/stylelint-config-recess-order/issues",
"repository": "stormwarning/stylelint-config-recess-order",
"license": "ISC",
"author": "Jeff Nelson <rustyangel@gmail.com> (http://tidaltheory.co/)",
"main": "index.js",
"scripts": {
"lint": "eslint '**/*.js'",
"semantic-release": "semantic-release",
"test": "ava"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
"name": "stylelint-config-recess-order",
"version": "2.0.4",
"description": "Recess-based property sort order for Stylelint.",
"keywords": [
"bootstrap",
"properties-order",
"property order",
"recess",
"stylelint",
"stylelint-config",
"stylelint-order"
],
"package.json": [
"prettier --write",
"git add"
]
},
"ava": {
"require": [
"esm"
]
},
"dependencies": {
"stylelint-order": "4.1.x"
},
"devDependencies": {
"@zazen/eslint-config": "2.0.x",
"@zazen/semantic-release": "0.1.3",
"ava": "3.9.x",
"eslint": "6.8.x",
"esm": "3.2.25",
"husky": "4.2.x",
"lint-staged": "10.2.x",
"prettier": "2.0.x",
"prettier-plugin-packagejson": "2.2.x",
"semantic-release": "17.1.x",
"stylelint": "13.6.x"
},
"peerDependencies": {
"stylelint": ">=9"
},
"release": {
"extends": "@zazen/semantic-release",
"branches": [
"master",
"next"
]
}
"homepage": "https://github.com/stormwarning/stylelint-config-recess-order",
"bugs": "https://github.com/stormwarning/stylelint-config-recess-order/issues",
"repository": "stormwarning/stylelint-config-recess-order",
"license": "ISC",
"author": "Jeff Nelson <rustyangel@gmail.com> (http://tidaltheory.co/)",
"main": "index.js",
"scripts": {
"lint": "eslint '**/*.js'",
"semantic-release": "semantic-release",
"test": "ava"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"package.json": [
"prettier --write",
"git add"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
},
"ava": {
"require": [
"esm"
]
},
"dependencies": {
"stylelint-order": "4.1.x"
},
"devDependencies": {
"@zazen/eslint-config": "2.0.x",
"@zazen/semantic-release": "0.1.3",
"ava": "3.9.x",
"eslint": "6.8.x",
"esm": "3.2.25",
"husky": "4.2.x",
"lint-staged": "10.2.x",
"prettier": "2.0.x",
"prettier-plugin-packagejson": "2.2.x",
"semantic-release": "17.1.x",
"stylelint": "13.6.x"
},
"peerDependencies": {
"stylelint": ">=9"
},
"release": {
"extends": "@zazen/semantic-release",
"branches": [
"master",
"next"
]
}
}

0 comments on commit 78c544f

Please sign in to comment.