SublimeLinter: stylelint: button.scss ['[...]/node_modules/.bin/stylelint', '--formatter', 'json', '--stdin', '--stdin-filename', '@']
SublimeLinter: stylelint output:
module.js:338
throw err;
^
Error: Cannot find module '.'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> ([...]/node_modules/stylelint/dist/utils/getModulePath.js:20:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
Expected result:
Something along the lines of:
button.scss
5:21 ✖ Expected newline after ";" declaration-block-semicolon-newline-after
It works as expected when called directly or as a webpack plugin, but results in an error when used by the sublime plugin.
Any help with pinpointing the root of the problem would be greatly appreciated.
Linted file:
Result:
Expected result:
Something along the lines of:
It works as expected when called directly or as a webpack plugin, but results in an error when used by the sublime plugin. Any help with pinpointing the root of the problem would be greatly appreciated.