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

feat: use TypeScript, first implementation #69

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/.*
node_modules
build
32 changes: 30 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
module.exports = {
extends: 'gemini-testing',
root: true
root: true,
parser: '@typescript-eslint/parser',
DudaGod marked this conversation as resolved.
Show resolved Hide resolved
plugins: [
'@typescript-eslint',
],
extends: [
'gemini-testing',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"prefer-rest-params": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
functions: false,
classes: false,
variables: true,
typedefs: false,
},
],
"@typescript-eslint/no-parameter-properties": "off",
"no-prototype-builtins": "off",
"object-curly-spacing": ["error", "always"],
quotes: ["error", "double", {avoidEscape: true}],
"comma-dangle": ["error", "always-multiline"],
}
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
build
3 changes: 0 additions & 3 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 120,
"useTabs": false,
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "avoid"
}
7 changes: 0 additions & 7 deletions benchmark/.eslintrc.js

This file was deleted.

50 changes: 0 additions & 50 deletions benchmark/diff.js

This file was deleted.

8 changes: 0 additions & 8 deletions lib/constants.js

This file was deleted.

40 changes: 0 additions & 40 deletions lib/diff-area.js

This file was deleted.

14 changes: 0 additions & 14 deletions lib/ignore-caret-comparator/states/caret-detected.js

This file was deleted.

35 changes: 0 additions & 35 deletions lib/png/bounded-png.js

This file was deleted.

41 changes: 0 additions & 41 deletions lib/png/index.js

This file was deleted.

17 changes: 0 additions & 17 deletions lib/png/original-png.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/same-colors.js

This file was deleted.

83 changes: 0 additions & 83 deletions lib/utils.js

This file was deleted.

Loading