@arthurfiorette/prettier-config
Advanced tools
Comparing version 1.0.7 to 1.0.8
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) |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
3605
6
50
5
2
1
5
13
2
+ Addedprettier-plugin-jsdoc@*
+ Addedtypescript@*
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@pkgr/core@0.1.1(transitive)
+ Added@types/debug@4.1.12(transitive)
+ Added@types/mdast@4.0.4(transitive)
+ Added@types/ms@0.7.34(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Addedbinary-searching@2.0.5(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcharacter-entities@2.0.2(transitive)
+ Addedcomment-parser@1.4.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddecode-named-character-reference@1.0.2(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddetect-indent@7.0.1(transitive)
+ Addeddetect-newline@4.0.1(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedget-stdin@9.0.0(transitive)
+ Addedgit-hooks-list@3.1.0(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@13.2.2(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-obj@4.1.0(transitive)
+ Addedmdast-util-from-markdown@2.0.2(transitive)
+ Addedmdast-util-to-string@4.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromark@4.0.0(transitive)
+ Addedmicromark-core-commonmark@2.0.1(transitive)
+ Addedmicromark-factory-destination@2.0.0(transitive)
+ Addedmicromark-factory-label@2.0.0(transitive)
+ Addedmicromark-factory-space@2.0.0(transitive)
+ Addedmicromark-factory-title@2.0.0(transitive)
+ Addedmicromark-factory-whitespace@2.0.0(transitive)
+ Addedmicromark-util-character@2.1.0(transitive)
+ Addedmicromark-util-chunked@2.0.0(transitive)
+ Addedmicromark-util-classify-character@2.0.0(transitive)
+ Addedmicromark-util-combine-extensions@2.0.0(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@2.0.1(transitive)
+ Addedmicromark-util-decode-string@2.0.0(transitive)
+ Addedmicromark-util-encode@2.0.0(transitive)
+ Addedmicromark-util-html-tag-name@2.0.0(transitive)
+ Addedmicromark-util-normalize-identifier@2.0.0(transitive)
+ Addedmicromark-util-resolve-all@2.0.0(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.0(transitive)
+ Addedmicromark-util-subtokenize@2.0.1(transitive)
+ Addedmicromark-util-symbol@2.0.0(transitive)
+ Addedmicromark-util-types@2.0.0(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprettier-plugin-jsdoc@1.3.0(transitive)
+ Addedprettier-plugin-organize-imports@4.1.0(transitive)
+ Addedprettier-plugin-packagejson@2.5.3(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedslash@4.0.0(transitive)
+ Addedsort-object-keys@1.1.3(transitive)
+ Addedsort-package-json@2.10.1(transitive)
+ Addedsynckit@0.9.2(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedtypescript@5.6.3(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)