Skip to content

npm run lint to run eslint #86

@connerdavis47

Description

@connerdavis47

We have config for eslint right now in the VSCode settings file. I would like to propose the following changes:

package.json

  • Add eslint, @typescript-eslint/eslint-plugin, @typescript-eslint/parser to devDependencies
  • Add an eslintConfig section (see Configuring ESLint) migrating the rules specified in .vscode/settings
  • Create a lint script to automatically run eslint
  • Finally, add eslint-plugin-prettier
  • Resolve existing eslint errors and warnings

Currently there are 5 ESLint errors and 19 warnings, but none are meaningful -- just unused variables and usages of var instead of let or const. So there is no need for a substantial rewrite.

This will set us up to be able to automate ESLint with Github Actions.

Metadata

Metadata

Assignees

Labels

CI/CDAutomation for development proceduressmall

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions