Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 standard/standard-engine#189.
- Loading branch information