tspath icon indicating copy to clipboard operation
tspath copied to clipboard

Added linting and automatic formatting with prettier

Open DiefBell opened this issue 3 years ago • 0 comments

  • Added Prettier and script to prettify built JS. Auto-runs after building ts.
  • Added ESLint and script to run it. Auto-runs before building ts.
  • Added Husky pre-commit hooks to lint files before commits. Fails on ESLint errors AND warnings.
  • Fixed the linting errors, which was largely use of let instead of const and use of explicit any.

Note: branched off branch for PR: https://github.com/duffman/tspath/pull/47

DiefBell avatar Oct 19 '22 22:10 DiefBell