Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve eslint working directory by looking up config files #4561

Closed
wants to merge 4 commits into from

Conversation

pbnj
Copy link
Contributor

@pbnj pbnj commented Jul 23, 2023

Closes #4487

This PR changes eslint working directory resolution based on eslint config file markers and adds support for the new eslint.config.js config file

The previous behavior was to resolve eslint working directory based on node_modules (or default to project root).

This change should not break previous behavior since children node_modules will always be accompanied by package.json in the same locations, which the ale#handlers#eslint#FindConfig looks for in the absence of an eslint config file.

@pbnj
Copy link
Contributor Author

pbnj commented Jul 26, 2023

Closing PR for now as the docs explicitly recommend extending eslint configs.

We can revisit this PR later if necessary.

@pbnj pbnj closed this Jul 26, 2023
@pbnj pbnj deleted the fix/eslint-cwd-resolution branch July 26, 2023 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ALE eslint cannot find config
1 participant