From 1639e60ebe65f2d5836f149904ccda4fc625b743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 13 Nov 2023 13:12:29 +0100 Subject: [PATCH] MOBILE-3947 dx: Update some config to align to Ionic7 --- .editorconfig | 19 ++++++++++++ .gitignore | 66 ++++++++++++++++++++++++++++++++--------- .vscode/extensions.json | 1 + tsconfig.json | 28 +++++++++-------- 4 files changed, 88 insertions(+), 26 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..6c0301949 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# Editor configuration, see https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.json] +indent_size = 2 + +[*.ts] +quote_type = single + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index d3b41f8be..4d221f5fa 100644 --- a/.gitignore +++ b/.gitignore @@ -6,32 +6,70 @@ .tmp *.tmp *.tmp.* -*.sublime-project -*.sublime-workspace -.DS_Store -Thumbs.db UserInterfaceState.xcuserstate $RECYCLE.BIN/ *.log log.txt -npm-debug.log* -/.idea -/.ionic -/.sass-cache /.sourcemaps /.versions /coverage -/dist -/node_modules + +# Ionic +/.ionic +/www /platforms /plugins -/www + +# Compiled output +/dist +/tmp +/out-tsc +/bazel-out + +# Node +/node_modules +npm-debug.log +yarn-error.log + +# IDEs and editors +.idea/ +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-project +*.sublime-workspace + +# Visual Studio Code +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history/* + + +# Miscellaneous +/.angular +/.angular/cache +.sass-cache/ +/connect.lock +/coverage +/libpeerconnection.log +testem.log +/typings + +# System files +.DS_Store +Thumbs.db + +# Moodle App /src/assets/lib +/src/assets/lang/* +/src/assets/env.json /moodle.config.*.json !/moodle.config.example.json - -/src/assets/lang/* -/src/assets/env.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 71bb27499..2442fe5ac 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ + "ionic.ionic", "dbaeumer.vscode-eslint", "angular.ng-template" ] diff --git a/tsconfig.json b/tsconfig.json index 013b67b32..7b7f668e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,8 @@ "experimentalDecorators": true, "strictNullChecks": true, "strictPropertyInitialization": true, + "forceConsistentCasingInFileNames": true, + "useDefineForClassFields": false, "module": "esnext", "moduleResolution": "node", "importHelpers": true, @@ -32,21 +34,23 @@ "webpack-env" ], "paths": { - "@addons/*": ["addons/*"], - "@classes/*": ["core/classes/*"], - "@components/*": ["core/components/*"], - "@directives/*": ["core/directives/*"], - "@features/*": ["core/features/*"], - "@guards/*": ["core/guards/*"], - "@pipes/*": ["core/pipes/*"], - "@services/*": ["core/services/*"], - "@singletons": ["core/singletons/index"], - "@singletons/*": ["core/singletons/*"], - "@/*": ["*"] + "@addons/*": ["./addons/*"], + "@classes/*": ["./core/classes/*"], + "@components/*": ["./core/components/*"], + "@directives/*": ["./core/directives/*"], + "@features/*": ["./core/features/*"], + "@guards/*": ["./core/guards/*"], + "@pipes/*": ["./core/pipes/*"], + "@services/*": ["./core/services/*"], + "@singletons": ["./core/singletons/index"], + "@singletons/*": ["./core/singletons/*"], + "@/*": ["./*"] } }, "angularCompilerOptions": { "fullTemplateTypeCheck": true, - "strictInjectionParameters": true + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true } }