Skip to content

Commit

Permalink
Setup eslint for TypeScript and resolve all errors (#4046)
Browse files Browse the repository at this point in the history
* Install eslint for typescript and configure eslint plugin

* Fix all the eslint issues
  • Loading branch information
wssheldon authored Nov 29, 2023
1 parent 65aef6e commit c8d7dce
Show file tree
Hide file tree
Showing 17 changed files with 350 additions and 177 deletions.
4 changes: 3 additions & 1 deletion src/dispatch/static/dispatch/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
plugins: ["eslint-plugin-local-rules"],
plugins: ["eslint-plugin-local-rules", "@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
Expand All @@ -9,9 +9,11 @@ module.exports = {
],
parserOptions: {
ecmaVersion: 2020,
parser: "@typescript-eslint/parser",
},
env: {
browser: true,
es2021: true,
node: true,
},
overrides: [
Expand Down
Loading

0 comments on commit c8d7dce

Please sign in to comment.