hapijs / eslint-config-hapi

Shareable ESLint config for the hapi ecosystem
Other
22 stars 23 forks source link

eslint 1.8 new rules #23

Closed AdriVanHoudt closed 9 years ago

AdriVanHoudt commented 9 years ago

The rules added with 1.8 seem useful to add also no-shadow now has an allow option see http://eslint.org/docs/rules/no-shadow#allow which can replace https://www.npmjs.com/package/no-shadow-relaxed if I am correct

cjihrig commented 9 years ago

ESLint 1.8 introduced these rules:

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

AdriVanHoudt commented 9 years ago

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

cjihrig commented 9 years ago

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).

AdriVanHoudt commented 9 years ago

ok will wait for @geek then ;)

geek commented 9 years ago

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

AdriVanHoudt commented 9 years ago

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

cjihrig commented 9 years ago
AdriVanHoudt commented 9 years ago

:+1:

AdriVanHoudt commented 9 years ago

any eta on :shipit: ?

cjihrig commented 9 years ago

v6.0.0 has shipped. The lab PR is https://github.com/hapijs/lab/pull/480

lock[bot] commented 4 years ago

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.