diff --git a/lib/prettier/2.4.x/.prettierrc.js b/lib/prettier/2.4.x/.prettierrc.js new file mode 100644 index 00000000..1004aca9 --- /dev/null +++ b/lib/prettier/2.4.x/.prettierrc.js @@ -0,0 +1,80 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/2.4.x/README.md b/lib/prettier/2.4.x/README.md new file mode 100644 index 00000000..3c14beb0 --- /dev/null +++ b/lib/prettier/2.4.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 2.4.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.4.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/2.4.x"); +``` diff --git a/lib/prettier/2.4.x/package.json b/lib/prettier/2.4.x/package.json new file mode 100644 index 00000000..bdb9e00c --- /dev/null +++ b/lib/prettier/2.4.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/2.4.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/2.5.x/.prettierrc.js b/lib/prettier/2.5.x/.prettierrc.js new file mode 100644 index 00000000..1004aca9 --- /dev/null +++ b/lib/prettier/2.5.x/.prettierrc.js @@ -0,0 +1,80 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/2.5.x/README.md b/lib/prettier/2.5.x/README.md new file mode 100644 index 00000000..afc9b586 --- /dev/null +++ b/lib/prettier/2.5.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 2.5.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.5.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/2.5.x"); +``` diff --git a/lib/prettier/2.5.x/package.json b/lib/prettier/2.5.x/package.json new file mode 100644 index 00000000..088b27c0 --- /dev/null +++ b/lib/prettier/2.5.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/2.5.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/2.6.x/.prettierrc.js b/lib/prettier/2.6.x/.prettierrc.js new file mode 100644 index 00000000..95f4a92c --- /dev/null +++ b/lib/prettier/2.6.x/.prettierrc.js @@ -0,0 +1,93 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + + /** + * Enforce single attribute per line in HTML, Vue and JSX. + * Default: `false` + * + * Valid options: + * - `false` - Do not enforce single attribute per line. + * - `true` - Enforce single attribute per line. + * + * See: https://prettier.io/docs/en/options#single-attribute-per-line + */ + singleAttributePerLine: false, + + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/2.6.x/README.md b/lib/prettier/2.6.x/README.md new file mode 100644 index 00000000..ad67f9b7 --- /dev/null +++ b/lib/prettier/2.6.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 2.6.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.6.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/2.6.x"); +``` diff --git a/lib/prettier/2.6.x/package.json b/lib/prettier/2.6.x/package.json new file mode 100644 index 00000000..8b3ae88d --- /dev/null +++ b/lib/prettier/2.6.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/2.6.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/2.7.x/.prettierrc.js b/lib/prettier/2.7.x/.prettierrc.js new file mode 100644 index 00000000..95f4a92c --- /dev/null +++ b/lib/prettier/2.7.x/.prettierrc.js @@ -0,0 +1,93 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + + /** + * Enforce single attribute per line in HTML, Vue and JSX. + * Default: `false` + * + * Valid options: + * - `false` - Do not enforce single attribute per line. + * - `true` - Enforce single attribute per line. + * + * See: https://prettier.io/docs/en/options#single-attribute-per-line + */ + singleAttributePerLine: false, + + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/2.7.x/README.md b/lib/prettier/2.7.x/README.md new file mode 100644 index 00000000..352be821 --- /dev/null +++ b/lib/prettier/2.7.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 2.7.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.7.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/2.7.x"); +``` diff --git a/lib/prettier/2.7.x/package.json b/lib/prettier/2.7.x/package.json new file mode 100644 index 00000000..17838193 --- /dev/null +++ b/lib/prettier/2.7.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/2.7.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/2.8.x/.prettierrc.js b/lib/prettier/2.8.x/.prettierrc.js new file mode 100644 index 00000000..95f4a92c --- /dev/null +++ b/lib/prettier/2.8.x/.prettierrc.js @@ -0,0 +1,93 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + + /** + * Enforce single attribute per line in HTML, Vue and JSX. + * Default: `false` + * + * Valid options: + * - `false` - Do not enforce single attribute per line. + * - `true` - Enforce single attribute per line. + * + * See: https://prettier.io/docs/en/options#single-attribute-per-line + */ + singleAttributePerLine: false, + + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/2.8.x/README.md b/lib/prettier/2.8.x/README.md new file mode 100644 index 00000000..6246858b --- /dev/null +++ b/lib/prettier/2.8.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 2.8.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.8.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/2.8.x"); +``` diff --git a/lib/prettier/2.8.x/package.json b/lib/prettier/2.8.x/package.json new file mode 100644 index 00000000..6ff0e752 --- /dev/null +++ b/lib/prettier/2.8.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/2.8.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/3.0.x/.prettierrc.js b/lib/prettier/3.0.x/.prettierrc.js new file mode 100644 index 00000000..95f4a92c --- /dev/null +++ b/lib/prettier/3.0.x/.prettierrc.js @@ -0,0 +1,93 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + + /** + * Enforce single attribute per line in HTML, Vue and JSX. + * Default: `false` + * + * Valid options: + * - `false` - Do not enforce single attribute per line. + * - `true` - Enforce single attribute per line. + * + * See: https://prettier.io/docs/en/options#single-attribute-per-line + */ + singleAttributePerLine: false, + + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/3.0.x/README.md b/lib/prettier/3.0.x/README.md new file mode 100644 index 00000000..0d917ca1 --- /dev/null +++ b/lib/prettier/3.0.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 3.0.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 3.0.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/3.0.x"); +``` diff --git a/lib/prettier/3.0.x/package.json b/lib/prettier/3.0.x/package.json new file mode 100644 index 00000000..d0c90648 --- /dev/null +++ b/lib/prettier/3.0.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/3.0.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/3.1.x/.prettierrc.js b/lib/prettier/3.1.x/.prettierrc.js new file mode 100644 index 00000000..95f4a92c --- /dev/null +++ b/lib/prettier/3.1.x/.prettierrc.js @@ -0,0 +1,93 @@ +module.exports = { + /** + * The line length where Prettier will try wrap. + * Default: `80` + * + * See: https://prettier.io/docs/en/options.html#print-width + */ + printWidth: 140, + + /** + * Number of spaces per indentation level. + * Default: `2` + * + * See: https://prettier.io/docs/en/options.html#tab-width + */ + tabWidth: 4, + + /** + * Indent with tabs instead of spaces. + * Default: `false` + * + * https://prettier.io/docs/en/options.html#tabs + */ + useTabs: true, + + /** + * Print trailing commas wherever possible when multi-line. + * Default: `"es5"` + * + * See: https://prettier.io/docs/en/options.html#trailing-commas + */ + trailingComma: "none", + + /** + * Print spaces between brackets. + * Default: `true` + * + * See: https://prettier.io/docs/en/options.html#bracket-spacing + */ + bracketSpacing: true, + + /** + * Which end of line characters to apply. + * Default: `lf` + * + * See: https://prettier.io/docs/en/options.html#end-of-line + */ + endOfLine: "auto", + + /** + * Include parentheses around a sole arrow function parameter. + * Default: `"always"` + * + * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses + */ + arrowParens: "always", + + /** + * Control how Prettier formats quoted code embedded in the file. + * Default: `"auto"` + * + * See: https://prettier.io/docs/en/options.html#embedded-language-formatting + */ + embeddedLanguageFormatting: "auto", + + /** + * Enforce single attribute per line in HTML, Vue and JSX. + * Default: `false` + * + * Valid options: + * - `false` - Do not enforce single attribute per line. + * - `true` - Enforce single attribute per line. + * + * See: https://prettier.io/docs/en/options#single-attribute-per-line + */ + singleAttributePerLine: false, + + overrides: [ + { + files: "*.{pcss,scss,css,json,md,yml}", + options: { + tabWidth: 2, + useTabs: false + } + }, + { + files: "*.html", + options: { + parser: "angular" + } + } + ] +}; diff --git a/lib/prettier/3.1.x/README.md b/lib/prettier/3.1.x/README.md new file mode 100644 index 00000000..b729bc1a --- /dev/null +++ b/lib/prettier/3.1.x/README.md @@ -0,0 +1,15 @@ +

