Skip to content

Commit 9eced2d

Browse files
committed
Fix eslint complaints
1 parent ae433c2 commit 9eced2d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

rollup.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import buble from 'rollup-plugin-buble';
22
import flow from 'rollup-plugin-flow';
3+
import fs from 'fs';
34

4-
const pkg = require('./package');
5+
const pkg = JSON.parse(fs.readFileSync('./package.json'));
56

67
export default {
78
entry: 'src/index.js',
@@ -12,8 +13,8 @@ export default {
1213
buble()
1314
],
1415
targets: [
15-
{dest: pkg.main, format: 'cjs'},
16-
{dest: pkg.module, format: 'es'},
17-
{dest: pkg['umd:main'], format: 'umd', moduleName: pkg.name}
16+
{ dest: pkg.main, format: 'cjs' },
17+
{ dest: pkg.module, format: 'es' },
18+
{ dest: pkg['umd:main'], format: 'umd', moduleName: pkg.name }
1819
]
1920
};

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function mitt(all: EventHandlerMap) {
2020
/**
2121
* Register an event handler for the given type.
2222
*
23-
* @param {String} type Type of event to listen for, or `"*"` for all events
23+
* @param {String} type Type of event to listen for, or `"*"` for all events
2424
* @param {Function} handler Function to call in response to given event
2525
* @memberOf mitt
2626
*/
@@ -31,7 +31,7 @@ export default function mitt(all: EventHandlerMap) {
3131
/**
3232
* Remove an event handler for the given type.
3333
*
34-
* @param {String} type Type of event to unregister `handler` from, or `"*"`
34+
* @param {String} type Type of event to unregister `handler` from, or `"*"`
3535
* @param {Function} handler Handler function to remove
3636
* @memberOf mitt
3737
*/

0 commit comments

Comments
 (0)