洛霞
洛霞
Because in the first instance I just want to report the error and not fix it, and the second instance I want to fix some of the rules. Depending on...
Are there any suggestions for this? I will provide a pr if it works
`ESLint.outputFixes` just writes the **result.output** in results to the specified file: https://github.com/eslint/eslint/blob/52226593974fc7fcb60f1be73b165863b3d1a7fb/lib/eslint/eslint.js#L472-L490 But if `options.fix` in `ESLint.constructor` is **false**, `result.output` will be specified as the original content instead of the...
With `options.fix` set to true, if I just want to check the text instead of formatting, but the last **messages** report the problem after formatting, not before: https://github.com/eslint/eslint/blob/52226593974fc7fcb60f1be73b165863b3d1a7fb/lib/linter/linter.js#L1981-L1983 If `lintText`/`lintFiles`...