Comments (11)
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.
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.
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.
ok will wait for @geek then ;)
from eslint-config-hapi.
@AdriVanHoudt good call, looks like we can switch to the new rule option.
from eslint-config-hapi.
@cjihrig unless you need it quicker I can only do a pr by end of the week
from eslint-config-hapi.
from eslint-config-hapi.
👍
from eslint-config-hapi.
any eta on ?
from eslint-config-hapi.
v6.0.0 has shipped. The lab PR is hapijs/lab#480
from eslint-config-hapi.
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)
- Drop support for everything but Node 4 and 6 HOT 1
- Add a .npmignore file HOT 1
- Update dependencies HOT 1
- Track deprecated rules HOT 1
- Catch undeclared variables HOT 5
- validation aware eslint-config HOT 2
- Warning message during eslint-config-hapi with yarn HOT 5
- Why require-await? HOT 6
- Why no dangling commas? HOT 2
- Eslint 5 support HOT 2
- Change module namespace HOT 1
- eslint 6 support HOT 1
- Action required: Greenkeeper could not be activated 🚨 HOT 1
- Add rule: no-dupe-keys HOT 3
- Missing API file
- Rule request: key-spacing
- Update ES version
- Drop node 8 and 10
- Fix es env
- Cleanup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-config-hapi.