@kodehort/prettier-config
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -5,8 +5,8 @@ # MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
@@ -17,7 +17,6 @@ The above copyright notice and this permission notice shall be included in all | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
{ | ||
"name": "@kodehort/prettier-config", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "A curated set of prettier configurations that we use across our projects and can be used in your projects.", | ||
"repository": "https://github.com/kodehort/prettier-config", | ||
"keywords": [ | ||
"prettier", | ||
"config", | ||
"astro", | ||
"sort-imports", | ||
"tailwindcss" | ||
], | ||
"homepage": "https://github.com/kodehort/prettier-config", | ||
"bugs": { | ||
"url": "https://github.com/kodehort/prettier-config/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kodehort/prettier-config.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Alistair Stead <alistair@kodehort.com> (https://kodehort.com)", | ||
"type": "module", | ||
"author": "Alistair Stead", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./lib/index.d.mts", | ||
"default": "./lib/index.js" | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"require": { | ||
"types": "./lib/index.d.cts", | ||
"default": "./lib/index.cjs" | ||
"types": "./dist/index.d.cts", | ||
"default": "./dist/index.cjs" | ||
} | ||
} | ||
}, | ||
"main": "./lib/index.cjs", | ||
"main": "./dist/index.js", | ||
"files": [ | ||
"lib/", | ||
"package.json", | ||
"LICENSE.md", | ||
"README.md" | ||
"dist" | ||
], | ||
@@ -36,2 +47,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.16.4", | ||
"@changesets/cli": "^2.27.9", | ||
@@ -48,5 +60,9 @@ "@types/node": "^22.7.5", | ||
"build": "tsup", | ||
"check-exports": "attw --pack .", | ||
"check-format": "prettier --config ./dist/index.js --check .", | ||
"ci": "pnpm run build && pnpm run check-format && pnpm run check-exports && pnpm run lint", | ||
"dev": "tsup --watch", | ||
"lint": "tsc", | ||
"release": "changeset publish" | ||
} | ||
} |
@@ -5,6 +5,6 @@ # prettier-config | ||
`prettier-config` is a curated prettier configuration that can be | ||
across our projects and can be used in your projects. Rather than | ||
add this all to a template, it is included as a package | ||
enabling updates to be pulled forward into consuming projects. | ||
`prettier-config` is a curated prettier configuration that can be across our | ||
projects and can be used in your projects. Rather than add this all to a | ||
template, it is included as a package enabling updates to be pulled forward into | ||
consuming projects. | ||
@@ -33,7 +33,7 @@ ## Installation | ||
To use `prettier-config`, you need to extend it in your prettier | ||
configuration file. Here's an example `prettier.config.js` file | ||
To use `prettier-config`, you need to extend it in your prettier configuration | ||
file. Here's an example `prettier.config.js` file | ||
```javascript prettier.config.js | ||
import { baseConfig } from "@kodehort/prettier-config"; | ||
import { baseConfig } from '@kodehort/prettier-config' | ||
@@ -44,3 +44,3 @@ /** @type {import("prettier").Config} */ | ||
/** Add your project specific configurations here */ | ||
}; | ||
} | ||
``` | ||
@@ -53,4 +53,4 @@ | ||
If the package is defined with type `module` in the `package.json` file, you | ||
need to use the `.js` extension for the configuration file. This | ||
is because the `import` statement is not supported in CommonJS files. | ||
need to use the `.js` extension for the configuration file. This is because the | ||
`import` statement is not supported in CommonJS files. | ||
@@ -57,0 +57,0 @@ ````json package.json |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
14556
153
0
0
0
5
1