Skip to content

Commit

Permalink
Fix eslint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Apr 14, 2017
1 parent ae433c2 commit 9eced2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions rollup.config.js
@@ -1,7 +1,8 @@
import buble from 'rollup-plugin-buble';
import flow from 'rollup-plugin-flow';
import fs from 'fs';

const pkg = require('./package');
const pkg = JSON.parse(fs.readFileSync('./package.json'));

export default {
entry: 'src/index.js',
Expand All @@ -12,8 +13,8 @@ export default {
buble()
],
targets: [
{dest: pkg.main, format: 'cjs'},
{dest: pkg.module, format: 'es'},
{dest: pkg['umd:main'], format: 'umd', moduleName: pkg.name}
{ dest: pkg.main, format: 'cjs' },
{ dest: pkg.module, format: 'es' },
{ dest: pkg['umd:main'], format: 'umd', moduleName: pkg.name }
]
};
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -20,7 +20,7 @@ export default function mitt(all: EventHandlerMap) {
/**
* Register an event handler for the given type.
*
* @param {String} type Type of event to listen for, or `"*"` for all events
* @param {String} type Type of event to listen for, or `"*"` for all events
* @param {Function} handler Function to call in response to given event
* @memberOf mitt
*/
Expand All @@ -31,7 +31,7 @@ export default function mitt(all: EventHandlerMap) {
/**
* Remove an event handler for the given type.
*
* @param {String} type Type of event to unregister `handler` from, or `"*"`
* @param {String} type Type of event to unregister `handler` from, or `"*"`
* @param {Function} handler Handler function to remove
* @memberOf mitt
*/
Expand Down

0 comments on commit 9eced2d

Please sign in to comment.