diff options
| author | Jason Miller <[email protected]> | 2017-04-14 19:32:35 -0400 |
|---|---|---|
| committer | Jason Miller <[email protected]> | 2017-04-14 19:32:35 -0400 |
| commit | 9eced2debd62a62669879b1ec0661259576f6215 (patch) | |
| tree | 4f28549da77d3cf13d8086affad1b89a4f14ef1c | |
| parent | ae433c228a2ed1fa2877b00885961ef407e15d23 (diff) | |
Fix eslint complaints
| -rw-r--r-- | rollup.config.js | 9 | ||||
| -rw-r--r-- | src/index.js | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/rollup.config.js b/rollup.config.js index 8e3cf4f..9eba049 100644 --- a/rollup.config.js +++ b/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', @@ -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 } ] }; diff --git a/src/index.js b/src/index.js index 945861f..78d675d 100644 --- a/src/index.js +++ b/src/index.js @@ -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 */ @@ -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 */ |
