1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
package fmts
func init() {
const lang = "javascript"
register(&Fmt{
Name: "eslint",
Errorformat: []string{
`%-P%f`,
` %#%l:%c %# %trror %m`,
` %#%l:%c %# %tarning %m`,
`%-Q`,
`%-G%.%#`,
},
Description: "(eslint [-f stylish]) A fully pluggable tool for identifying and reporting on patterns in JavaScript",
URL: "https://github.com/eslint/eslint",
Language: lang,
})
register(&Fmt{
Name: "eslint-compact",
Errorformat: []string{
`%f: line %l, col %c, %trror - %m`,
`%f: line %l, col %c, %tarning - %m`,
`%-G%.%#`,
},
Description: "(eslint -f compact) A fully pluggable tool for identifying and reporting on patterns in JavaScript",
URL: "https://github.com/eslint/eslint",
Language: lang,
})
register(&Fmt{
Name: "standardjs",
Errorformat: []string{
`%*\s%f:%l:%c: %m`,
`%-G%.%#`,
},
Description: "(standard) JavaScript style guide, linter, and formatter",
URL: "https://github.com/standard/standard",
Language: lang,
})
}
|