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

refactor: printer: apply putout rules on printer.ts #786

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coderaiser
Copy link
Contributor

I'm working on code transformer putout. It has a lot built-in rules, so I want to suggest results of it's work on printer.ts using next rules:

{
    "rules": {
        "remove-debugger": "off",
        "remove-console": "off",
        "merge-if-statements": "off",
        "apply-destructuring/object": "on",
        "remove-nested-blocks": "on",
        "convert-object-assign-to-merge-spread": "on",
        "convert-for-each-to-for-of": "on",
        "convert-generic-to-shorthand": "on"
    }
}

I can disable some rules, If you think there is no need on recast codebase for them, anyways, I think this can make recast codebase a little bit better :). I'm using recast as a dependency and glad to make contribution back.

If it will be merged and when we decide on rule set, I can run putout on all codebase.

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.

None yet

1 participant