Various tools for Dart support in Atom.
NOTE: somewhat alpha quality
- Updated grammar file (no need for the
language-dart
package; remove it if you have it) - Lints the Dart project when a pubspec.yaml file exists at project root. (see note section)
- Formats the current Dart file via command palette
- Can perform "pub get" when pubspec.yaml is saved.
- Can format Dart files on save.
- Putting the caret within an analysis error quickly shows the problem text
- Basic autocomplete, via the
autocomplete-plus
package.
- Pub Get
- Sdk Info
- Format Code
Formatting will save the current editor buffer first.
Linting requires you to set your dart-sdk location. You can do from Settings View: Open -> Filter Packages -> Dart Tools.
Linting will not be performed until you have run pub get
at least once.
Performance: dart-tools
doesn't handle a large number of errors very well -- around 300 errors starts slowing things down. Take care with your refactoring until this is resolved!
dart.cson taken from https://github.com/Daegalus/atom-language-dart (dead?) and modified.