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

fix: problem getting file paths and symlinks #144

Closed codyzu closed 8 years ago

codyzu commented 8 years ago

fix #121 comparing real and symbolic file paths

jsumners commented 8 years ago

I'm going to lose my sanity if this doesn't get merged.

Arcanemagus commented 8 years ago

As an FYI, a much simpler method of solving this would be:

const filePath = atom.workspace.getActiveTextEditor().getPath();
const [projectPath] = atom.project.relativizePath(filePath);