@viamrobotics/prettier-config
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Common Prettier configuration for Viam projects.", | ||
@@ -13,7 +13,11 @@ "files": [ | ||
], | ||
"types": "./base.d.cts", | ||
"types": "./dist/base.d.cts", | ||
"exports": { | ||
".": { | ||
"types": "./base.d.cts", | ||
"types": "./dist/base.d.cts", | ||
"default": "./base.cjs" | ||
}, | ||
"./svelte": { | ||
"types": "./dist/svelte.d.cts", | ||
"default": "./svelte.cjs" | ||
} | ||
@@ -35,4 +39,14 @@ }, | ||
"peerDependencies": { | ||
"prettier": ">=2 <3" | ||
"prettier": ">=2 <3", | ||
"prettier-plugin-svelte": ">=2 <3", | ||
"prettier-plugin-tailwindcss": ">=0.4.0 <0.5" | ||
}, | ||
"peerDependenciesMeta": { | ||
"prettier-plugin-svelte": { | ||
"optional": true | ||
}, | ||
"prettier-plugin-tailwindcss": { | ||
"optional": true | ||
} | ||
} | ||
} |
@@ -6,3 +6,3 @@ # Shared Prettier Config for Viam | ||
```shell | ||
npm install --save-dev prettier @viamrobotics/prettier-config | ||
pnpm add --save-dev prettier @viamrobotics/prettier-config | ||
``` | ||
@@ -13,5 +13,5 @@ | ||
### Base config | ||
## Base config | ||
Use the [base config](./base.cjs) for React, Vue, and vanilla JavaScript / TypeScript projects. | ||
Use the [base config](./base.cjs) for vanilla JavaScript / TypeScript projects. | ||
@@ -38,1 +38,20 @@ ```js | ||
``` | ||
## Svelte config | ||
Use the [Svelte config](./svelte.cjs) for Svelte projects. | ||
```shell | ||
pnpm add --save-dev \ | ||
prettier \ | ||
@viamrobotics/prettier-config \ | ||
prettier-plugin-svelte \ | ||
prettier-plugin-tailwindcss | ||
``` | ||
```js | ||
// .prettierrc.cjs | ||
'use strict'; | ||
module.exports = '@viamrobotics/prettier-config/svelte'; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3907
6
29
55
3