Swap to using eslint (#435)

* WIP

* ... and more

* yet more...

* and examples (more-or-less) fixed

* Only problematic promisify left...

* Last batch

* rm config header

* Update

* Use Record

* Bumps
This commit is contained in:
Jaco Greeff
2019-07-14 11:12:46 +02:00
committed by GitHub
parent 7366c6d280
commit 80db504a3b
261 changed files with 1549 additions and 1731 deletions
+5 -5
View File
@@ -4,26 +4,26 @@
import { stringUpperFirst } from '.';
describe('stringUpperFirst', () => {
it("uppers the first letter if it's a capital letter", () => {
describe('stringUpperFirst', (): void => {
it("uppers the first letter if it's a capital letter", (): void => {
expect(
stringUpperFirst('ABC')
).toBe('ABC');
});
it("uppers the first letter if it's a lowercase letter", () => {
it("uppers the first letter if it's a lowercase letter", (): void => {
expect(
stringUpperFirst('abc')
).toBe('Abc');
});
it('returns undefined as empty', () => {
it('returns undefined as empty', (): void => {
expect(
stringUpperFirst()
).toBe('');
});
it('returns null as empty', () => {
it('returns null as empty', (): void => {
expect(
stringUpperFirst(null)
).toBe('');