Skip to content

Current code style does not match with .editorconfig #22

@sveneberth

Description

@sveneberth

In the .editorconfig an indent of 2 characters is set:

indent_size = 2

But a lot of code is formatted width 4 characters:

export function useOrder() {
const state = reactive({
isLoading:false,
isUpdating:false
})
const shopStore = useViurShopStore()
function updateOrderState(key,data){
shopStore.state.order = data
shopStore.state.orderKey = key
const params = useUrlSearchParams('hash')
params['order'] = shopStore.state.orderKey

I don't care about the exact number. But when I or my IDE formats code, I don't want to reformat the entire file because it was previously ignored by others.

Metadata

Metadata

Assignees

Labels

Priority: MediumThis issue may be useful, and needs some attention.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions