Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-prettier

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-prettier - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

index.js

8

CHANGELOG.md
# Changelog
## 5.0.0 (2023-12-10)
Increase the minimum required versions of `stylelint`and `node`. Stylelint v16
has converted its codebase to esm and has [deprecated its commonjs apis](https://github.com/stylelint/stylelint/blob/16.0.0/docs/migration-guide/to-16.md#deprecated-commonjs-api). We've followed their suggested migration guide and `stylelint-prettier` is now an esm-only package. This has required dropping support for v15 at the same time.
- Minimum stylelint version is now v16 (drop support for v15.x)
- Minimum node requirements is now >=18.12.0 (drop support for v14.x and v16.x)
## 4.1.0 (2023-11-24)

@@ -4,0 +12,0 @@

38

package.json
{
"name": "stylelint-prettier",
"version": "4.1.0",
"version": "5.0.0",
"description": "Runs prettier as an stylelint rule",

@@ -12,3 +12,3 @@ "keywords": [

"files": [
"stylelint-prettier.js",
"index.js",
"recommended.js",

@@ -18,6 +18,10 @@ "README.md",

],
"main": "stylelint-prettier.js",
"type": "module",
"exports": {
".": "./index.js",
"./recommended": "./recommended.js"
},
"scripts": {
"lint": "eslint .",
"test": "yarn run lint && node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test": "yarn run lint && node --test test/*.test.js",
"format": "yarn run prettier '**/*.{js,json,md}' --write && yarn run lint --fix"

@@ -38,11 +42,9 @@ },

"prettier": ">=3.0.0",
"stylelint": ">=15.8.0"
"stylelint": ">=16.0.0"
},
"devDependencies": {
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-n": "^15.7.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.1",
"jest-preset-stylelint": "^6.3.2",
"postcss": "^8.4.25",

@@ -52,3 +54,3 @@ "postcss-html": "^1.5.0",

"postcss-scss": "^4.0.6",
"postcss-styled-syntax": "^0.4.0",
"postcss-styled-syntax": "^0.5.0",
"postcss-syntax": "^0.36.2",

@@ -58,18 +60,12 @@ "prettier": "^3.0.0",

"prettier-plugin-svelte": "^3.0.0",
"strip-ansi": "^6.0.0",
"stylelint": "^15.8.0",
"strip-ansi": "^7.1.0",
"stylelint": "^16.0.1",
"stylelint-test-rule-node": "^0.2.0",
"svelte": "^4.1.0",
"typescript": "5.1.6"
"typescript": "5.3.2"
},
"engines": {
"node": "^14.17.0 || >=16.0.0"
"node": ">=18.12.0"
},
"jest": {
"preset": "jest-preset-stylelint",
"transform": {},
"setupFiles": [
"./jest-setup.js"
]
},
"license": "MIT"
}

@@ -64,4 +64,4 @@ # stylelint-prettier [![Build Status](https://github.com/prettier/stylelint-prettier/workflows/CI/badge.svg?branch=main)](https://github.com/prettier/stylelint-prettier/actions?query=workflow%3ACI+branch%3Amain)

As of Stylelint v15, [Stylelint deprecated all stylistic rules that conflict
with prettier](https://stylelint.io/migration-guide/to-15/#deprecated-stylistic-rules).
If you are using Stylelint v15 and are not using any of these deprecated rules then you do not need to do anything extra; this section does not apply to you.
with prettier](https://stylelint.io/migration-guide/to-15/#deprecated-stylistic-rules), and [removed these rules](https://stylelint.io/migration-guide/to-16/#removed-deprecated-stylistic-rules) in Stylelint v16.
If you are using Stylelint v15 or above and are not using any of these deprecated rules then you do not need to do anything extra; this section does not apply to you.

@@ -68,0 +68,0 @@ If you are using Stylelint's stylistic rules, then many of them shall conflict with Prettier. This plugin works best if you disable all other Stylelint rules relating to stylistic opinions. If another active Stylelint rule disagrees with `prettier` about how code should be formatted, it will be impossible to avoid lint errors. You should use [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier) to disable all stylistic Stylelint rules.

@@ -1,4 +0,4 @@

module.exports = {
export default {
plugins: ['.'],
rules: {'prettier/prettier': true},
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc