Skip to content

Commit

Permalink
ux(docs): enable eslint rule indent
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jun 18, 2020
1 parent 8b8fbd5 commit e2861bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = {
'quote-props': 'off',
'space-before-blocks': 'off',
'space-before-function-paren': 'off',
indent: 'off',
quotes: 'off',
semi: 'off',
},
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ animating will the element be removed from the DOM.
```mjs
h('span', {
style: { opacity: '1', transition: 'opacity 1s',
remove: { opacity: '0' } }
remove: { opacity: '0' } }
}, 'It\'s better to fade out than to burn away');
```

Expand All @@ -477,7 +477,7 @@ This makes it easy to declaratively animate the removal of elements.
```mjs
h('span', {
style: { opacity: '1', transition: 'opacity 1s',
destroy: { opacity: '0' } }
destroy: { opacity: '0' } }
}, 'It\'s better to fade out than to burn away');
```

Expand Down Expand Up @@ -553,11 +553,11 @@ var sharedHandler = {
};
h('div', [
h('input', { props: { type: 'radio', name: 'test', value: '0' },
on: sharedHandler }),
on: sharedHandler }),
h('input', { props: { type: 'radio', name: 'test', value: '1' },
on: sharedHandler }),
on: sharedHandler }),
h('input', { props: { type: 'radio', name: 'test', value: '2' },
on: sharedHandler })
on: sharedHandler })
]);
```

Expand All @@ -571,11 +571,11 @@ var sharedHandler = function(e){
};
h('div', [
h('input', { props: { type: 'radio', name: 'test', value: '0' },
on: { change: sharedHandler } }),
on: { change: sharedHandler } }),
h('input', { props: { type: 'radio', name: 'test', value: '1' },
on: { change: sharedHandler } }),
on: { change: sharedHandler } }),
h('input', { props: { type: 'radio', name: 'test', value: '2' },
on: { change: sharedHandler } })
on: { change: sharedHandler } })
]);
```

Expand Down

0 comments on commit e2861bb

Please sign in to comment.