Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

error-handling-ts 0.0.1

Install from the command line:
Learn more about npm packages
$ npm install @jvalue/error-handling-ts@0.0.1
Install via package.json:
"@jvalue/error-handling-ts": "0.0.1"

About this version

JValue TypeScript Error Handling

A simple library for error handling, used in the JValue projects.

Install

  • Download dependencies: npm install

Linting

  • Linting: npm run lint

Testing

  • One test run: npm test
  • Start tests in watch mode: npm run test:watch

VSCode Setup

We propose to use the following VSCode plugin so benefit from our preset configs out of the box:

  • ESLint: dbaeumer.vscode-eslint
  • Prettier: esbenp.prettier-vscode
  • Editorconfig: editorconfig.editorconfig

Config ESlint

Recommended config (paste into /.vscode/settings.json):

{
	"eslint.validate": ["typescript"],
	"typescript.preferences.importModuleSpecifier": "relative",
	"[javascript]": {
		"editor.formatOnSave": true,
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[json]": {
		"editor.formatOnSave": true,
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[jsonc]": {
		"editor.formatOnSave": true,
		"editor.defaultFormatter": "esbenp.prettier-vscode"
	},
	"[typescript]": {
		"editor.formatOnSave": false,
		"editor.defaultFormatter": "esbenp.prettier-vscode",
		"editor.codeActionsOnSave": ["source.fixAll.format", "source.fixAll.eslint"]
	}
}

License

Copyright 2022 Friedrich-Alexander University Erlangen-Nürnberg (FAU). This work (source code) is licensed under Apache-2.0.

Details


Assets

  • error-handling-ts-0.0.1-npm.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all