Skip to content

Commit

Permalink
Adding prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wAsnk committed Nov 16, 2023
1 parent bd7510a commit 9f30b8f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// The following path may have to be adjusted to your directory structure.
const lombiqConfig = require('./src/Utilities/Lombiq.NodeJs.Extensions/Lombiq.NodeJs.Extensions/config/.prettierrc.lombiq-base.js');

module.exports = {
...lombiqConfig,
// Add custom rules and overrides here.
}
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
</PropertyGroup>

<PropertyGroup>
<!-- Instruct Node.js Extensions to create .eslintrc and .stylelintrc files in the current directory, which is the
<!-- Instruct Node.js Extensions to create .eslintrc, .stylelintrc and .prettierrc files in the current directory, which is the
solution root directory. -->
<NodeJsExtensionsGlobalESLintConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalESLintConfigurationDirectory>
<NodeJsExtensionsGlobalStylelintConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalStylelintConfigurationDirectory>
<NodeJsExtensionsGlobalPrettierStyleConfigurationDirectory>$(MSBuildThisFileDirectory)</NodeJsExtensionsGlobalPrettierStyleConfigurationDirectory>
</PropertyGroup>

<!-- Copying the Lombiq logo as an icon to all NuGet-published projects. -->
Expand Down
1 change: 1 addition & 0 deletions Lombiq.OSOCE.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
package.json = package.json
Readme.md = Readme.md
Reset-Local.ps1 = Reset-Local.ps1
.prettierrc.js = .prettierrc.js
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{11E06A11-1733-408D-BB2F-BFA07075F812}"
Expand Down

0 comments on commit 9f30b8f

Please sign in to comment.