ux(docs): enable eslint rule key-spacing

pull/695/head
Shahar Or (mightyiam) 5 years ago committed by Shahar Dawn Or
parent cd3a5cf17e
commit 349b686bd8

@ -17,7 +17,6 @@ module.exports = {
{
files: ['**/*.md/*.@(mjs|ts)'],
rules: {
'key-spacing': 'off',
'max-statements-per-line': 'off',
'no-multi-spaces': 'off',
'no-undef': 'off',

@ -524,7 +524,7 @@ Each handler is called not only with the given arguments but also with the curre
stopPropagation = function(ev) { ev.stopPropagation() }
sendValue = function(func, ev, vnode) { func(vnode.elm.value) }
h('a', { on:{ click:[[sendValue, console.log], stopPropagation] } });
h('a', { on: { click: [[sendValue, console.log], stopPropagation] } });
```
Snabbdom allows swapping event handlers between renders. This happens without

Loading…
Cancel
Save