UNPKG
curated-linter
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Creates curated linters, like standard
github.com/mightyiam/curated-linter
mightyiam/curated-linter
curated-linter
/
lib
/
lint-text.js
11 lines
(8 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
clone =
require
(
'clone'
)
const
lintTextPkg =
require
(
'lint-text'
)
const
lintText =
function
(
text, config = {}
) {
return
this
.
getMergedConfig
(config) .
then
(
mergedConfig
=>
lintTextPkg
(
clone
(mergedConfig.
CLIEngineOptions
), text)) }
module
.
exports
= lintText