Lint Mithril itself

This commit is contained in:
impinball 2016-01-22 16:25:55 -05:00
parent fb3a534de0
commit 0766d93bac
3 changed files with 1722 additions and 982 deletions

View file

@ -7,6 +7,3 @@ mithril.closure-compiler-externs.js
# This is merely a dependency for the documentation.
docs/layout/lib
# TODO: These are temporary, and need to be eventually enabled.
mithril.js

2693
mithril.js

File diff suppressed because it is too large Load diff

View file

@ -5551,14 +5551,6 @@
return success
})
// console.log presence
test(function () {
return m.deps.factory.toString().indexOf("console") < 0
})
test(function () {
return m.deps.factory.toString().indexOf("document.write") < 0
})
test.print(function (value) {
console.log(value) // eslint-disable-line no-console
})