Last active
May 19, 2023 15:43
-
-
Save adnanalbeda/0ac3691c30165f45081123992f0ae5b4 to your computer and use it in GitHub Desktop.
Mono Repo Configs
This file contains hidden or 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
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# based on many repos: | |
# https://github.com/editorconfig/editorconfig/blob/master/.editorconfig | |
[*] | |
charset = utf-8 # Set default charset | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
end_of_line = lf # Unix-style newlines with a newline ending every file | |
# based on: https://github.com/editorconfig/editorconfig-core-js/blob/main/.editorconfig | |
block_comment_start = /** | |
block_comment = * | |
block_comment_end = */ | |
# Shell script files | |
[*.sh] | |
end_of_line = lf | |
[*.md] | |
trim_trailing_whitespace = false | |
# Windows command | |
[*.{bat,cmd}] | |
end_of_line = crlf # Windows-style newlines with a newline ending every file | |
################################### | |
# .NET Visual Studio Specific # | |
################################### | |
# DotNet Specific, based on: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options | |
# XML project files | |
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] | |
indent_size = 2 | |
# XML config files | |
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] | |
indent_size = 2 | |
# Code files | |
[*.{cs,csx,vb,vbx}] | |
indent_size = 4 | |
insert_final_newline = true | |
charset = utf-8-bom | |
############################ | |
# .NET Coding Conventions # | |
# based on Roslyn settings # | |
############################ | |
# https://github.com/dotnet/roslyn/blob/main/.editorconfig | |
# Dotnet code style settings: | |
[*.{cs,vb}] | |
# Sort using and Import directives with System.* appearing first | |
dotnet_sort_system_directives_first = true | |
dotnet_separate_import_directive_groups = false | |
# Avoid "this." and "Me." if not necessary | |
dotnet_style_qualification_for_field = false:refactoring | |
dotnet_style_qualification_for_property = false:refactoring | |
dotnet_style_qualification_for_method = false:refactoring | |
dotnet_style_qualification_for_event = false:refactoring | |
# Use language keywords instead of framework type names for type references | |
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion | |
dotnet_style_predefined_type_for_member_access = true:suggestion | |
# Suggest more modern language features when available | |
dotnet_style_object_initializer = true:suggestion | |
dotnet_style_collection_initializer = true:suggestion | |
dotnet_style_coalesce_expression = true:suggestion | |
dotnet_style_null_propagation = true:suggestion | |
dotnet_style_explicit_tuple_names = true:suggestion | |
# Whitespace options | |
dotnet_style_allow_multiple_blank_lines_experimental = false | |
# Non-private static fields are PascalCase | |
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion | |
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields | |
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style | |
dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field | |
dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected | |
dotnet_naming_symbols.non_private_static_fields.required_modifiers = static | |
dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case | |
# Non-private readonly fields are PascalCase | |
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.severity = suggestion | |
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.symbols = non_private_readonly_fields | |
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.style = non_private_readonly_field_style | |
dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field | |
dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected | |
dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly | |
dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case | |
# Constants are PascalCase | |
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion | |
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants | |
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style | |
dotnet_naming_symbols.constants.applicable_kinds = field, local | |
dotnet_naming_symbols.constants.required_modifiers = const | |
dotnet_naming_style.constant_style.capitalization = pascal_case | |
# Static fields are camelCase and start with s_ | |
dotnet_naming_rule.static_fields_should_be_camel_case.severity = suggestion | |
dotnet_naming_rule.static_fields_should_be_camel_case.symbols = static_fields | |
dotnet_naming_rule.static_fields_should_be_camel_case.style = static_field_style | |
dotnet_naming_symbols.static_fields.applicable_kinds = field | |
dotnet_naming_symbols.static_fields.required_modifiers = static | |
dotnet_naming_style.static_field_style.capitalization = camel_case | |
dotnet_naming_style.static_field_style.required_prefix = s_ | |
# Instance fields are camelCase and start with _ | |
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion | |
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields | |
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style | |
dotnet_naming_symbols.instance_fields.applicable_kinds = field | |
dotnet_naming_style.instance_field_style.capitalization = camel_case | |
dotnet_naming_style.instance_field_style.required_prefix = _ | |
# Locals and parameters are camelCase | |
dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion | |
dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters | |
dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style | |
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local | |
dotnet_naming_style.camel_case_style.capitalization = camel_case | |
# Local functions are PascalCase | |
dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion | |
dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions | |
dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style | |
dotnet_naming_symbols.local_functions.applicable_kinds = local_function | |
dotnet_naming_style.local_function_style.capitalization = pascal_case | |
# By default, name items with PascalCase | |
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion | |
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members | |
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style | |
dotnet_naming_symbols.all_members.applicable_kinds = * | |
dotnet_naming_style.pascal_case_style.capitalization = pascal_case | |
file_header_template = Whatever you want to appear at the top of any file you create. | |
# RS0016: Only enable if API files are present | |
dotnet_public_api_analyzer.require_api_files = true | |
# CSharp code style settings: | |
[*.cs] | |
# Newline settings | |
csharp_new_line_before_open_brace = all | |
csharp_new_line_before_else = true | |
csharp_new_line_before_catch = true | |
csharp_new_line_before_finally = true | |
csharp_new_line_before_members_in_object_initializers = true | |
csharp_new_line_before_members_in_anonymous_types = true | |
csharp_new_line_between_query_expression_clauses = true | |
# Indentation preferences | |
csharp_indent_block_contents = true | |
csharp_indent_braces = false | |
csharp_indent_case_contents = true | |
csharp_indent_case_contents_when_block = true | |
csharp_indent_switch_labels = true | |
csharp_indent_labels = flush_left | |
# Whitespace options | |
csharp_style_allow_embedded_statements_on_same_line_experimental = false | |
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false | |
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false | |
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false | |
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false | |
# Prefer "var" everywhere | |
csharp_style_var_for_built_in_types = true:suggestion | |
csharp_style_var_when_type_is_apparent = true:suggestion | |
csharp_style_var_elsewhere = true:suggestion | |
# Prefer method-like constructs to have a block body | |
csharp_style_expression_bodied_methods = false:none | |
csharp_style_expression_bodied_constructors = false:none | |
csharp_style_expression_bodied_operators = false:none | |
# Prefer property-like constructs to have an expression-body | |
csharp_style_expression_bodied_properties = true:none | |
csharp_style_expression_bodied_indexers = true:none | |
csharp_style_expression_bodied_accessors = true:none | |
# Suggest more modern language features when available | |
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion | |
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion | |
csharp_style_inlined_variable_declaration = true:suggestion | |
csharp_style_throw_expression = true:suggestion | |
csharp_style_conditional_delegate_call = true:suggestion | |
csharp_style_prefer_extended_property_pattern = true:suggestion | |
# Space preferences | |
csharp_space_after_cast = false | |
csharp_space_after_colon_in_inheritance_clause = true | |
csharp_space_after_comma = true | |
csharp_space_after_dot = false | |
csharp_space_after_keywords_in_control_flow_statements = true | |
csharp_space_after_semicolon_in_for_statement = true | |
csharp_space_around_binary_operators = before_and_after | |
csharp_space_around_declaration_statements = do_not_ignore | |
csharp_space_before_colon_in_inheritance_clause = true | |
csharp_space_before_comma = false | |
csharp_space_before_dot = false | |
csharp_space_before_open_square_brackets = false | |
csharp_space_before_semicolon_in_for_statement = false | |
csharp_space_between_empty_square_brackets = false | |
csharp_space_between_method_call_empty_parameter_list_parentheses = false | |
csharp_space_between_method_call_name_and_opening_parenthesis = false | |
csharp_space_between_method_call_parameter_list_parentheses = false | |
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false | |
csharp_space_between_method_declaration_name_and_open_parenthesis = false | |
csharp_space_between_method_declaration_parameter_list_parentheses = false | |
csharp_space_between_parentheses = false | |
csharp_space_between_square_brackets = false | |
# Blocks are allowed | |
csharp_prefer_braces = true:silent | |
csharp_preserve_single_line_blocks = true | |
csharp_preserve_single_line_statements = true | |
# IDE0060: Remove unused parameter | |
dotnet_diagnostic.IDE0060.severity = warning | |
# OR you can use CSharpier instead. | |
# VS22 Spelling Settings | |
# https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022 | |
spelling_languages = en-us | |
spelling_checkable_types = strings,identifiers,comments | |
spelling_error_severity = information # error OR warning OR information OR hint |
This file contains hidden or 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
node_modules | |
dist | |
build | |
coverage | |
*.min.* |
This file contains hidden or 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
module.exports = { | |
env: { | |
browser: true, | |
es2021: true, | |
node: true, | |
}, | |
extends: [ | |
"eslint:recommended", | |
"plugin:sonarjs/recommended", | |
"plugin:react/recommended", | |
"plugin:react/jsx-runtime", | |
"plugin:@typescript-eslint/recommended", | |
"prettier", | |
], | |
overrides: [], | |
parser: "@typescript-eslint/parser", | |
parserOptions: { | |
ecmaVersion: "latest", | |
sourceType: "module", | |
}, | |
plugins: ["react", "@typescript-eslint", "sonarjs"], | |
rules: {}, | |
}; |
This file contains hidden or 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
# Common | |
# Logs | |
[Ll]og/ | |
[Ll]ogs/ | |
*.log | |
*.logs | |
*.lock | |
.[Cc]ache | |
.[Tt]emp | |
# Linux (https://github.com/github/gitignore/blob/main/Global/Linux.gitignore) | |
*~ | |
# temporary files which can be created if a process still has a handle open of a deleted file | |
.fuse_hidden* | |
# KDE directory preferences | |
.directory | |
# Linux trash folder which might appear on any partition or disk | |
.Trash-* | |
# .nfs files are created when an open file is removed but is still being accessed | |
.nfs* | |
# Windows (https://github.com/github/gitignore/blob/main/Global/Windows.gitignore) | |
# Windows thumbnail cache files | |
Thumbs.db | |
Thumbs.db:encryptable | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump | |
# Folder config file | |
[Dd]esktop.ini | |
# Recycle Bin used on file shares | |
$RECYCLE.BIN/ | |
# Windows Installer files | |
*.cab | |
*.msi | |
*.msix | |
*.msm | |
*.msp | |
# Windows shortcuts | |
*.lnk | |
# macOS (https://github.com/github/gitignore/blob/main/Global/macOS.gitignore) | |
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Thumbnails | |
._* | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
.com.apple.timemachine.donotpresent | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk | |
# VS Code (https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore) | |
.vscode/* | |
!.vscode/settings.json | |
!.vscode/tasks.json | |
!.vscode/launch.json | |
!.vscode/extensions.json | |
!.vscode/*.code-snippets | |
# Local History for Visual Studio Code | |
.history/ | |
# Built Visual Studio Code Extensions | |
*.vsix | |
# DotNet | |
# Visual Studio (https://github.com/github/gitignore/blob/main/VisualStudio.gitignore) | |
# User-specific files | |
*.rsuser | |
*.suo | |
*.user | |
*.userosscache | |
*.sln.docstates | |
# User-specific files (MonoDevelop/Xamarin Studio) | |
*.userprefs | |
# Mono auto generated files | |
mono_crash.* | |
# NuGet Packages | |
nupkg/ | |
*.nupkg | |
# NuGet Symbol Packages | |
*.snupkg | |
# The packages folder can be ignored because of Package Restore | |
**/[Pp]ackages/* | |
# except build/, which is used as an MSBuild target. | |
!**/[Pp]ackages/build/ | |
# Uncomment if necessary however generally it will be regenerated when needed | |
#!**/[Pp]ackages/repositories.config | |
# NuGet v3's project.json files produces more ignorable files | |
*.nuget.props | |
*.nuget.targets | |
# Build results | |
dotnet-src/**/[Dd]ebug/ | |
dotnet-src/**/[Dd]ebugPublic/ | |
dotnet-src/**/[Rr]elease/ | |
dotnet-src/**/[Rr]eleases/ | |
dotnet-src/**/x64/ | |
dotnet-src/**/x86/ | |
dotnet-src/**/[Ww][Ii][Nn]32/ | |
dotnet-src/**/[Aa][Rr][Mm]/ | |
dotnet-src/**/[Aa][Rr][Mm]64/ | |
dotnet-src/**/build/ | |
dotnet-src/**/bld/ | |
dotnet-src/**/[Bb]in/ | |
dotnet-src/**/[Oo]bj/ | |
dotnet-src/**/[Oo]ut/ | |
dotnet-src/**/msbuild.log | |
dotnet-src/**/msbuild.err | |
dotnet-src/**/msbuild.wrn | |
# Visual Studio 2015/2017 cache/options directory | |
.vs/ | |
# Uncomment if you have tasks that create the project's static files in wwwroot | |
#src/**/wwwroot/ | |
# Visual Studio 2017 auto generated files | |
Generated\ Files/ | |
# MSTest test Results | |
[Tt]est[Rr]esult*/ | |
[Bb]uild[Ll]og.* | |
# NUnit | |
*.VisualState.xml | |
TestResult.xml | |
nunit-*.xml | |
# Benchmark Results | |
BenchmarkDotNet.Artifacts/ | |
# .NET Core | |
project.lock.json | |
project.fragment.lock.json | |
artifacts/ | |
# ASP.NET Scaffolding | |
ScaffoldingReadMe.txt | |
# Files built by Visual Studio | |
*_i.c | |
*_p.c | |
*_h.h | |
*.ilk | |
*.meta | |
*.obj | |
*.iobj | |
*.pch | |
*.pdb | |
*.ipdb | |
*.pgc | |
*.pgd | |
*.rsp | |
*.sbr | |
*.tlb | |
*.tli | |
*.tlh | |
*.tmp | |
*.tmp_proj | |
*_wpftmp.csproj | |
*.tlog | |
*.vspscc | |
*.vssscc | |
.builds | |
*.pidb | |
*.svclog | |
*.scc | |
# Visual Studio profiler | |
*.psess | |
*.vsp | |
*.vspx | |
*.sap | |
# Visual Studio Trace Files | |
*.e2e | |
# ReSharper is a .NET coding add-in | |
_ReSharper*/ | |
*.[Rr]e[Ss]harper | |
*.DotSettings.user | |
# DotCover is a Code Coverage Tool | |
*.dotCover | |
# Coverlet is a free, cross platform Code Coverage Tool | |
coverage*.json | |
coverage*.xml | |
coverage*.info | |
# Visual Studio code coverage results | |
*.coverage | |
*.coveragexml | |
# NCrunch | |
_NCrunch_* | |
.*crunch*.local.xml | |
nCrunchTemp_* | |
# Web workbench (sass) | |
.sass-cache/ | |
# Installshield output folder | |
[Ee]xpress/ | |
# Click-Once directory | |
src/**/publish/ | |
# Publish Web Output | |
*.[Pp]ublish.xml | |
*.azurePubxml | |
# Note: Comment the next line if you want to checkin your web deploy settings, | |
# but database connection strings (with potential passwords) will be unencrypted | |
*.pubxml | |
*.publishproj | |
# Microsoft Azure Build Output | |
csx/ | |
*.build.csdef | |
# Microsoft Azure Emulator | |
ecf/ | |
rcf/ | |
# Windows Store app package directories and files | |
AppPackages/ | |
BundleArtifacts/ | |
Package.StoreAssociation.xml | |
_pkginfo.txt | |
*.appx | |
*.appxbundle | |
*.appxupload | |
# Others | |
*.dbmdl | |
*.dbproj.schemaview | |
*.pfx | |
*.publishsettings | |
# Backup & report files from converting an old project file | |
# to a newer Visual Studio version. Backup files are not needed, | |
# because we have git ;-) | |
_UpgradeReport_Files/ | |
Backup*/ | |
UpgradeLog*.XML | |
UpgradeLog*.htm | |
ServiceFabricBackup/ | |
*.rptproj.bak | |
# SQL Server files | |
*.mdf | |
*.ldf | |
*.ndf | |
# Microsoft Fakes | |
FakesAssemblies/ | |
# Node.js Tools for Visual Studio | |
.ntvs_analysis.dat | |
# Python Tools for Visual Studio (PTVS) | |
__pycache__/ | |
*.pyc | |
# Azure Stream Analytics local run output | |
ASALocalRun/ | |
# MSBuild Binary and Structured Log | |
*.binlog | |
# Local History for Visual Studio | |
.localhistory/ | |
# Visual Studio History (VSHistory) files | |
.vshistory/ | |
# Ionide (cross platform F# VS Code tools) working folder | |
.ionide/ | |
# JetBrains Rider | |
*.sln.iml | |
# Node (https://github.com/github/gitignore/blob/main/Node.gitignore) | |
# dotenv environment variable files | |
.env | |
.env.development.local | |
.env.test.local | |
.env.production.local | |
.env.local | |
# Logs | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
.pnpm-debug.log* | |
# Diagnostic reports (https://nodejs.org/api/report.html) | |
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | |
# Directory for instrumented libs generated by jscoverage/JSCover | |
lib-cov | |
# Coverage directory used by tools like istanbul | |
coverage | |
*.lcov | |
# node-waf configuration | |
.lock-wscript | |
# Compiled binary addons (https://nodejs.org/api/addons.html) | |
build/Release | |
# packages build | |
dist | |
build | |
# Dependency directories | |
node_modules/ | |
jspm_packages/ | |
# TypeScript cache | |
*.tsbuildinfo | |
# Optional npm cache directory | |
.npm | |
# Optional eslint cache | |
.eslintcache | |
# Optional stylelint cache | |
.stylelintcache | |
# Microbundle cache | |
.rpt2_cache/ | |
.rts2_cache_cjs/ | |
.rts2_cache_es/ | |
.rts2_cache_umd/ | |
# Optional REPL history | |
.node_repl_history | |
# Output of 'npm pack' | |
*.tgz | |
# parcel-bundler cache (https://parceljs.org/) | |
.parcel-cache | |
# Next.js build output | |
.next | |
out | |
# Sass | |
.sass-cache/ |
This file contains hidden or 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
# read about it here: https://pnpm.io/npmrc | |
hoist=true | |
hoist-pattern[]=ts-node # package/vite: postcss-load-config | |
hoist-pattern[]=postcss # package/vite | |
public-hoist-pattern[]=*sylelint* | |
lockfile=true | |
auto-install-peers=true | |
dedupe-peer-dependents=true | |
strict-peer-dependencies=false | |
resolve-peers-from-workspace-root=true | |
recursive-install=true | |
engine-strict=false # interesting, might actually want to change it to true. | |
link-workspace-packages=true # This option can be useful if you have packages within the workspace that depend on other packages within the workspace and those depended-on packages are also published to the registry2. For example, if you have two packages LocalA and LocalB in your monorepo, and LocalA depends on an external package Z, but Z depends on LocalB, then setting link-workspace-packages=deep will make Z depend on the internal version of LocalB instead of the registry version. | |
shared-workspace-lockfile=true | |
# read more about original npmrc configs here: https://docs.npmjs.com/cli/v9/using-npm/config | |
commit-hooks=true | |
provenance = true | |
ignore-scripts=false | |
save-exact=true | |
tag-version-prefix=v | |
shell-emulator=true # a configuration option that you can set in your npmrc file to enable a shell emulator for npm scripts. This means that npm will use a shell emulator to run commands in your scripts instead of the default system shell. This can be useful if you want to use features that are not supported by the default shell, such as globbing, piping, or redirection. |
This file contains hidden or 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
{ | |
"FormattingOptions": { "EnableEditorConfigSupport": true }, | |
"RoslynExtensionsOptions": { "EnableAnalyzersSupport": true } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment