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

eslint-plugin-prettier

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-prettier - npm Package Compare versions

Comparing version 5.1.3 to 5.2.1

5

package.json
{
"name": "eslint-plugin-prettier",
"version": "5.1.3",
"version": "5.2.1",
"description": "Runs prettier as an eslint rule",

@@ -59,3 +59,3 @@ "repository": "git+https://github.com/prettier/eslint-plugin-prettier.git",

"prettier-linter-helpers": "^1.0.0",
"synckit": "^0.8.6"
"synckit": "^0.9.1"
},

@@ -70,2 +70,3 @@ "devDependencies": {

"@graphql-eslint/eslint-plugin": "^3.20.1",
"@html-eslint/parser": "^0.24.1",
"@prettier/plugin-pug": "^3.0.0",

@@ -72,0 +73,0 @@ "@types/eslint": "^8.56.0",

16

worker.js

@@ -99,6 +99,4 @@ // @ts-check

// 4. `eslint-plugin-svelte3` (replacement: `eslint-plugin-svelte@2+`)
const parserBlocklist = ['html'];
let inferParserToBabel = false;
let inferParserToBabel = parserBlocklist.includes(initialOptions.parser);
switch (inferredParser) {

@@ -115,2 +113,14 @@ // it could be processed by `@graphql-eslint/eslint-plugin` or `eslint-plugin-graphql`

}
case 'html': {
// it could be processed by `eslint-plugin-html` or correctly parsed by `@html-eslint/parser`
if (
(typeof parserMeta !== 'undefined' &&
parserMeta.name !== '@html-eslint/parser') ||
(typeof parserPath === 'string' &&
!/([\\/])@html-eslint\1parser\1/.test(parserPath))
) {
inferParserToBabel = true;
}
break;
}
case 'markdown': {

@@ -117,0 +127,0 @@ // it could be processed by `eslint-plugin-markdown@1` or correctly parsed by `eslint-mdx`

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