Change working directory before linting
Change working directory before linting

Otherwise, ESLint runs from the root directory which results in slightly different behavior than running standard on the command line. For example, if the project directory is within a hidden directory (e.g. /home/jane/.secret/project), ESLint ignores all files. Fixes #222.

We cannot use standard’s cwd option here because standard-engine does not pass the cwd through to ESLint. See https://github.com/standard/standard-engine/pull/189.

ricardofbarros/linter-js-standard