Socket
Socket
Sign inDemoInstall

@arthurfiorette/prettier-config

Package Overview
Dependencies
139
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

.prettierrc.js

17

index.js

@@ -1,2 +0,2 @@

/** @type {import('prettier').Options} */
/** @satisfies {import('prettier').Options} */
const defaultConfig = {

@@ -17,3 +17,9 @@ arrowParens: 'always',

trailingComma: 'none',
useTabs: false
useTabs: false,
vueIndentScriptAndStyle: false,
plugins: [
require.resolve('prettier-plugin-packagejson'),
require.resolve('prettier-plugin-jsdoc'),
require.resolve('prettier-plugin-organize-imports')
]
};

@@ -23,9 +29,9 @@

* Returns the prettier config with the given overridden options.
*
*
* @param {Partial<import('prettier').Options>} override
* @returns {import('prettier').Options}
*
*
* @see {defaultConfig}
*/
module.exports = function (override = {}) {
module.exports = function config(override = {}) {
return { ...defaultConfig, ...override };

@@ -35,2 +41,1 @@ };

module.exports.defaultConfig = defaultConfig;
{
"name": "@arthurfiorette/prettier-config",
"version": "1.0.7",
"version": "1.0.8",
"description": "My personal prettier config",
"homepage": "https://github.com/arthurfiorette/prettier-config#readme",
"bugs": "https://github.com/arthurfiorette/prettier-config/issues",
"repository": "https://github.com/arthurfiorette/prettier-config.git",
"license": "MIT",
"author": "Hazork",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/ArthurFiorette/prettier-config.git"
"bin": {
"setup-aff-prettier": "./bin.js"
},
"author": "Hazork",
"license": "MIT",
"bugs": {
"url": "https://github.com/ArthurFiorette/prettier-config/issues"
},
"homepage": "https://github.com/ArthurFiorette/prettier-config#readme",
"scripts": {

@@ -20,7 +18,12 @@ "auto-version": "npm-auto-version"

"dependencies": {
"@types/prettier": "*"
"@types/prettier": "*",
"prettier-plugin-jsdoc": "*",
"prettier-plugin-organize-imports": "*",
"prettier-plugin-packagejson": "*",
"typescript": "*"
},
"devDependencies": {
"npm-auto-version": "^1.0.0"
"npm-auto-version": "^1.0.0",
"prettier": "^2.8.3"
}
}

@@ -1,27 +0,12 @@

## @arthurfiorette/prettier-config
# @arthurfiorette/prettier-config
### Usage
## Usage
First, install
```sh
# Npm
npm i -D @arthurfiorette/prettier-config
# Yarn
yarn add -D @arthurfiorette/prettier-config
setup-aff-prettier # creates the .prettierrc.js file.
```
You can just copy what is below in a `.prettierrc.js` file:
## See more
```js
// https://github.com/ArthurFiorette/prettier-config
module.exports = require('@arthurfiorette/prettier-config')({
// Any options here will override @arthurfiorette/prettier-config defaults
});
```
### See more
- [Prettier - extending configurations](https://prettier.io/docs/en/configuration.html#sharing-configurations)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc