NOTE: currently unmaintained. You should use the dartlang package instead.
Various tools for Dart support in Atom.
NOTE: somewhat alpha quality
- Updated grammar file (no need for the language-dartpackage; remove it if you have it)
- Lints the Dart project when a pubspec.yaml file exists at project root (see note section) or when you open a Dart file in the current project.
- 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-pluspackage.
- Generate new Dart projects using Stagehand
- Pub Get
- Pub Upgrade
- Sdk Info
- Format Code
Formatting will save the current editor buffer first.
Linting requires you to set your dart-sdk location. You can do that from
Settings View: Open -> Filter Packages -> Dart Tools.
Linting requires the linter package.
Did you install Dart SDK via homebrew? Use HOMEBREW_INSTALL/opt/dart/libexec
as the SDK directory (replace HOMEBREW_INSTALL with the location
where homebrew installs software, which is often /usr/local).
If you have a pubspec.yaml file or .packages path in your project, linting
will begin immediately. If not, linting will begin once you open a Dart file
that exists within your current project scope.
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.