-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from SuperITMan/feature/improve-and-upgrade-p…
…rettier-configuration Feature/improve and upgrade prettier configuration
- Loading branch information
Showing
15 changed files
with
396 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require("./lib/prettier/2.0.x/.prettierrc.js"); | ||
module.exports = require("./lib/prettier/2.2.x/.prettierrc.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<h1 align="center"> | ||
code style - Prettier 2.1.x | ||
</h1> | ||
|
||
## About | ||
|
||
This sub-package hosts the [Prettier](https://prettier.io) configuration for version 2.1.x. | ||
|
||
## Usage | ||
|
||
Create a `.prettierrc.js` file and copy the following content inside: | ||
|
||
```js | ||
module.exports = require("@nationalbankbelgium/code-style/prettier/2.1.x"); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "@nationalbankbelgium/code-style/prettier/2.1.x", | ||
"main": ".prettierrc.js" | ||
} |
Oops, something went wrong.