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.0.4 to 1.0.5

4

CHANGELOG.md
# Changelog
## 1.0.5 (2018-11-16)
- Specifying an explict syntax with `--syntax` will no longer crash when autofixing (#11)
## 1.0.4 (2018-11-11)

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

2

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

@@ -5,0 +5,0 @@ "keywords": [

@@ -124,6 +124,9 @@ const stylelint = require('stylelint');

const newRoot = root.source.syntax.parse(
rawData,
root.source.input.opts
);
// If root.source.syntax exists then it means stylelint had to use
// postcss-syntax to guess the postcss parser that it should use based
// upon the input filename.
// In that case we want to use the parser that postcss-syntax picked.
// Otherwise use the syntax parser that was provided in the options
const syntax = root.source.syntax || result.opts.syntax;
const newRoot = syntax.parse(rawData);

@@ -130,0 +133,0 @@ // For reasons I don't really undersand, when the original input does

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