![pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers](https://cdn.sanity.io/images/cgdhsj6q/production/c06a5b74512bcc6da29d38cef96a454fa947810d-1024x1024.webp?w=400&fit=max&auto=format)
Security News
pnpm 9.5 Introduces Catalogs: Shareable Dependency Version Specifiers
pnpm 9.5 introduces a Catalogs feature, enabling shareable dependency version specifiers, reducing merge conflicts and improving support for monorepos.
stylelint-config-prettier
Advanced tools
Package description
The stylelint-config-prettier package is a configuration for Stylelint that disables all rules that are unnecessary or might conflict with Prettier. This allows you to use Stylelint for CSS linting and Prettier for code formatting without conflicts.
Disabling conflicting rules
By extending 'stylelint-config-prettier' in your Stylelint configuration, you disable all rules that might conflict with Prettier. This ensures that Prettier can handle code formatting while Stylelint focuses on linting.
{
"extends": [
"stylelint-config-prettier"
]
}
Combining with other configurations
You can combine 'stylelint-config-prettier' with other Stylelint configurations like 'stylelint-config-standard'. This allows you to use a standard set of linting rules while still avoiding conflicts with Prettier.
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
]
}
eslint-config-prettier is a similar package for ESLint that turns off all rules that are unnecessary or might conflict with Prettier. It serves the same purpose as stylelint-config-prettier but for JavaScript and other languages supported by ESLint.
tslint-config-prettier is a configuration for TSLint that disables all rules that are unnecessary or might conflict with Prettier. It is similar to stylelint-config-prettier but is used for TypeScript linting.
prettier-stylelint is a package that formats your styles using Prettier followed by Stylelint --fix. It integrates both tools to ensure your styles are both formatted and linted correctly.
Readme
Turns off all rules that are unnecessary or might conflict with Prettier. This lets you use you favorite shareable config without letting its stylistic choices get in the way when using Prettier.
Install stylelint-config-prettier
:
$ npm install --save-dev stylelint-config-prettier
Then, add stylelint-config-prettier
to the extends
array in your .stylelintrc.*
file. Make sure to put it last, so it will override other configs.
{
"extends": [
"stylelint-config-prettier"
]
}
stylelint-config-prettier
is shipped with a little CLI tool to help you check if your configuration contains any rules that are in conflict with Prettier.
In order to execute the CLI tool, first add a script for it to package.json
:
{
"scripts": {
"stylelint-check": "stylelint-config-prettier-check"
}
}
Then run npm run stylelint-check
.
eslint-config-prettier
.tslint-config-prettier
.prettier-stylelint
.MIT © Shannon Moeller
FAQs
Unknown package
We found that stylelint-config-prettier 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
pnpm 9.5 introduces a Catalogs feature, enabling shareable dependency version specifiers, reducing merge conflicts and improving support for monorepos.
Security News
A threat actor on BreachForums is selling an unverified npm vulnerability for account takeover, but npm has not officially confirmed the existence of this security concern.
Security News
Cyber insurance rates are dropping as the market matures, according to a new report projecting global premiums to reach $43 billion by 2030, driven by international market uptake and growth in the SME sector.