eslint-plugin-prettier
Advanced tools
Comparing version 5.1.3 to 5.2.1
{ | ||
"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", |
@@ -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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34308
425
32
+ Added@humanwhocodes/retry@0.4.1(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedsynckit@0.9.2(transitive)
- Removed@humanwhocodes/retry@0.4.0(transitive)
- Removedcross-spawn@7.0.3(transitive)
- Removedsynckit@0.8.8(transitive)
Updatedsynckit@^0.9.1