Skip to content

Commit

Permalink
feat(stark-all): update Prettier to v2.2.1
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Due to Prettier update, it is required to adapt the import in ".prettierrc.js" file at the root of the project:

```js
// Before
module.exports = require("@nationalbankbelgium/code-style/prettier/1.16.x");

// After
module.exports = require("@nationalbankbelgium/code-style/prettier/2.2.x");
```
  • Loading branch information
SuperITMan committed Mar 9, 2021
1 parent 882d7cc commit 7db18b9
Show file tree
Hide file tree
Showing 11 changed files with 358 additions and 357 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@nationalbankbelgium/code-style/prettier/1.16.x");
module.exports = require("@nationalbankbelgium/code-style/prettier/2.2.x");
420 changes: 210 additions & 210 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"@compodoc/compodoc": "~1.1.11",
"@nationalbankbelgium/code-style": "^1.3.0",
"@nationalbankbelgium/code-style": "^1.4.0",
"@ngtools/json-schema": "^1.1.0",
"@release-it/conventional-changelog": "^2.0.1",
"codelyzer": "^5.2.2",
Expand All @@ -48,7 +48,7 @@
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"ng-packagr": "^5.7.1",
"prettier": "^1.16.1",
"prettier": "~2.2.1",
"release-it": "^14.4.1",
"rxjs": "^6.6.6",
"stream-concat": "^0.3.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/stark-build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/stark-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ejs-loader": "^0.3.1",
"html-elements-webpack-plugin": "^2.0.0",
"html-webpack-plugin": "^3.2.0",
"prettier": "^1.16.1",
"prettier": "~2.2.1",
"stylelint": "^13.2.0",
"stylelint-config-prettier": "^8.0.1",
"stylelint-webpack-plugin": "^2.1.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/stark-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/stark-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"angular2-text-mask": "^9.0.0",
"normalize.css": "^8.0.1",
"nouislider": "^14.6.3",
"prettier": "^1.16.1",
"prettier": "~2.2.1",
"pretty-data": "^0.40.0",
"prismjs": "^1.23.0",
"text-mask-addons": "^3.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ const prettier: any = require("prettier/standalone");
/**
* A reference to the prettier plugins
*/
const prettierPlugins: any = [
require("prettier/parser-babylon"),
require("prettier/parser-postcss"),
require("prettier/parser-typescript")
];
const prettierPlugins: any = [require("prettier/parser-babel"), require("prettier/parser-postcss"), require("prettier/parser-typescript")];

/**
* A reference to the prettyData library
Expand Down
2 changes: 1 addition & 1 deletion showcase/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@nationalbankbelgium/code-style/prettier/1.16.x");
module.exports = require("@nationalbankbelgium/code-style/prettier/2.2.x");
Loading

0 comments on commit 7db18b9

Please sign in to comment.