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

stylelint-prettier

Package Overview
Dependencies
Maintainers
1
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 1.1.2 to 1.2.0

4

CHANGELOG.md
# Changelog
## 1.2.0 (2021-02-27)
- Do not trigger prettier for .svelte and .component.html (angular) files. This avoids errors. Prettifying a subset of the file (i.e. just contents of `<style>` tags) using stylelint feels like unneeded work if you're about to run prettier over the whole file anyway (#160)
## 1.1.2 (2019-12-14)

@@ -4,0 +8,0 @@

6

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

@@ -45,5 +45,7 @@ "keywords": [

"prettier": "^1.19.1",
"prettier-plugin-svelte": "^2.1.6",
"strip-ansi": "^6.0.0",
"stylelint": "^9.5.0",
"stylelint-config-prettier": "^7.0.0"
"stylelint-config-prettier": "^7.0.0",
"svelte": "^3.34.0"
},

@@ -50,0 +52,0 @@ "engines": {

@@ -1,2 +0,2 @@

# stylelint-prettier [![Build Status](https://www.travis-ci.org/prettier/stylelint-prettier.svg?branch=master)](https://www.travis-ci.org/prettier/stylelint-prettier)
# stylelint-prettier [![Build Status](https://github.com/prettier/stylelint-prettier/workflows/CI/badge.svg?branch=master)](https://github.com/prettier/stylelint-prettier/actions?query=workflow%3ACI+branch%3Amaster)

@@ -3,0 +3,0 @@ Runs [Prettier](https://github.com/prettier/prettier) as a [Stylelint](https://stylelint.io/) rule and reports differences as individual Stylelint issues.

@@ -79,3 +79,3 @@ const stylelint = require('stylelint');

// Stylelint suppports languages that may contain multiple types of style
// Stylelint supports languages that may contain multiple types of style
// languages, thus we can't rely on guessing the parser based off the

@@ -98,2 +98,4 @@ // filename.

'html',
'angular', // .component.html files
'svelte',
];

@@ -121,3 +123,3 @@ if (parserBlockList.indexOf(prettierFileInfo.inferredParser) !== -1) {

// Prettier's message contains a codeframe style preview of the
// invalid code and the line/column at which the error occured.
// invalid code and the line/column at which the error occurred.
// ESLint shows those pieces of information elsewhere already so

@@ -196,3 +198,3 @@ // remove them from the message

// For reasons I don't really undersand, when the original input does
// For reasons I don't really understand, when the original input does
// not have a trailing newline, newRoot generates a trailing newline but

@@ -199,0 +201,0 @@ // it does not get included in the output.

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