summaryrefslogtreecommitdiff
path: root/test/eslint-test-files
AgeCommit message (Collapse)Author
2020-07-08eslint: Use cwd from executable location to fix nested projects (#3222)Kevin Locke
* Split FindNearestExecutable from FindExecutable The path searching in ale#node#FindExecutable() will be useful for eslint. Refactor it into a separate function so it can be used without regard for the state of the _use_global and _executable variables. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> * eslint: Set project root from local executable Using the nearest directory with node_modules does not work correctly for nested projects where the eslint dependencies are in the outer project. For example: https://github.com/dense-analysis/ale/issues/3143#issuecomment-652452362 Adopt the behavior of SublimeLinter, which runs from project_root determined by the presence of the eslint executable in node_modules/.bin (or eslint in dependencies/devDependencies of package.json, which we can add later as necessary). See [NodeLinter#find_local_executable]. [NodeLinter#find_local_executable]: https://github.com/SublimeLinter/SublimeLinter/blob/056e6f6/lint/base_linter/node_linter.py#L109 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2017-09-12Fix #923 Use package.json as a last resort for eslint --fixw0rp
2017-09-11Fix #922 - Prefer nearer ESLint configuration files with lower precedence ↵w0rp
filenames for eslint --fix
2017-08-22Remove some redundant eslint test codew0rp
2017-08-22Suppress warning about .eslintignore'd file (#836)Eric Stern
* Suppress warning about .eslintignore'd file * Fix slightly ironic lint error * Lock error suppression behind a variable; add docs and tests
2017-07-31Add stylelint fixerMahmoud Mostafa
2017-07-21added tests for Standard.jsSumner Evans
2017-07-18Add a missing test filew0rp
2017-05-25Automatically use eslint_d for eslint, when availablew0rp
2017-03-29Fix #421 Automatically detect create-react-app pathsw0rp