firebase_rules_linter 0.2.1 copy "firebase_rules_linter: ^0.2.1" to clipboard
firebase_rules_linter: ^0.2.1 copied to clipboard

A linter for the firebase_rules package to prevent common issues

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add firebase_rules_linter

With Flutter:

 $ flutter pub add firebase_rules_linter

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  firebase_rules_linter: ^0.2.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:firebase_rules_linter/lints/avoid_raw_rules.dart';
import 'package:firebase_rules_linter/lints/invalid_match_function.dart';
import 'package:firebase_rules_linter/lints/invalid_match_path.dart';
import 'package:firebase_rules_linter/lints/invalid_rules_function.dart';
import 'package:firebase_rules_linter/lints/no_set_literals.dart';
import 'package:firebase_rules_linter/lints/undeclared_enum_value.dart';
import 'package:firebase_rules_linter/lints/undeclared_function.dart';
import 'package:firebase_rules_linter/main.dart';
import 'package:firebase_rules_linter/util.dart';
0
likes
150
points
249
downloads

Publisher

verified publisheriodesignteam.com

Weekly Downloads

A linter for the firebase_rules package to prevent common issues

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, collection, meta, source_gen, source_helper

More

Packages that depend on firebase_rules_linter