
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@aureldvx/prettier
Advanced tools

Tailored for accessibility and readability purposes, which for some part is inherited from this reddit post.
npm install --save-dev @aureldvx/prettier
# or
yarn add --dev @aureldvx/prettier
# or
pnpm install --save-dev @aureldvx/prettier
To use the configuration, add the following to your prettier.config.js file:
import { defineConfig } from "@aureldvx/prettier";
export default defineConfig();
prettier-plugin-packagejson (documentation)Format the package.json file in a more readable way, using sort-package-json under the hood. It is enabled by default and cannot be disabled.
prettier-plugin-astro (documentation)Format all .astro files. You can customize the configuration more granularly :
import { defineConfig } from "@aureldvx/prettier";
// Enable the default astro config
export default defineConfig({
astro: true,
});
// Or override it with your own
export default defineConfig({
astro: {
allowShorthand: true,
skipFrontmatter: false,
},
});
@prettier/plugin-xml (documentation)Format XML files, uses primarly to format SVGs in your project. You can customize the configuration more granularly :
import { defineConfig } from "@aureldvx/prettier";
// Enable the default xml config
export default defineConfig({
xml: true,
});
// Or override it with your own
export default defineConfig({
xml: {
bracketSameLine: false,
printWidth: 80,
singleAttributePerLine: false,
tabWidth: 2,
quoteAttributes: 'double',
selfClosingSpace: true,
sortAttributesByKey: true,
whitespaceSensitivity: 'ignore',
},
});
prettier-plugin-tailwindcss (documentation)Reorder tailwindcss classes wherever they are referenced based on the recommended order from tailwind team.
import { defineConfig } from "@aureldvx/prettier";
// With Tailwind v4
export default defineConfig({
tailwind: {
// Required: specify the css entrypoint file.
tailwindStylesheet: 'src/index.css',
// All other ones are optional.
tailwindAttributes: ['class', 'className'],
tailwindFunctions: ['clsx', 'cva', 'cx', 'tw', 'twMerge', 'cw'],
tailwindPreserveWhitespace: false,
tailwindPreserveDuplicates: false,
},
});
// With Tailwind v3
export default defineConfig({
tailwind: {
// If not specified, it will find a `tailwind.config.js`
// in the same directory as the prettier config file.
tailwindConfig: 'tailwind.config.js',
tailwindAttributes: ['class', 'className'],
tailwindFunctions: ['clsx', 'cva', 'cx', 'tw', 'twMerge', 'cw'],
tailwindPreserveWhitespace: false,
tailwindPreserveDuplicates: false,
},
});
To edit the provided configuration, simply add the extends key in the definedConfig object parameter.
import {defineConfig} from "@aureldvx/prettier";
export default defineConfig({
extends: {
// Your additional configuration here
},
});
FAQs
An opinionated Prettier configuration for my personal projects
The npm package @aureldvx/prettier receives a total of 1 weekly downloads. As such, @aureldvx/prettier popularity was classified as not popular.
We found that @aureldvx/prettier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.