@viamrobotics/prettier-config
TypeScript icon, indicating that this package has built-in type declarations

0.3.5 • Public • Published

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
// .prettierrc.cjs
module.exports = '@viamrobotics/prettier-config';

You can also extend the configuration:

// .prettierrc.cjs
const baseConfig = require('@viamrobotics/prettier-config');

export default {
  ...baseConfig,
  // other options here
};

Svelte config

Use the Svelte config for Svelte projects.

pnpm add --save-dev \
  @viamrobotics/prettier-config \
  prettier \
  prettier-plugin-svelte \
  prettier-plugin-tailwindcss
// .prettierrc.cjs
module.exports = '@viamrobotics/prettier-config/svelte';

Package Sidebar

Install

npm i @viamrobotics/prettier-config

Weekly Downloads

569

Version

0.3.5

License

Apache-2.0

Unpacked Size

4.12 kB

Total Files

6

Last publish

Collaborators

  • mcous
  • njooma
  • stevebriskin
  • cheukt
  • mpviam
  • viambot
  • micheal.parks