
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@agilecontent/prettier-config
Advanced tools
Base configuration for Prettier, used internally by @agilecontent
Install the package as development dependency:
npm:
npm i -D @agilecontent/prettier-config
yarn:
yarn add -D @agilecontent/prettier-config
In your package.json, add the following:
{
"prettier": "@agilecontent/prettier-config"
}
We do not recommend, but if you need to change or add any other config to the prettier, you must
remove the prettier option on package.json
and create a .prettierrc.js
file with the following
content:
const baseConfig = require('@agilecontent/prettier-config');
module.exports = {
...baseConfig,
//Add your config here
};
singleQuote: true
: Prettier defaults to the quotes with fewer escapes in a given string. This
introduces inconsistency. This config normalizes to only single quotes"trailingComma": "all"
: This puts a comma to the end of every entry of objects and parameters.
This prevents merge conflicts when new entries are added."proseWrap": "always"
: Applies to Markdown only. This breaks lines on paragraphs."overrides[0].options.printWidth": 100
: Applies to Markdown only. Relaxes a bit the width of the
lines, as plain text doesn't need to be so narrow.FAQs
Base configuration for Prettier
The npm package @agilecontent/prettier-config receives a total of 246 weekly downloads. As such, @agilecontent/prettier-config popularity was classified as not popular.
We found that @agilecontent/prettier-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.