eslint-config-metarhia
Advanced tools
Changelog
4.0.0 (2018-08-22)
Before:
const f = x => x;
const g = (x, y) => x + y;
const h = (x) => {
console.log(x);
};
const i = (x, f) => {
f(x);
};
After:
// Not affected
const f = x => x;
// Not affected
const g = (x, y) => x + y;
// AFFECTED
const h = x => {
console.log(x);
};
// Not affected
const i = (x, f) => {
f(x);
};
This rule is fixable via eslint --fix
.
Refs: https://github.com/metarhia/Metarhia/issues/22
<a name="3.0.0"></a>
Changelog
3.0.0 (2018-07-19)
<a name="2.0.0"></a>
Changelog
2.0.0 (2017-11-26)
rules: before this change, if doSomething()
in the following
snippet of code
const fn = () => doSomething();
could not fit on one line, both
const fn = () => (
doSomething()
);
and
const fn = () =>
doSomething();
would be valid from the point of view of ESLint.
After this change, only
const fn = () => (
doSomething()
);
is valid.
Also, it is required to update ESLint.
<a name="1.0.1"></a>