Skip to content

Commit 07c09ca

Browse files
authored
feat: Rewrite the whole thing (#13)
* chore: Decaffeinate into TypeScript 🎉 * chore: Remove unused deps * chore: Add typescript * chore: Add editorconfig * chore: Add prettier * chore: Add node typings * feat: New, more descriptive methods * chore: Big rewrite * chore: Add missing typings * chore: Add linter and formatter * chore: Fix linter errors * test: Replace Mocha with Jest * ci: Code coverage ☂ * docs: ✏️ Update README * docs: Add API and FAQ * style: Update eslint config * chore: Update all deps
1 parent 4b2af18 commit 07c09ca

24 files changed

+7628
-439
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules/
2+
/lib/
3+
/__tests__/
4+
/coverage/

.eslintrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/eslint-recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
11+
"prettier",
12+
"prettier/@typescript-eslint"
13+
],
14+
"parserOptions": {
15+
"createDefaultProgram": true,
16+
"project": "./tsconfig.json"
17+
},
18+
"rules": {
19+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
20+
"@typescript-eslint/member-ordering": "error",
21+
"@typescript-eslint/no-floating-promises": "error",
22+
"@typescript-eslint/no-use-before-define": "off",
23+
"@typescript-eslint/prefer-readonly": "error",
24+
"@typescript-eslint/promise-function-async": "error",
25+
"@typescript-eslint/restrict-plus-operands": "error",
26+
"@typescript-eslint/strict-boolean-expressions": [
27+
"error",
28+
{ "ignoreRhs": true }
29+
],
30+
"eqeqeq": ["error", "smart"],
31+
"func-style": ["error", "declaration"],
32+
"id-length": "error",
33+
"no-else-return": "error",
34+
"no-extra-boolean-cast": "off",
35+
"no-implicit-coercion": "error",
36+
"no-nested-ternary": "error",
37+
"no-var": "error",
38+
"prefer-const": "error",
39+
"require-unicode-regexp": "error",
40+
"yoda": "error"
41+
}
42+
}

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
node_modules/
2-
lib/
3-
npm-debug.log
4-
*.out.*
5-
output/
1+
/node_modules/
2+
/lib/
3+
/coverage/

.npmignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
test/
2-
src/
3-
gulpfile.coffee
4-
.travis.yml
5-
*.out.*
1+
/__tests__/
2+
/coverage/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
language: node_js
2+
23
node_js:
3-
- stable
4-
env: DEBUG=ffmpeg-stream
4+
- stable
5+
6+
after_success:
7+
- npx codecov
8+
9+
env:
10+
- DEBUG=ffmpeg-stream
11+
512
addons:
613
apt:
14+
update: true
715
packages:
8-
- ffmpeg
16+
- ffmpeg

0 commit comments

Comments
 (0)