
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@kodehort/prettier-config
Advanced tools
A curated set of prettier configurations that we use across our projects and can be used in your 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.
npm install prettier --save-dev
prettier-config
, run the following command:npm install --save-dev @kodehort/prettier-config
Or:
pnpm add @kodehort/prettier-config -D
To use prettier-config
, you need to extend it in your prettier configuration
file. Here's an example prettier.config.js
file
import { baseConfig } from '@kodehort/prettier-config'
/** @type {import("prettier").Config} */
export default {
...baseConfig,
/** Add your project specific configurations here */
}
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.
{
"type": "module"
}
```
Otherwise you can use the `.mjs` extension for the configuration file.
FAQs
A curated set of prettier configurations that we use across our projects and can be used in your projects.
The npm package @kodehort/prettier-config receives a total of 95 weekly downloads. As such, @kodehort/prettier-config popularity was classified as not popular.
We found that @kodehort/prettier-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.