Compare commits

...

55 Commits

Author SHA1 Message Date
Matthias Kretschmann 5fee44d71a
Merge pull request #23 from bigchaindb/greenkeeper/release-it-12.0.0
Update release-it to the latest version 🚀
2019-05-03 22:53:38 +02:00
greenkeeper[bot] cf44190613 chore(package): update release-it to version 12.0.0 2019-05-03 19:05:22 +00:00
Matthias Kretschmann 104c1d7139
Merge pull request #22 from bigchaindb/greenkeeper/release-it-11.0.0
Update release-it to the latest version 🚀
2019-05-02 10:45:24 +02:00
greenkeeper[bot] 20536097b9 chore(package): update release-it to version 11.0.0 2019-05-01 15:59:07 +00:00
Matthias Kretschmann ef19161688
Release 1.2.2 2019-04-24 11:47:44 +02:00
Matthias Kretschmann 230eabb476
Merge pull request #21 from bigchaindb/feature/packages
bump packages, more loose peer dependencies
2019-04-24 11:46:52 +02:00
Matthias Kretschmann 8f03d6c82e
bump packages, more loose peer dependencies 2019-04-24 11:44:19 +02:00
Matthias Kretschmann ef7f37136b
Merge pull request #20 from bigchaindb/greenkeeper/stylelint-10.0.0
Update stylelint to the latest version 🚀
2019-04-13 15:45:44 +02:00
greenkeeper[bot] 02358e639a chore(package): update stylelint to version 10.0.0 2019-04-13 13:01:53 +00:00
Matthias Kretschmann 6946717372
Merge pull request #18 from bigchaindb/greenkeeper/release-it-10.0.0
Update release-it to the latest version 🚀
2019-01-17 11:14:16 +01:00
greenkeeper[bot] 29eaed2ffb chore(package): update release-it to version 10.0.0 2019-01-17 08:40:20 +00:00
Matthias Kretschmann 7669a977cb
Merge pull request #17 from bigchaindb/greenkeeper/release-it-9.0.0
Update release-it to the latest version 🚀
2018-12-13 15:17:17 +01:00
greenkeeper[bot] e89ac39c03 chore(package): update release-it to version 9.0.0 2018-12-13 13:56:55 +00:00
Matthias Kretschmann 3b82f8dbf3
Merge pull request #16 from bigchaindb/greenkeeper/release-it-8.0.0
Update release-it to the latest version 🚀
2018-11-17 12:01:22 +01:00
greenkeeper[bot] 5a93a3f8f6 chore(package): update release-it to version 8.0.0 2018-11-17 09:46:31 +00:00
Matthias Kretschmann 80942cc1e1
Merge pull request #15 from bigchaindb/greenkeeper/babel-eslint-10.0.0
Update babel-eslint to the latest version 🚀
2018-09-26 10:04:23 +02:00
greenkeeper[bot] ef87c8f9cc chore(package): update babel-eslint to version 10.0.0 2018-09-25 23:40:03 +00:00
Matthias Kretschmann 7275eaaac3
Merge pull request #14 from bigchaindb/greenkeeper/babel-eslint-9.0.0
Update babel-eslint to the latest version 🚀
2018-08-28 10:42:18 +02:00
greenkeeper[bot] f8df22f458 chore(package): update babel-eslint to version 9.0.0 2018-08-28 03:35:59 +00:00
Matthias Kretschmann 10f83e24f7
Merge pull request #13 from bigchaindb/greenkeeper/eslint-5.0.0
Update eslint to the latest version 🚀
2018-06-23 13:09:06 +02:00
greenkeeper[bot] 6ae61f8d09 chore(package): update eslint to version 5.0.0 2018-06-23 08:16:17 +00:00
Matthias Kretschmann 9df8109264
Release 1.2.1 2018-02-21 17:13:19 +01:00
Matthias Kretschmann 2dad8e9a64
bump stylelint & stylelint-config-standard 2018-02-21 17:12:11 +01:00
Matthias Kretschmann 5b85f43b99
Merge pull request #12 from bigchaindb/greenkeeper/stylelint-9.0.0
Update stylelint to the latest version 🚀
2018-02-19 08:48:57 +01:00
greenkeeper[bot] 14b409ddd7 chore(package): update stylelint to version 9.0.0 2018-02-18 10:01:57 +00:00
Matthias Kretschmann 20991b538c
Merge pull request #11 from bigchaindb/greenkeeper/release-it-7.0.0
Update release-it to the latest version 🚀
2018-02-08 10:47:19 +01:00
greenkeeper[bot] 423eb0a380 chore(package): update release-it to version 7.0.0 2018-02-07 23:25:07 +00:00
Matthias Kretschmann bcc9d026a2
Merge pull request #10 from bigchaindb/greenkeeper/release-it-6.1.1
chore(package): update release-it to version 6.1.1
2018-01-31 09:08:11 +01:00
greenkeeper[bot] 4ac3d882ce chore(package): update release-it to version 6.1.1
Closes #9
2018-01-24 22:54:39 +00:00
Matthias Kretschmann b2f6a043da
Release 1.2.0 2017-12-07 12:53:30 +01:00
Matthias Kretschmann 344d150304
dependency updates 2017-12-07 12:50:56 +01:00
Matthias Kretschmann 90a11f2043
Merge pull request #8 from bigchaindb/greenkeeper/release-it-5.0.0
Update release-it to the latest version 🚀
2017-11-22 12:53:01 +02:00
greenkeeper[bot] 9e11b539f9 chore(package): update release-it to version 5.0.0 2017-11-21 22:12:28 +00:00
Matthias Kretschmann 704061d9dd
Merge pull request #7 from bigchaindb/greenkeeper/release-it-4.1.0
chore(package): update release-it to version 4.1.0
2017-10-30 09:13:38 +01:00
greenkeeper[bot] d9edb3d128 chore(package): update release-it to version 4.1.0
Closes #6
2017-10-29 21:24:46 +00:00
Matthias Kretschmann 97d00cce1b Merge pull request #5 from bigchaindb/greenkeeper/babel-eslint-8.0.0
Update babel-eslint to the latest version 🚀
2017-09-13 09:21:30 +02:00
greenkeeper[bot] 646134de0e chore(package): update babel-eslint to version 8.0.0 2017-09-12 18:04:31 +00:00
Matthias Kretschmann 9a7ca02617
Release 1.1.3 2017-07-18 14:08:14 +02:00
Matthias Kretschmann 09f4107d3d
allow @include
- @import is css native, d'oh
2017-07-18 14:07:52 +02:00
Matthias Kretschmann 4bf128be0c
Release 1.1.2 2017-07-18 13:50:24 +02:00
Matthias Kretschmann 42243b7b36
correct syntax for ignored at-rules
* addendum to #4
2017-07-18 13:49:57 +02:00
Matthias Kretschmann b9ff99857e
Release 1.1.1 2017-07-18 13:39:46 +02:00
Matthias Kretschmann a8a441174b Merge pull request #4 from bigchaindb/fix/at-rules
allow Sass custom @rules
2017-07-18 13:38:09 +02:00
Matthias Kretschmann 5852c476cb
allow Sass custom @rules 2017-07-18 13:34:06 +02:00
Matthias Kretschmann e5d035a880
Release 1.1.0 2017-07-18 13:22:36 +02:00
Matthias Kretschmann 62cc96f5e1 Merge pull request #3 from bigchaindb/fix/stylelint
Remove deprecated rules
2017-07-18 13:19:53 +02:00
Matthias Kretschmann 664754d974
switch deprecated rules from example 2017-07-18 13:16:54 +02:00
Matthias Kretschmann ed8d38c73e
update dependencies 2017-07-18 13:13:28 +02:00
Matthias Kretschmann 62b874f927
disallow ID selectors with new rule 2017-07-18 13:11:41 +02:00
Matthias Kretschmann 79538a40e2
remove deprecated rules 2017-07-18 13:03:44 +02:00
Matthias Kretschmann 1ac861ca94 Merge pull request #1 from bigchaindb/greenkeeper/eslint-4.1.0
Update eslint to the latest version 🚀
2017-06-26 09:20:29 +02:00
greenkeeper[bot] 8cef595a6d chore(package): update eslint to version 4.1.0 2017-06-24 04:36:08 +00:00
Matthias Kretschmann 18302b7fc1
missed a badge 2017-06-02 14:02:13 +02:00
Matthias Kretschmann 862ae09979
be more clear in the npm publish part, add instructions for flexibility 2017-05-31 20:59:18 +02:00
Matthias Kretschmann 40d0e78f90
add a badge. badge badge. 2017-05-31 20:37:02 +02:00
4 changed files with 60 additions and 21 deletions

