eslint-plugin-prettier
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "eslint-plugin-prettier", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Runs prettier as an eslint rule", | ||
@@ -30,2 +30,10 @@ "repository": "git+https://github.com/prettier/eslint-plugin-prettier.git", | ||
], | ||
"scripts": { | ||
"format": "prettier --write . && pnpm lint --fix", | ||
"lint": "eslint . --cache -f friendly --max-warnings 10", | ||
"prepare": "simple-git-hooks", | ||
"prerelease": "pnpm format && pnpm test", | ||
"release": "changeset publish", | ||
"test": "pnpm lint && mocha" | ||
}, | ||
"peerDependencies": { | ||
@@ -77,9 +85,7 @@ "@types/eslint": ">=8.0.0", | ||
}, | ||
"scripts": { | ||
"format": "prettier --write . && pnpm lint --fix", | ||
"lint": "eslint . --cache -f friendly --max-warnings 10", | ||
"prerelease": "pnpm format && pnpm test", | ||
"release": "changeset publish", | ||
"test": "pnpm lint && mocha" | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@graphql-eslint/eslint-plugin@3.20.0": "patches/@graphql-eslint__eslint-plugin@3.20.0.patch" | ||
} | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ // @ts-check | ||
* @typedef {import('prettier').FileInfoOptions} FileInfoOptions | ||
* @typedef {import('prettier').Options & { onDiskFilepath: string, parserPath: string, usePrettierrc?: boolean }} Options | ||
* @typedef {import('prettier').Options & { onDiskFilepath: string, parserPath?: string, usePrettierrc?: boolean }} Options | ||
*/ | ||
@@ -116,3 +116,6 @@ | ||
// The `source` would be modified by `eslint-plugin-svelte3` | ||
if (!parserPath.includes('svelte-eslint-parser')) { | ||
if ( | ||
typeof parserPath === 'string' && | ||
!parserPath.includes('svelte-eslint-parser') | ||
) { | ||
// We do not support `eslint-plugin-svelte3`, | ||
@@ -119,0 +122,0 @@ // the users should run `prettier` on `.svelte` files manually |
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
62913
7
353