prettier-config 0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480
Install from the command line:
Learn more about npm packages
$ npm install @darkpatternsdigital/prettier-config@0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480
Install via package.json:
"@darkpatternsdigital/prettier-config": "0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480"
About this version
Provides a standardized way to use the recommended Dark Patterns Digital configuration for use with prettier.
Usage:
-
Install
@darkpatternsdigital/prettier-config
via your npm client. -
Set your .prettierrc.json to the following contents:
"@darkpatternsdigital/prettier-config"
-
Turns on
useTabs
. This is because most editors support setting the tab width to the users preferences. We believe this is an accessibility improvement. An individual needing a large line height may choose a large tab size, or an individual needing a large font size can set the tab size smaller to keep it on the screen. Using spaces prevents those settings.You could consider overriding it if the tools required by the team do not allow tab display width configurations.
-
Quotes are set to
singleQuote
. This is simply a preference that helps developers working with both C# and JS within the same project.This could be changed in the future.
-
End of Line is set to
'lf'
. This is so that all formatting can agree with git checkouts on each system.We also recommend you include this line in your
.gitattributes
file.* text=auto eol=lf
Details
- prettier-config
-
darkpatternsdigital
- 6 months ago
- MIT
- 1 dependencies
Assets
- prettier-config-0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0
Recent versions
View all- 0.1.1-sha.a49a8f53843772f36dff33e22108685a9a801a95
- 0.1.1-sha.45e1bd71bf502881da248009fa76b5e9ff7ee480
- 0.1.1-sha.ec71920987df8d75ed002adb3c6d1dd304ef7de0
- 0.1.1-sha.c22184f0baba90f4042d4fff92ca782c023ce454
- 0.1.1-sha.196e9386444bbd34f62ba09dfd57e0afa222829d
- 0.1.1-sha.7f8c95448722d8873ca58e910836a5c4f76d687d
- 0.1.1-sha.b643a5d6bc2bc4205000c672d678690cd4a1ebb6
- 0.1.1-sha.1107d8bd4a543b36bf07b50810ce0d37cf5327b8
- 0.1.1-sha.34953676a20cb98b70fdcf2d4451fa19a5e204ec
- 0.1.1-sha.625ef91c0a3e4b91af8b90a4fae2b2fd2dbd3836