View File

@ -8,7 +8,6 @@ module.exports = {
'color-hex-length': 'short',
'color-named': 'never',
'selector-no-qualifying-type': true,
'selector-no-id': true,
'selector-combinator-space-after': 'always',
'selector-attribute-quotes': 'always',
'selector-attribute-operator-space-before': 'never',
@ -27,7 +26,6 @@ module.exports = {
'comment-empty-line-before': 'always',
'selector-pseudo-element-colon-notation': 'single',
'selector-pseudo-class-parentheses-space-inside': 'never',
'selector-no-type': true,
'media-feature-range-operator-space-before': 'always',
'media-feature-range-operator-space-after': 'always',
'media-feature-parentheses-space-inside': 'never',
@ -40,6 +38,10 @@ module.exports = {
'value-no-vendor-prefix': true,
'max-nesting-depth': 3,
'selector-max-compound-selectors': 3,
'max-empty-lines': 2
'max-empty-lines': 2,
'selector-max-id': 0,
'at-rule-no-unknown': [true, {
'ignoreAtRules': ['extend', 'include', 'mixin']
}]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -1,6 +1,6 @@
{
"name": "stylelint-config-bigchaindb",
"version": "1.0.0",
"version": "1.2.2",
"description": "For consistent CSS across BigchainDB, IPDB & ascribe's repos.",
"main": "index.js",
"files": [
@ -8,9 +8,9 @@
],
"scripts": {
"test": "eslint . --ignore-path .gitignore",
"release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"
"release": "./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-major": "./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"
},
"repository": {
"type": "git",
@ -26,14 +26,16 @@
},
"homepage": "https://github.com/bigchaindb/stylelint-config-bigchaindb#readme",
"devDependencies": {
"babel-eslint": "^7.2.3",
"eslint": "^3.19.0",
"eslint-config-ascribe": "^3.0.1",
"eslint-plugin-import": "^2.3.0",
"release-it": "^2.7.3"
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-config-ascribe": "^3.0.5",
"eslint-plugin-import": "^2.17.2",
"release-it": "^12.0.0",
"stylelint": "^10.0.1",
"stylelint-config-standard": "^18.3.0"
},
"peerDependencies": {
"stylelint": "^7.8.0",
"stylelint-config-standard": "^16.0.0"
"stylelint": ">=9.1.0",
"stylelint-config-standard": ">=18.1.0"
}
}

View File

@ -2,6 +2,8 @@
> 💅 For consistent CSS across BigchainDB, IPDB & ascribe's repos. Extends on [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)
[![css bigchaindb](https://img.shields.io/badge/css-bigchaindb-39BA91.svg)](https://github.com/bigchaindb/stylelint-config-bigchaindb)
[![js bigchaindb](https://img.shields.io/badge/js-bigchaindb-39BA91.svg)](https://github.com/ascribe/javascript)
[![npm](https://img.shields.io/npm/v/stylelint-config-bigchaindb.svg)](https://www.npmjs.com/package/stylelint-config-bigchaindb)
[![Build Status](https://travis-ci.org/bigchaindb/stylelint-config-bigchaindb.svg?branch=master)](https://travis-ci.org/bigchaindb/stylelint-config-bigchaindb)
[![Greenkeeper badge](https://badges.greenkeeper.io/bigchaindb/stylelint-config-bigchaindb.svg)](https://greenkeeper.io/)
@ -20,6 +22,8 @@ npm install stylelint-config-bigchaindb
## Usage
### Setup
Add this to your `.stylelintrc` file:
```json
@ -28,7 +32,36 @@ Add this to your `.stylelintrc` file:
}
```
Then use `stylelint` against your css files, e.g.:
If you really know what you're doing™ you can change or disable individual rules globally in your project:
```json
{
"extends": "stylelint-config-bigchaindb",
"rules": {
"selector-max-id": 1,
"selector-no-qualifying-type": null
}
}
```
Or disable blocks inline in your css:
```scss
/* stylelint-disable selector-list-comma-newline-after */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
color: $that-pink-which-burns-my-eyes;
}
/* stylelint-enable */
```
In general, try to never disable anything. Every time you disable even one rule one of those creatures gets killed:
![disable punishment](media/disable-punishment.gif)
### Linting
Use `stylelint` against your css files, e.g.:
```bash
stylelint *.scss
@ -42,21 +75,23 @@ apm install linter-stylelint
## npm releases
For a new release, execute on the machine where you're logged into your npm account:
For a new **patch release**, execute on the machine where you're logged into your npm account:
```bash
npm run release
```
This should suffice for most updates but be aware this always creates a patch update. Command is powered by [`release-it`](https://github.com/webpro/release-it) package. That's what the command does:
Command is powered by [`release-it`](https://github.com/webpro/release-it) package, defined in the `package.json`.
- create release commit
That's what the command does without any user interaction:
- create release commit by updating version in `package.json`
- create tag for that release commit
- push commit & tag
- create a new release on GitHub
- publish to npm
- create a new release on GitHub, with change log auto-generated from commit messages
- publish to npm as a new release
If you want to create a minor or major update, use these commands:
If you want to create a **minor** or **major release**, use these commands:
```bash
npm run release-minor