Open ryoppippi opened 4 months ago
When I configure DEFAULT_ORDER of sort_attributes rule, I'd like to extend the default order config instead of replacing whole config. https://github.com/sveltejs/eslint-plugin-svelte/blob/7ec6c0f1a34a8eba613253ec4bdeb44055f29108/packages/eslint-plugin-svelte/src/rules/sort-attributes.ts#L26
sort_attributes
So, I'd like to extend this DEFAULT_ORDER in my config like
DEFAULT_ORDER
import {DEFAULT_ORDER} from 'eslint-plugin-svelte/sort-attributes'; export default { // ... 'svelte/sort-attributes': ['error', { ...DEFAULT_ORDER, {match: '/foo-.*/', sort: 'ignor'} }, // ... }
Description
When I configure DEFAULT_ORDER of
sort_attributes
rule, I'd like to extend the default order config instead of replacing whole config. https://github.com/sveltejs/eslint-plugin-svelte/blob/7ec6c0f1a34a8eba613253ec4bdeb44055f29108/packages/eslint-plugin-svelte/src/rules/sort-attributes.ts#L26So, I'd like to extend this
DEFAULT_ORDER
in my config like