
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@getjerry/prettier-config
Advanced tools
pnpm i -D prettier @getjerry/prettier-config
{
"prettier": "@getjerry/prettier-config"
}
For example:
{
"scripts": {
"format": "prettier --check .",
"format:fix": "prettier --write ."
}
}
Work together with eslint
:
{
"scripts": {
"lint": "eslint . && prettier --check .",
"lint:fix": "eslint --fix . && prettier --write ."
}
}
To customize the config, create a prettier.config.js
file in the root of your project.
With ESM:
// prettier.config.js
import getjerryConfig from '@getjerry/prettier-config';
export default getjerryConfig;
With CJS:
// prettier.config.js
const getjerryConfig = require('@getjerry/prettier-config');
module.exports = getjerryConfig;
// prettier.config.js
import getjerryConfig from '@getjerry/prettier-config';
export default {
...getjerryConfig,
// override default rules (not recommended, better to keep prettier config consistent among projects)
quoteProps: 'consistent',
// overrides for specific file patterns when necessary
overrides: [
{
files: ['**/assets/**'],
options: {
quoteProps: 'consistent',
},
},
],
};
Add the following settings to your .vscode/settings.json
:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.encoding": "utf8",
"files.eol": "\n",
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false,
},
}
FAQs
```bash pnpm i -D prettier @getjerry/prettier-config ```
We found that @getjerry/prettier-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.