Giter Club home page Giter Club logo

eslint-plugin-better's People

Contributors

graingert avatar idmitriev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eslint-plugin-better's Issues

allow switch expressions

allow switches of the form:

switch(expr) {
    case (expr): return expr;
    ...
    default: return expr;
}

eg every switch must have a default return expr, every case must have a return expr.
then it's sort of like a match expression.

How to integrate all defaults into .eslintrc?

I want to start to use the defaults but I keep getting weird errors. I get all sorts of config schema errors if I use "plugin:better/recommended" or "plugin:better" or "plugin:better/all" in the extend block and I get "definition for (x) not found" for all definitions if I add the .eslintrc into the extend block.

What's the best way to have the defaults in my .eslintrc.js?

Thank you

Question

What's the justification around the no-exceptions rule? If I want to create pure functions, there are a few functions that throw, and I need to catch to ensure the function remains pure... or just let it blow up inside a Promise which doesn't really help me get finer grained error information.

Thanks for this library, btw!

Proposal: Merge into eslint-plugin-fp

As per jfmengels/eslint-plugin-fp#30, this package and eslint-plugin-fp have a bit of overlap since most of your rules are about enforcing functional programming. Since both projects are MIT licensed, it would be great to merge this into eslint-plugin-fp if you're comfortable with this. While I don't maintain that package, I'd be happy to help integrate them if you'd like.

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.