I'm currently in the process of updating the eslint packages being used for a large codebase. After the update eslint is now finding errors on thousands of files that fail different rules.
Is there a way to run eslint and have it output a list of the rules that failed?
By default eslint runs through each file and outputs each line that failed. Instead I want to build a list of rules that failed (no duplicates) like below:
i.e.
no-console
react/no-multi-comp
react/jsx-curly-spacing
My intent is to turn all these failing rules off in the eslint.js
file, but was hoping for an easy way to collate this list.
question from:
https://stackoverflow.com/questions/65836228/how-to-get-a-list-of-all-eslint-rules-that-errored-during-linting 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…