@sourcegraph/prettierrc
Advanced tools
Comparing version
{ | ||
"name": "@sourcegraph/prettierrc", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "TSLint config for TypeScript projects at Sourcegraph", | ||
"main": ".prettierrc", | ||
"main": "prettier.config.js", | ||
"repository": { | ||
@@ -16,3 +16,3 @@ "type": "git", | ||
"scripts": { | ||
"prettier": "prettier .prettierrc --list-different --write" | ||
"prettier": "prettier prettier.config.js --list-different --write" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -6,3 +6,3 @@ | ||
[](https://www.npmjs.com/package/@sourcegraph/prettierrc) | ||
[](https://buildkite.com/sourcegraph/prettierrc) | ||
[](https://buildkite.com/sourcegraph/prettierrc) | ||
[](https://github.com/prettier/prettier) | ||
@@ -18,10 +18,6 @@ | ||
Then add this package.json: | ||
Then add this `prettier.config.js` to the project: | ||
```json | ||
{ | ||
"scripts": { | ||
"prettier": "prettier --config node_modules/@sourcegraph/prettierrc/.prettierrc --list-different --write" | ||
} | ||
} | ||
```js | ||
module.exports = require('@sourcegraph/prettierrc') | ||
``` | ||
@@ -28,0 +24,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
15
Infinity%0
-100%2077
-3.08%42
-8.7%