mirror of
https://github.com/Mintplex-Labs/abitat.git
synced 2026-07-01 10:05:27 -04:00
37 lines
979 B
JavaScript
37 lines
979 B
JavaScript
// @ts-check
|
|
|
|
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
|
|
const config = {
|
|
arrowParens: 'avoid',
|
|
bracketSpacing: false,
|
|
embeddedLanguageFormatting: 'auto',
|
|
endOfLine: 'lf',
|
|
htmlWhitespaceSensitivity: 'css',
|
|
insertPragma: false,
|
|
jsxSingleQuote: false,
|
|
printWidth: 80,
|
|
proseWrap: 'always',
|
|
quoteProps: 'as-needed',
|
|
requirePragma: false,
|
|
semi: false,
|
|
singleQuote: true,
|
|
tabWidth: 2,
|
|
trailingComma: 'all',
|
|
useTabs: false,
|
|
|
|
plugins: ['@ianvs/prettier-plugin-sort-imports'],
|
|
|
|
// -- @ianvs/prettier-plugin-sort-imports options
|
|
importOrder: [
|
|
'<BUILTIN_MODULES>', // Node.js built-in modules
|
|
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
|
|
'',
|
|
'^[.]', // relative imports
|
|
],
|
|
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
|
|
importOrderTypeScriptVersion: '5.0.0',
|
|
// -- @ianvs/prettier-plugin-sort-imports options
|
|
}
|
|
|
|
export default config
|