Skip to content

Commit

Permalink
Pass filename to standard.lintText()
Browse files Browse the repository at this point in the history
Even though it is optional, some linters and ESLint plugins require it. Fixes #212.
  • Loading branch information
rostislav-simonik authored and sonicdoe committed Nov 19, 2017
1 parent d83443d commit 64e11fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/linter-js-standard.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ module.exports = function (textEditor) {

var opts = config.honorStyleSettings ? styleSettings.checkStyleSettings(filePath, textEditor) : {}

opts.filename = filePath

var style = selectStyle(filePath, {
style: opts.style || config.style,
checkStyleDevDependencies: config.checkStyleDevDependencies,
Expand Down

0 comments on commit 64e11fd

Please sign in to comment.