Lint Mithril itself
This commit is contained in:
parent
fb3a534de0
commit
0766d93bac
3 changed files with 1722 additions and 982 deletions
|
|
@ -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
2693
mithril.js
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue