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

tabWidth: 4 for <script>, 2 for markup/<style> #416

Open
mustafa0x opened this issue Jan 21, 2024 · 0 comments
Open

tabWidth: 4 for <script>, 2 for markup/<style> #416

mustafa0x opened this issue Jan 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mustafa0x
Copy link

In .svelte files, is it possible to indent js with 4 spaces, but set 2 spaces for markup and css?

const config = {
    overrides: [
        {
            files: '*.js',
            options: {
                tabWidth: 4,
            },
        },
        {
            files: ['*.html', '*.css'],
            options: {
                tabWidth: 2,
            },
        },
        {
            files: '*.svelte',
            options: {
                tabWidth: 4,
            },
        },
    ],
}
@mustafa0x mustafa0x changed the title tabWidth: 4 for <script>, 2 for markup, <style> tabWidth: 4 for <script>, 2 for markup/<style> Jan 21, 2024
@dummdidumm dummdidumm added the enhancement New feature or request label Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants