ux(docs): enable eslint rule space-before-blocks

pull/695/head
Shahar Or (mightyiam) 5 years ago committed by Shahar Dawn Or
parent 37512fe8ee
commit 9f2d2d7a16

@ -20,7 +20,6 @@ module.exports = {
'no-undef': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': 'off',
'space-before-blocks': 'off',
'space-before-function-paren': 'off',
quotes: 'off',
semi: 'off',

@ -555,7 +555,7 @@ In particular, you should **not** do something like this:
```mjs
// Does not work
var sharedHandler = {
change: function(e){ console.log('you chose: ' + e.target.value); }
change: function(e) { console.log('you chose: ' + e.target.value); }
};
h('div', [
h('input', {
@ -578,7 +578,7 @@ Alternatively, simply make sure each node is passed unique `on` values:
```mjs
// Works
var sharedHandler = function(e){
var sharedHandler = function(e) {
console.log('you chose: ' + e.target.value);
};
h('div', [

Loading…
Cancel
Save