2.2.0 • Published 1 year ago

@quero/eslint-config-base v2.2.0

Weekly downloads
144
License
MIT
Repository
github
Last release
1 year ago

@quero/eslint-config-base

Rules

no-implicit-coercion:

It is bad for reading, especially if you do not know what those shorthands do, because they are not intuitive

// BAD:
var b = !!foo;
var b = ~foo.indexOf(".");
var n = +foo;
var n = 1 * foo;
var s = "" + foo;
foo += ``;

// GOOD:
var b = Boolean(foo);
var b = foo.indexOf(".") !== -1;
var n = Number(foo);
var n = Number(foo);
var s = String(foo);
foo = String(foo);

arrow-parens:

// BAD:
(a) => console.log(a);

a => {
  console.log(a);
}

// GOOD:
() => {};

a => console.log(a);
(a, b) => console.warn(a, b);
({ a }) => console.warn(a);

(a) => {
  console.log(a);
};

brace-style: comma-dangle comma-spacing curly eol-last eqeqeq indent key-spacing keyword-spacing no-duplicate-imports no-extra-semi no-multiple-empty-lines no-multi-spaces no-return-await no-trailing-spaces no-undef object-curly-newline object-curly-spacing padding-line-between-statements prefer-const quotes semi space-before-blocks space-in-parens space-infix-ops no-unused-vars

2.2.0

1 year ago

2.1.0

3 years ago

2.0.2

4 years ago

2.0.2-alpha.1

4 years ago

2.0.2-alpha.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago