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

export DEFAULT_ORDER #817

Open
ryoppippi opened this issue Jul 6, 2024 · 0 comments
Open

export DEFAULT_ORDER #817

ryoppippi opened this issue Jul 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ryoppippi
Copy link

ryoppippi commented Jul 6, 2024

Description

When I configure DEFAULT_ORDER of sort_attributes rule, I'd like to extend the default order config instead of replacing whole config.

So, I'd like to extend this DEFAULT_ORDER in my config like

import {DEFAULT_ORDER} from 'eslint-plugin-svelte/sort-attributes';

export default {
// ...

'svelte/sort-attributes': ['error', {
 ...DEFAULT_ORDER,
{match: '/foo-.*/', sort: 'ignor'}
},
// ...

}
@ryoppippi ryoppippi added the enhancement New feature or request label Jul 6, 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

1 participant