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
A simple library for error handling, used in the JValue projects.
- Download dependencies:
npm install
- Linting:
npm run lint
- One test run:
npm test
- Start tests in watch mode:
npm run test:watch
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
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"]
}
}
Copyright 2022 Friedrich-Alexander University Erlangen-Nürnberg (FAU). This work (source code) is licensed under Apache-2.0.