VSCode
Support for the Bloc VSCode Extension is available in v6.8.0.
Este conteúdo não está disponível em sua língua ainda.
To use the linter from the command line, install
package:bloc_tools
via the following
command:
dart pub global activate bloc_tools
Once the bloc command-line tools have been installed, you can run the bloc
linter via the bloc lint
command:
$ bloc lint --helpLint Dart source code.
Usage: bloc lint [arguments]-h, --help Print this usage information.
Run "bloc help" to see global options.
To install preconfigured lint rule sets, install
package:bloc_lint
as a dev dependency
via the following command:
dart pub add --dev bloc_lint:^0.2.0-dev.0
Then, add an analysis_options.yaml
to the root of your project with the
recommended rule set:
include: package:bloc_lint/recommended.yaml
The following IDEs officially support the bloc linter and language server to provide instant diagnostics directly within your IDE.
VSCode
Support for the Bloc VSCode Extension is available in v6.8.0.
IntelliJ
Support for the Bloc IntelliJ Plugin is coming soon.