ux(docs): enable eslint rule indent

pull/695/head
Shahar Or (mightyiam) 5 years ago committed by Shahar Dawn Or
parent 8b8fbd5e34
commit e2861bb1bd

@ -25,7 +25,6 @@ module.exports = {
'quote-props': 'off', 'quote-props': 'off',
'space-before-blocks': 'off', 'space-before-blocks': 'off',
'space-before-function-paren': 'off', 'space-before-function-paren': 'off',
indent: 'off',
quotes: 'off', quotes: 'off',
semi: 'off', semi: 'off',
}, },

@ -466,7 +466,7 @@ animating will the element be removed from the DOM.
```mjs ```mjs
h('span', { h('span', {
style: { opacity: '1', transition: 'opacity 1s', style: { opacity: '1', transition: 'opacity 1s',
remove: { opacity: '0' } } remove: { opacity: '0' } }
}, 'It\'s better to fade out than to burn away'); }, 'It\'s better to fade out than to burn away');
``` ```
@ -477,7 +477,7 @@ This makes it easy to declaratively animate the removal of elements.
```mjs ```mjs
h('span', { h('span', {
style: { opacity: '1', transition: 'opacity 1s', style: { opacity: '1', transition: 'opacity 1s',
destroy: { opacity: '0' } } destroy: { opacity: '0' } }
}, 'It\'s better to fade out than to burn away'); }, 'It\'s better to fade out than to burn away');
``` ```
@ -553,11 +553,11 @@ var sharedHandler = {
}; };
h('div', [ h('div', [
h('input', { props: { type: 'radio', name: 'test', value: '0' }, h('input', { props: { type: 'radio', name: 'test', value: '0' },
on: sharedHandler }), on: sharedHandler }),
h('input', { props: { type: 'radio', name: 'test', value: '1' }, h('input', { props: { type: 'radio', name: 'test', value: '1' },
on: sharedHandler }), on: sharedHandler }),
h('input', { props: { type: 'radio', name: 'test', value: '2' }, h('input', { props: { type: 'radio', name: 'test', value: '2' },
on: sharedHandler }) on: sharedHandler })
]); ]);
``` ```
@ -571,11 +571,11 @@ var sharedHandler = function(e){
}; };
h('div', [ h('div', [
h('input', { props: { type: 'radio', name: 'test', value: '0' }, h('input', { props: { type: 'radio', name: 'test', value: '0' },
on: { change: sharedHandler } }), on: { change: sharedHandler } }),
h('input', { props: { type: 'radio', name: 'test', value: '1' }, h('input', { props: { type: 'radio', name: 'test', value: '1' },
on: { change: sharedHandler } }), on: { change: sharedHandler } }),
h('input', { props: { type: 'radio', name: 'test', value: '2' }, h('input', { props: { type: 'radio', name: 'test', value: '2' },
on: { change: sharedHandler } }) on: { change: sharedHandler } })
]); ]);
``` ```

Loading…
Cancel
Save