Socket
Socket
Sign inDemoInstall

@arthurfiorette/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arthurfiorette/prettier-config - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

11

index.js

@@ -47,10 +47,15 @@ /**

module.exports = defaultConfig;
/**
* Returns the prettier config with the given overridden options.
*
* @param {Partial<PrettierOptions>} override
* @returns {PrettierOptions}
*
* @see {defaultConfig}
*/
module.exports.config = (override = {}) => {
module.exports = function (override = {}) {
return { ...defaultConfig, ...override };
};
module.exports.defaultConfig = defaultConfig;
{
"name": "@arthurfiorette/prettier-config",
"version": "1.0.4",
"version": "1.0.5",
"description": "My personal prettier config",

@@ -8,3 +8,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/ArthurFiorette/prettier.git"
"url": "git+https://github.com/ArthurFiorette/prettier-config.git"
},

@@ -14,5 +14,5 @@ "author": "Hazork",

"bugs": {
"url": "https://github.com/ArthurFiorette/prettier/issues"
"url": "https://github.com/ArthurFiorette/prettier-config/issues"
},
"homepage": "https://github.com/ArthurFiorette/prettier#readme",
"homepage": "https://github.com/ArthurFiorette/prettier-config#readme",
"scripts": {

@@ -19,0 +19,0 @@ "auto-version": "npm-auto-version"

@@ -15,19 +15,9 @@ ## @arthurfiorette/prettier-config

You can use this prettier config with a `.prettierrc.js` file.
You can just copy what is below in a `.prettierrc.js` file:
```js
// .prettierrc.js
// https://github.com/ArthurFiorette/prettier-config
module.exports = require('@arthurfiorette/prettier-config');
```
Or overriding some configs
```js
// .prettierrc.js
const { config } = require('@arthurfiorette/prettier-config');
module.exports = config({
printWidth: 80
module.exports = require('@arthurfiorette/prettier-config')({
// Any options here will override @arthurfiorette/prettier-config defaults
});

@@ -34,0 +24,0 @@ ```

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