library_prefixes

Group: style

Maturity: stable

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

Since info is static, may be stale
pedanticeffective dart

View all Lint Rules

Using the 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;