Coder Social home page Coder Social logo

my_custom_lints's Introduction

mason_custom_lint

Powered by Mason

This project uses a brick template to generate custom lints with mason.

Check this brick out on brickHub

bloc_demo

Generated code is built on top of custom_lint.

Generate ๐Ÿ’ป

Take a look at how to initialize mason and then you can do mason make custom_lint_brick into a terminal.

CLI will ask you what kind of file name and corresponding classes you want to match.

E.g. if you have a file called authentication_service.dart and you want to have inside it a class called AuthenticationService and not only Authentication you can write service when CLI will ask you.

The same with bloc, model and so on.

mason_custom_lints folder contains a generated package that checks for _service and _bloc files.

Usage ๐Ÿ”จ

Mason will generate a flutter package based on custom_lint package so the only thing you need to do to use it in your project is to add it to pubpsec and change the analysis_options file.

In your App add this to your pubspec.yaml:

dev_dependencies:
  custom_lint: ^0.0.15
  mason_custom_lints:
    path: ../mason_custom_lints

And in your analysis_options.yaml add:

analyzer:
  plugins:
    - custom_lint

my_custom_lints's People

Contributors

marcotrumpet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.