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

Not able to save output as single column #348

Open
1951FDG opened this issue Apr 9, 2023 · 1 comment
Open

Not able to save output as single column #348

1951FDG opened this issue Apr 9, 2023 · 1 comment

Comments

@1951FDG
Copy link

1951FDG commented Apr 9, 2023

A while ago the output was improved (#9), but for some reason I can't seem to be able to save the output as a single column, it always defaults to 2 columns

npm run --silent eslint-find-option-rules > ./unused-rules.txt

what I did was edit cli-util.js and set default window width size to 40

var availableWidth = size.width || /* istanbul ignore next */40;

Don't know what the best way to go about this, maybe provide a parameter to change to single line ouput, or change default window size width, or etc...

@borgar
Copy link

borgar commented Jul 1, 2023

I would also love to have an option to get the list in a format where there is a single rule per line. My current workaround is using a string of shell commands, which isn't ideal but gets it done (for my usecase):

eslint-find-rules --no-core -u rulesfile.js|fgrep -vx 'unused rules'|tr -s '[:blank:]' '\n'

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

No branches or pull requests

2 participants