feat(dprint): setup import/export order
This commit is contained in:
20
dprint.json
20
dprint.json
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "https://dprint.dev/schemas/v0.json",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"includes": ["**/*.{ts,tsx,js,jsx,svelte,json,md}"],
|
"includes": ["**/*.{ts,tsx,js,jsx,svelte,json,md}"],
|
||||||
"excludes": [
|
"excludes": [
|
||||||
@@ -22,7 +23,17 @@
|
|||||||
"quoteStyle": "preferSingle",
|
"quoteStyle": "preferSingle",
|
||||||
"trailingCommas": "onlyMultiLine",
|
"trailingCommas": "onlyMultiLine",
|
||||||
"arrowFunction.useParentheses": "preferNone",
|
"arrowFunction.useParentheses": "preferNone",
|
||||||
"importDeclaration.sortNamedImports": "caseInsensitive"
|
|
||||||
|
// Import sorting configuration
|
||||||
|
"module.sortImportDeclarations": "caseSensitive",
|
||||||
|
"module.sortExportDeclarations": "caseSensitive",
|
||||||
|
"importDeclaration.sortNamedImports": "caseSensitive",
|
||||||
|
|
||||||
|
// Additional import formatting options
|
||||||
|
"importDeclaration.forceMultiLine": "whenMultiple",
|
||||||
|
"importDeclaration.forceSingleLine": false,
|
||||||
|
"exportDeclaration.forceMultiLine": "whenMultiple",
|
||||||
|
"exportDeclaration.forceSingleLine": false
|
||||||
},
|
},
|
||||||
"json": {
|
"json": {
|
||||||
"indentWidth": 2,
|
"indentWidth": 2,
|
||||||
@@ -37,6 +48,11 @@
|
|||||||
"useTabs": false,
|
"useTabs": false,
|
||||||
"quotes": "double",
|
"quotes": "double",
|
||||||
"scriptIndent": false,
|
"scriptIndent": false,
|
||||||
"styleIndent": false
|
"styleIndent": false,
|
||||||
|
|
||||||
|
// Svelte-specific formatting
|
||||||
|
"vBindStyle": "short",
|
||||||
|
"vOnStyle": "short",
|
||||||
|
"formatComments": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user