Skip to content

Commit

Permalink
ux(docs): enable eslint rule import/newline-after-import
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jun 18, 2020
1 parent 17cf7ae commit cd3a5cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ module.exports = {
{
files: ['**/*.md/*.@(mjs|ts)'],
rules: {
'import/newline-after-import': 'off',
'key-spacing': 'off',
'max-statements-per-line': 'off',
'no-multi-spaces': 'off',
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ array of children.

```mjs
import h from 'snabbdom/h';

var vnode = h('div', {style: {color: '#000'}}, [
h('h1', 'Headline'),
h('p', 'A paragraph'),
Expand All @@ -217,6 +218,7 @@ import style from 'snabbdom/modules/style';
import listeners from 'snabbdom/modules/eventlisteners';
import h from 'snabbdom/h'; // helper function for creating vnodes
import toVNode from 'snabbdom/tovnode';

var patch = init([ // Init patch function with chosen modules
clazz, // makes it easy to toggle classes
props, // for setting properties on DOM elements
Expand Down

0 comments on commit cd3a5cf

Please sign in to comment.