Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Commit 2e9aa4d

Browse files
committed
chore: replaces tslint with eslint
1 parent 067e545 commit 2e9aa4d

8 files changed

Lines changed: 347 additions & 145 deletions

File tree

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*dist*
2+
.storybook
3+
.vscode
4+
docs
5+
node_modules

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"parser": "typescript-eslint-parser",
3+
"plugins": ["eslint-plugin-typescript"]
4+
}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: node_js
22
node_js:
3-
- '8.9'
3+
- '9.11.2'
44
script:
55
- yarn test
6+
- yarn lint
67
- yarn build
78
before_install:
89
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"tdd": "jest --watch",
99
"build": "lerna run build",
10-
"lint": "tslint --project ./ --format stylish",
10+
"lint": "eslint .",
1111
"test": "jest",
1212
"pre-cut-version": "yarn test",
1313
"postinstall": "yarn build && lerna link",
@@ -38,17 +38,19 @@
3838
"enzyme-adapter-react-16": "^1.5.0",
3939
"enzyme-matchers": "^6.0.4",
4040
"enzyme-to-json": "^3.3.3",
41+
"eslint": "^5.6.0",
42+
"eslint-plugin-typescript": "^0.12.0",
4143
"jest": "^23.5.0",
4244
"jest-enzyme": "^6.0.4",
4345
"lerna": "^3.3.0",
4446
"sinon": "^6.2.0",
4547
"storybook-addon-jsx": "^5.4.0",
4648
"ts-jest": "^23.1.4",
4749
"ts-loader": "^5.0.0",
48-
"tslint": "^5.11.0",
4950
"tslint-config-airbnb": "^5.11.0",
5051
"tslint-react": "^3.6.0",
5152
"typescript": "^3.0.3",
53+
"typescript-eslint-parser": "^18.0.0",
5254
"webpack": "^4.17.2",
5355
"webpack-dev-server": "^3.1.8",
5456
"webpack-merge": "^4.1.4",

packages/yubaba/src/Baba/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ If it's an image, try and have the image loaded before mounting, or set a static
418418
return (
419419
blocks
420420
// We don't care what the promises return.
421-
// tslint:disable-next-line no-any
422421
.reduce<Promise<any>>(
423422
(promise, block) =>
424423
promise.then(() => Promise.all(block.map(anim => anim.animate()))),

packages/yubaba/src/__tests__/utils.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export const domData = (): GetElementSizeLocationReturnValue => ({
8585
top: 0,
8686
},
8787
raw: {
88-
// tslint:disable-next-line
8988
rect: {} as ClientRect,
9089
scrollTop: 0,
9190
scrollLeft: 0,

tslint.json

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)