Giter VIP home page Giter VIP logo

Comments (11)

cjihrig avatar cjihrig commented on May 30, 2024

ESLint 1.8 introduced these rules:

  • arrow-body-style - I originally wanted to use this rule, set to "always", but we decided to allow implicit returns. The other setting is "as-needed", but I don't see much use for this. I talked to @hueniverse about it and it was decided that single line arrow functions can still be implemented as a normal function if you so choose. So, this rule is not much help.
  • no-arrow-condition - This rule helps catch typos and bad practices, so I'm +1 for enabling this rule.

As for the new no-shadow vs no-shadow-relaxed, I'll leave that call up to @geek, as he wrote no-shadow-relaxed.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 30, 2024

cool, will wait for @geek and then let me know if you want a PR or you prefer doing it yourself ;)

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 30, 2024

PRs are welcome. The config is in lib/index.js. Each changed rule gets a test in test/index.js based on a fixture in test/fixtures/{rule-name}.js. The test does not need to be comprehensive for the rule (that testing should be done in the rule itself).

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 30, 2024

ok will wait for @geek then ;)

from eslint-config-hapi.

geek avatar geek commented on May 30, 2024

@AdriVanHoudt good call, looks like we can switch to the new rule option.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 30, 2024

@cjihrig unless you need it quicker I can only do a pr by end of the week

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 30, 2024
  • Added no-arrow-condition rule in e7296ff.
  • Replaced no-shadow-relaxed with no-shadow in 9cde7d9.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 30, 2024

👍

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 30, 2024

any eta on :shipit: ?

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 30, 2024

v6.0.0 has shipped. The lab PR is hapijs/lab#480

from eslint-config-hapi.

lock avatar lock commented on May 30, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from eslint-config-hapi.

Related Issues (20)

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.