mirror of
https://github.com/Mintplex-Labs/abitat.git
synced 2026-07-01 10:05:27 -04:00
add prettier
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# project
|
||||
node_modules
|
||||
.DS_Store
|
||||
bun.lockb
|
||||
|
||||
# VERCEL
|
||||
.vercel
|
||||
.output
|
||||
|
||||
# Turborepo
|
||||
.turbo
|
||||
|
||||
# Db
|
||||
**/prisma/client
|
||||
|
||||
# Remix
|
||||
**/public/build/**
|
||||
**/build/**
|
||||
|
||||
# Next.js build output
|
||||
**/.next/**
|
||||
|
||||
# Packages
|
||||
**/dist/**
|
||||
|
||||
# Docker
|
||||
docker/*/data
|
||||
|
||||
# Storybook stuff
|
||||
**/storybook-static/**
|
||||
@@ -0,0 +1,36 @@
|
||||
// @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
|
||||
+6
-1
@@ -2,8 +2,13 @@
|
||||
"name": "autogen",
|
||||
"module": "src/index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"bun-types": "latest"
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
|
||||
"bun-types": "latest",
|
||||
"prettier": "^3.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
|
||||
Reference in New Issue
Block a user