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

Add support for language specific toggles #14

Open
Noorts opened this issue Aug 21, 2022 · 0 comments
Open

Add support for language specific toggles #14

Noorts opened this issue Aug 21, 2022 · 0 comments
Labels
feature Feature suggestions

Comments

@Noorts
Copy link
Owner

Noorts commented Aug 21, 2022

Allow adding toggles to the configuration which are only enabled for files in certain languages.

The following is an example configuration just to get the point across. Of course with an optimal and valid JSON structure (which is backwards compatible with the current structure).

{
    "default": [
        ["byte", "short", "int", "long", "float", "double"],
        ["String", "Character"],
    ],
    "java": [
        ["public", "private", "protected"],
        ["class", "interface"],
        ["extends", "implements"],
        ["import", "export"],
    ],
    "js, jsx, ts, tsx": [
        ["const", "let", "var"],
    ]
}

See the shifter plugin for inspiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature suggestions
Projects
Status: Backlog
Development

No branches or pull requests

1 participant