From 7ead38f5c89b4203d112ebe5f14ddfb7f471ec24 Mon Sep 17 00:00:00 2001 From: thomashii Date: Thu, 8 Jul 2021 10:44:27 +0800 Subject: [PATCH] Updated vscode settings --- .vscode/settings.json | 14 ++++- packages/.gitignore | 1 + packages/framework/.gitignore | 71 ------------------------ packages/framework/analysis_options.yaml | 22 ++++---- 4 files changed, 25 insertions(+), 83 deletions(-) delete mode 100644 packages/framework/.gitignore diff --git a/.vscode/settings.json b/.vscode/settings.json index 32cfc61d..c73eeab5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,17 @@ { "files.watcherExclude": { "**/target": true - } + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "beautify.language": { + "html": ["html"], + "css": [], + "js": [] + }, + "editor.codeActionsOnSave": { + "source.fixAll.markdownlint": true + } } \ No newline at end of file diff --git a/packages/.gitignore b/packages/.gitignore index 24d68312..6b9ff991 100644 --- a/packages/.gitignore +++ b/packages/.gitignore @@ -50,6 +50,7 @@ doc/api/ ## VsCode .vscode/ +!.vscode/settings.json ## File-based project format: *.iws diff --git a/packages/framework/.gitignore b/packages/framework/.gitignore deleted file mode 100644 index 24d68312..00000000 --- a/packages/framework/.gitignore +++ /dev/null @@ -1,71 +0,0 @@ -# See https://www.dartlang.org/tools/private-files.html - -# Files and directories created by pub -.dart_tool -.packages -.pub/ -build/ - -# If you're building an application, you may want to check-in your pubspec.lock -pubspec.lock - -# Directory created by dartdoc -# If you don't generate documentation locally you can remove this line. -doc/api/ - -### Dart template -# See https://www.dartlang.org/tools/private-files.html - -# Files and directories created by pub - -# SDK 1.20 and later (no longer creates packages directories) - -# Older SDK versions -# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20) -.project -.buildlog -**/packages/ - - -# Files created by dart2js -# (Most Dart developers will use pub build to compile Dart, use/modify these -# rules if you intend to use dart2js directly -# Convention is to use extension '.dart.js' for Dart compiled to Javascript to -# differentiate from explicit Javascript files) -*.dart.js -*.part.js -*.js.deps -*.js.map -*.info.json - -# Directory created by dartdoc - -# Don't commit pubspec lock file -# (Library packages only! Remove pattern if developing an application package) -### JetBrains template -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff: - -## VsCode -.vscode/ - -## File-based project format: -*.iws - -## Plugin-specific files: - -# IntelliJ -.idea/ -/out/ -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties diff --git a/packages/framework/analysis_options.yaml b/packages/framework/analysis_options.yaml index 4e27c95b..823b2f2f 100644 --- a/packages/framework/analysis_options.yaml +++ b/packages/framework/analysis_options.yaml @@ -1,16 +1,16 @@ include: package:pedantic/analysis_options.yaml analyzer: - errors: - always_declare_return_types: ignore - omit_local_variable_types: ignore - prefer_single_quotes: ignore - prefer_spread_collections: ignore +# errors: +# always_declare_return_types: ignore +# omit_local_variable_types: ignore +# prefer_single_quotes: ignore +# prefer_spread_collections: ignore strong-mode: implicit-casts: false -linter: - rules: - - avoid_slow_async_io - - curly_braces_in_flow_control_structures - - unnecessary_const - - unnecessary_new \ No newline at end of file +#linter: +# rules: +# - avoid_slow_async_io +# - curly_braces_in_flow_control_structures +# - unnecessary_const +# - unnecessary_new \ No newline at end of file