Skip to content

Commit

Permalink
Convert TS to JS. Added eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-o committed Nov 3, 2023
1 parent 71ea0fe commit 44e8c7b
Show file tree
Hide file tree
Showing 23 changed files with 3,317 additions and 2,236 deletions.
55 changes: 55 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"warn",
"always"
],
"space-before-blocks": [
"error",
"always"
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"no-unused-vars": "warn",
"template-curly-spacing": "error",
"prefer-template": "error",
"no-var": "error",
"prefer-const": "warn",
"no-nested-ternary": "error",
"no-tabs": "error",
"no-const-assign": "error"
}
}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[Bb]uild
src

# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node

Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false,
"files.eol": "\n"
}
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
clear;tsc;npx webpack
clear;npx webpack
57 changes: 43 additions & 14 deletions index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 44e8c7b

Please sign in to comment.