Shared Prettier Config for Viam
This module contains Viam's shared Prettier configurations for Prettier v3.
Base config
Use the base config for vanilla JavaScript / TypeScript projects.
pnpm add --save-dev prettier @viamrobotics/prettier-config
module.exports = '@viamrobotics/prettier-config';
You can also extend the configuration:
const baseConfig = require('@viamrobotics/prettier-config');
export default {
...baseConfig,
};
Svelte config
Use the Svelte config for Svelte projects.
pnpm add --save-dev \
@viamrobotics/prettier-config \
prettier \
prettier-plugin-svelte \
prettier-plugin-tailwindcss
module.exports = '@viamrobotics/prettier-config/svelte';