Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRIVIAL: use ESLint instead of TSLint #233

Merged
merged 31 commits into from
Oct 2, 2019
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2ea218f
build(package): replace TSLint by ESLint
mrmlnc Sep 21, 2019
72fa5d0
style: fix `ban-types` rule
mrmlnc Sep 30, 2019
9a755f4
style: fix `explicit-function-return-type` rule
mrmlnc Sep 30, 2019
ad7afae
style: fix `generic-type-naming` rule
mrmlnc Sep 30, 2019
5363bd4
style: fix `member-ordering` rule
mrmlnc Sep 30, 2019
88367f9
style: fix `no-extra-parens` rule
mrmlnc Sep 30, 2019
57425a0
style: fix `no-unnecessary-condition` rule
mrmlnc Sep 30, 2019
16a9803
style: fix `no-explicit-any` rule
mrmlnc Sep 30, 2019
c5ac139
style: fix `prefer-includes` rule
mrmlnc Sep 30, 2019
1ce7952
style: fix `import/order` rule
mrmlnc Sep 30, 2019
b9e594c
style: fix `no-unused-expressions` rule
mrmlnc Sep 30, 2019
97bd53c
style: fix `no-useless-escape` rule
mrmlnc Sep 30, 2019
5bb3e0d
style: fix `custom-error-definition` rule
mrmlnc Sep 30, 2019
5855ce1
style: fix `padding-line-between-statements` rule
mrmlnc Sep 30, 2019
2aa6fe0
style: fix `unicorn/prefer-spread` rule
mrmlnc Sep 30, 2019
5540cfe
style: fix `import/first` rule
mrmlnc Sep 30, 2019
38aecef
style: fix `require-array-sort-compare` rule
mrmlnc Sep 30, 2019
e63b0cb
style: fix `capitalized-comments` rule
mrmlnc Sep 30, 2019
1858f51
style: fix `no-magic-numbers` rule
mrmlnc Sep 30, 2019
c06f89f
style: fix `consistent-type-definitions` rule
mrmlnc Sep 30, 2019
bfc3b67
style: fix `no-redeclare` rule
mrmlnc Oct 1, 2019
cbcabd0
style: fix `unicorn/import-index` rule
mrmlnc Oct 1, 2019
376b8fa
style(benchmark): rename `getMeasures` → `formatMeasures`
mrmlnc Oct 1, 2019
4a6c244
style: fix `consistent-type-assertions` rule
mrmlnc Oct 1, 2019
027dab5
style: fix `unicorn/prevent-abbreviations` rule
mrmlnc Oct 1, 2019
89266ef
style: fix `strict-boolean-expressions` rule
mrmlnc Oct 1, 2019
abdf027
style: fix `no-require-imports` rule
mrmlnc Oct 1, 2019
c59673d
style: fix `no-misused-promises` rule
mrmlnc Oct 1, 2019
ced18d3
build(package): bump dependencies
mrmlnc Oct 1, 2019
85cb787
refactor(benchmark): use an array directly
mrmlnc Oct 1, 2019
1e0d0c0
style: fix some style issues after review
mrmlnc Oct 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EntryItem, ErrnoException } from './types/index';
describe('Package', () => {
describe('.sync', () => {
it('should throw an error when input values can not pass validation', () => {
/* tslint:disable-next-line no-any */
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
mrmlnc marked this conversation as resolved.
Show resolved Hide resolved
assert.throws(() => pkg.sync(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down Expand Up @@ -50,7 +50,7 @@ describe('Package', () => {
describe('.async', () => {
it('should throw an error when input values can not pass validation', async () => {
try {
/* tslint:disable-next-line no-any */
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
await pkg(null as any);
throw new Error('An unexpected error was found.');
} catch (error) {
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('Package', () => {

describe('.stream', () => {
it('should throw an error when input values can not pass validation', () => {
/* tslint:disable-next-line no-any */
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
assert.throws(() => pkg.stream(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down Expand Up @@ -150,7 +150,7 @@ describe('Package', () => {

describe('.generateTasks', () => {
it('should throw an error when input values can not pass validation', () => {
/* tslint:disable-next-line no-any */
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
assert.throws(() => pkg.generateTasks(null as any), /TypeError: Patterns must be a string or an array of strings/);
});

Expand Down