library_prefixes

Group: style

Maturity: stable

Dart SDK: >= 2.0.0 • (Linter v0.1.1)

View the Project on GitHub dart-lang/linter

DO use lowercase_with_underscores when specifying a library prefix.

GOOD:

import 'dart:math' as math;
import 'dart:json' as json;
import 'package:js/js.dart' as js;
import 'package:javascript_utils/javascript_utils.dart' as js_utils;

BAD:

import 'dart:math' as Math;
import 'dart:json' as JSON;
import 'package:js/js.dart' as JS;
import 'package:javascript_utils/javascript_utils.dart' as jsUtils;