Skip to content

Commit

Permalink
ux(docs): enable eslint rule import/first
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jun 18, 2020
1 parent 77e54e9 commit 17cf7ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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/first': 'off',
'import/newline-after-import': 'off',
'key-spacing': 'off',
'max-statements-per-line': 'off',
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ import clazz from 'snabbdom/modules/class';
import props from 'snabbdom/modules/props';
import style from 'snabbdom/modules/style';
import listeners from 'snabbdom/modules/eventlisteners';
import h from 'snabbdom/h'; // helper function for creating vnodes

var patch = init([ // Init patch function with chosen modules
clazz, // makes it easy to toggle classes
props, // for setting properties on DOM elements
style, // handles styling on elements with support for animations
listeners, // attaches event listeners
]);
import h from 'snabbdom/h'; // helper function for creating vnodes

var container = document.getElementById('container');

Expand Down Expand Up @@ -215,14 +215,14 @@ import clazz from 'snabbdom/modules/class';
import props from 'snabbdom/modules/props';
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
style, // handles styling on elements with support for animations
listeners, // attaches event listeners
]);
import h from 'snabbdom/h'; // helper function for creating vnodes
import toVNode from 'snabbdom/tovnode';

var newVNode = h('div', {style: {color: '#000'}}, [
h('h1', 'Headline'),
Expand Down

0 comments on commit 17cf7ae

Please sign in to comment.