Compare commits
55 Commits
Author | SHA1 | Date |
---|---|---|
Matthias Kretschmann | 5fee44d71a | |
greenkeeper[bot] | cf44190613 | |
Matthias Kretschmann | 104c1d7139 | |
greenkeeper[bot] | 20536097b9 | |
Matthias Kretschmann | ef19161688 | |
Matthias Kretschmann | 230eabb476 | |
Matthias Kretschmann | 8f03d6c82e | |
Matthias Kretschmann | ef7f37136b | |
greenkeeper[bot] | 02358e639a | |
Matthias Kretschmann | 6946717372 | |
greenkeeper[bot] | 29eaed2ffb | |
Matthias Kretschmann | 7669a977cb | |
greenkeeper[bot] | e89ac39c03 | |
Matthias Kretschmann | 3b82f8dbf3 | |
greenkeeper[bot] | 5a93a3f8f6 | |
Matthias Kretschmann | 80942cc1e1 | |
greenkeeper[bot] | ef87c8f9cc | |
Matthias Kretschmann | 7275eaaac3 | |
greenkeeper[bot] | f8df22f458 | |
Matthias Kretschmann | 10f83e24f7 | |
greenkeeper[bot] | 6ae61f8d09 | |
Matthias Kretschmann | 9df8109264 | |
Matthias Kretschmann | 2dad8e9a64 | |
Matthias Kretschmann | 5b85f43b99 | |
greenkeeper[bot] | 14b409ddd7 | |
Matthias Kretschmann | 20991b538c | |
greenkeeper[bot] | 423eb0a380 | |
Matthias Kretschmann | bcc9d026a2 | |
greenkeeper[bot] | 4ac3d882ce | |
Matthias Kretschmann | b2f6a043da | |
Matthias Kretschmann | 344d150304 | |
Matthias Kretschmann | 90a11f2043 | |
greenkeeper[bot] | 9e11b539f9 | |
Matthias Kretschmann | 704061d9dd | |
greenkeeper[bot] | d9edb3d128 | |
Matthias Kretschmann | 97d00cce1b | |
greenkeeper[bot] | 646134de0e | |
Matthias Kretschmann | 9a7ca02617 | |
Matthias Kretschmann | 09f4107d3d | |
Matthias Kretschmann | 4bf128be0c | |
Matthias Kretschmann | 42243b7b36 | |
Matthias Kretschmann | b9ff99857e | |
Matthias Kretschmann | a8a441174b | |
Matthias Kretschmann | 5852c476cb | |
Matthias Kretschmann | e5d035a880 | |
Matthias Kretschmann | 62cc96f5e1 | |
Matthias Kretschmann | 664754d974 | |
Matthias Kretschmann | ed8d38c73e | |
Matthias Kretschmann | 62b874f927 | |
Matthias Kretschmann | 79538a40e2 | |
Matthias Kretschmann | 1ac861ca94 | |
greenkeeper[bot] | 8cef595a6d | |
Matthias Kretschmann | 18302b7fc1 | |
Matthias Kretschmann | 862ae09979 | |
Matthias Kretschmann | 40d0e78f90 |
8
index.js
8
index.js
|
@ -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 |
24
package.json
24
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
49
readme.md
49
readme.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue