Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@sixfold/editor-config
Advanced tools
yarn add @sixfold/editor-config prettier -D
"prettier": "@sixfold/editor-config/prettier"
"prettier": "prettier \"./src/**/**\"",
"prettier:check": "yarn prettier --check",
"prettier:fix": "yarn prettier --write",
.prettierignore
file at the source of the repository, containing at least the following:package.json
.DS_Store
Make sure to include .prettierignore
in your docker (test) if you check prettier formatting as part of the tests.
Prettier
:yarn prettier:check
as part of the test
or build
script to ensure that code is consistently formattedWhen generating code programmatically, same configuration can be used to format generated output:
import * as prettier from 'prettier';
import * as prettierConfig from '@sixfold/editor-config';
const source = 'function main(){console.log("Hello")};main()';
console.log(prettier.format(source, prettierConfig));
FAQs
# How to use Prettier
We found that @sixfold/editor-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 48 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.