Skip to content

Commit

Permalink
fixes issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
limefrogyank committed Jan 3, 2024
1 parent 5e716f4 commit f1b3ea5
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 247 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
// to enforce using type for object type definitions, can be type or interface
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
}
}
Loading

0 comments on commit f1b3ea5

Please sign in to comment.