+ code style - Prettier 3.1.x +

+ +## About + +This sub-package hosts the [Prettier](https://prettier.io) configuration for version 3.1.x. + +## Usage + +Create a `.prettierrc.js` file and copy the following content inside: + +```js +module.exports = require("@nationalbankbelgium/code-style/prettier/3.1.x"); +``` diff --git a/lib/prettier/3.1.x/package.json b/lib/prettier/3.1.x/package.json new file mode 100644 index 00000000..a84a5024 --- /dev/null +++ b/lib/prettier/3.1.x/package.json @@ -0,0 +1,4 @@ +{ + "name": "@nationalbankbelgium/code-style/prettier/3.1.x", + "main": ".prettierrc.js" +} diff --git a/lib/prettier/README.md b/lib/prettier/README.md index ee27a9da..a1f0e65d 100644 --- a/lib/prettier/README.md +++ b/lib/prettier/README.md @@ -16,13 +16,20 @@ The following versions are available (based on **Prettier** version): - 2.1.x - `@nationalbankbelgium/code-style/prettier/2.1.x` - 2.2.x - `@nationalbankbelgium/code-style/prettier/2.2.x` - 2.3.x - `@nationalbankbelgium/code-style/prettier/2.3.x` +- 2.4.x - `@nationalbankbelgium/code-style/prettier/2.4.x` +- 2.5.x - `@nationalbankbelgium/code-style/prettier/2.5.x` +- 2.6.x - `@nationalbankbelgium/code-style/prettier/2.6.x` +- 2.7.x - `@nationalbankbelgium/code-style/prettier/2.7.x` +- 2.8.x - `@nationalbankbelgium/code-style/prettier/2.8.x` +- 3.0.x - `@nationalbankbelgium/code-style/prettier/3.0.x` +- 3.1.x - `@nationalbankbelgium/code-style/prettier/3.1.x` ## Usage Create a `.prettierrc.js` file and copy the following content inside: ```js -module.exports = require("@nationalbankbelgium/code-style/prettier/2.3.x"); +module.exports = require("@nationalbankbelgium/code-style/prettier/3.1.x"); ``` ## Recommended Additional Configs diff --git a/package-lock.json b/package-lock.json index 46cf8c22..d9798ce0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "husky": "^7.0.1", "lint-staged": "^12.3.5", "pinst": "^2.1.6", - "prettier": "~2.3.2", + "prettier": "~3.1.0", "release-it": "^14.2.0", "stylelint": "~13.13.1", "tslint": "~6.1.0", @@ -6537,15 +6537,18 @@ } }, "node_modules/prettier": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", - "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/process-nextick-args": { @@ -14161,9 +14164,9 @@ "dev": true }, "prettier": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", - "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true }, "process-nextick-args": { diff --git a/package.json b/package.json index 066e8cd4..03610c08 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "husky": "^7.0.1", "lint-staged": "^12.3.5", "pinst": "^2.1.6", - "prettier": "~2.3.2", + "prettier": "~3.1.0", "release-it": "^14.2.0", "stylelint": "~13.13.1", "tslint": "~6.1.0", @@ -63,14 +63,14 @@ "postinstall": "husky install", "postpack": "pinst --enable", "postpublish": "pinst --enable", - "prettier-check": "prettier \"**/*.{css,html,js,json,md,pcss,scss,ts,yml}\" --write --html-whitespace-sensitivity strict", + "prettier-check": "prettier \"**/*.{css,html,js,json,md,pcss,scss,ts,yml}\" --cache --write --html-whitespace-sensitivity strict", "release": "release-it", "release:publish": "bash ./release-publish.sh --trace", "test": "bash ./test.sh" }, "lint-staged": { "*.{css,html,js,json,md,pcss,scss,ts,yml}": [ - "prettier --write --html-whitespace-sensitivity strict" + "prettier --cache --write --html-whitespace-sensitivity strict" ] }, "config": {