Skip to content

Commit f109b58

Browse files
Disable eslint warnings in UMD module index.js
Also add `.npmignore` file to `.npmignore`
1 parent 38352d9 commit f109b58

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
test
22
.eslint*
33
.travis*
4+
.npmignore

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
;(function(factory) {
1+
/* eslint-disable strict */
2+
// UMD template: https://github.com/ForbesLindesay/umd/blob/master/template.js
3+
;(function(factory) { // eslint-disable-line no-extra-semi
24

35
// CommonJS
46
if (typeof exports === 'object' && typeof module !== 'undefined') {
57
module.exports = factory();
68

79
// RequireJS (AMD)
8-
} else if (typeof define === 'function' && define.amd) {
9-
define([], factory());
10+
} else if (typeof define === 'function' && define.amd) { // eslint-disable-line no-undef
11+
define([], factory()); // eslint-disable-line no-undef
1012

1113
// Browser (script tag)
1214
} else {

0 commit comments

Comments
 (0)