ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

Linter engine doesn't receive filepath information. #212

Closed rostislav-simonik closed 6 years ago

rostislav-simonik commented 6 years ago

In linter-js-standard.js line 20

settings.style.lintText(fileContent, settings.opts, boundLinter)

settings.opts doesn't contain filename variable which allows linter engine properly retrieve .eslintrc file.

It's necessary if I want to use standardx (allows overwrite standard rules through .eslintrc) as linter.

Honor Style Settings enabled with following package.json configuration

"standard": {
    "linter": "standardx",
    "parser": "babel-eslint"
}
rostislav-simonik commented 6 years ago

Extension available within PR #213.