Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve autoconfig debug logging #5119
It's difficult to troubleshoot autoconfig issues because of a lack of debug logging. Additional debug statements should be inserted to log out the name of files being processed, the constructed options that are used when linting, and (importantly) the results registry from which config decisions are made.
Additionally, parsing errors should be displayed to user regardless of debug mode. Otherwise, if code is unparsable by Espree, it is impossible for the user to tell why autoconfig failed.