Skip to content

Commit 439ebd8

Browse files
committed
Typescript Refactor
1 parent 2239573 commit 439ebd8

21 files changed

+1379
-938
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"node": "10.13.0"
88
}
99
}
10-
],
11-
"@babel/preset-flow"
10+
]
1211
]
1312
}

.eslintignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# don't ever lint node_modules
2+
node_modules
3+
# don't lint build output
4+
lib
5+
# don't lint test
6+
test
7+
8+
sharp.js
9+
jimp.js
10+
src/cjs.js
11+
.eslintrc.js

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
plugins: ["@typescript-eslint"],
5+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
6+
rules: {
7+
"@typescript-eslint/ban-ts-comment": "off",
8+
},
9+
}

.eslintrc.json

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

.flowconfig

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ test/**/build/**/*.png
66
test/**/build/**/*.jpg
77
test/**/build/**/*.webp
88
.node-version
9-
/lib
9+
lib
1010
.DS_Store

.vscode/launch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"name": "vscode-jest-tests",
10+
"request": "launch",
11+
"args": [
12+
"--runInBand"
13+
],
14+
"cwd": "${workspaceFolder}",
15+
"console": "integratedTerminal",
16+
"internalConsoleOptions": "neverOpen",
17+
"disableOptimisticBPs": true,
18+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)