-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace tslint with eslint (#433)
- Replace tslint with eslint - Run prettier as eslint plugin
- Loading branch information
Showing
26 changed files
with
3,320 additions
and
2,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
// TODO: remove this override | ||
"@typescript-eslint/no-explicit-any": "off" | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run ts:style && npm run test:only-changed | ||
npm run eslint && npm run test:only-changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
const {cold, hot, time} = require('../umd/jest-marbles'); | ||
const { cold, hot, time } = require('../dist/umd/jest-marbles'); | ||
|
||
/** | ||
* Created by Evgeny Barabanov on 05/03/2018. | ||
*/ | ||
describe('Imports test', () => { | ||
it('All the function should exist', () => { | ||
const c = cold('a|'); | ||
const h = hot('a|'); | ||
const t = time('a|'); | ||
expect(c).not.toBeNull(); | ||
expect(h).not.toBeNull(); | ||
expect(t).not.toBeNull(); | ||
}); | ||
|
||
it('All the function should exist', () => { | ||
const c = cold('a|'); | ||
const h = hot('a|'); | ||
const t = time('a|'); | ||
expect(c).not.toBeNull(); | ||
expect(h).not.toBeNull(); | ||
expect(t).not.toBeNull(); | ||
}); | ||
|
||
it('Should work with value objects', () => { | ||
const c = cold('--a-|', {a: {prop: "blah"}}); | ||
expect(c).toBeObservable(cold('--a-|', {a: {prop: "blah"}})); | ||
}); | ||
|
||
it('Should work with value objects', () => { | ||
const c = cold('--a-|', { a: { prop: 'blah' } }); | ||
expect(c).toBeObservable(cold('--a-|', { a: { prop: 'blah' } })); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.