diff --git a/codequality/ts-config/.gitignore b/codequality/ts-config/.gitignore new file mode 100644 index 0000000..b7170e5 --- /dev/null +++ b/codequality/ts-config/.gitignore @@ -0,0 +1,13 @@ +# OS +.DS_Store +Thumbs.db + +# IDE +.idea +.vscode + +# Node +/node_modules +npm-debug.log +yarn-error.log +lerna-debug.log diff --git a/codequality/ts-config/LICENSE b/codequality/ts-config/LICENSE new file mode 100644 index 0000000..c15e4d2 --- /dev/null +++ b/codequality/ts-config/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018-present Namics AG + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/codequality/ts-config/README.md b/codequality/ts-config/README.md new file mode 100644 index 0000000..9dd790c --- /dev/null +++ b/codequality/ts-config/README.md @@ -0,0 +1,18 @@ +# Shared typescript config [![npm](https://img.shields.io/npm/v/@namics/ts-config.svg)](https://www.npmjs.com/package/@namics/ts-config) + +> Shared configuration for Typescript + +## Usage + +`npm i -D typescript @namics/ts-config` + +**tsconfig.json** + +```json +{ + "extends": "./node_modules/@namics/ts-config/tsconfig.json" +} +``` + +## License +[MIT License](./LICENSE) diff --git a/codequality/ts-config/package.json b/codequality/ts-config/package.json new file mode 100644 index 0000000..556d03c --- /dev/null +++ b/codequality/ts-config/package.json @@ -0,0 +1,20 @@ +{ + "name": "@namics/ts-config", + "description": "Shared configuration for Typescript", + "version": "0.1.0", + "repository": "https://github.com/namics/frontend-defaults", + "main": "./tsconfig.json", + "license": "MIT", + "author": "Namics AG", + "contributors": [ + "Simon Mollweide " + ], + "private": false, + "engines": { + "node": ">=8" + }, + "files": ["README.md", "LICENSE", "tsconfig.json"], + "peerDependencies": { + "typescript": "3.x" + } +} diff --git a/codequality/ts-config/tsconfig.json b/codequality/ts-config/tsconfig.json new file mode 100644 index 0000000..aa9638d --- /dev/null +++ b/codequality/ts-config/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "allowUnreachableCode": false, + "jsx": "react", + "sourceMap": true, + "target": "es5", + "module": "esnext", + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "declaration": true, + "noImplicitAny": false, + "noImplicitReturns": true, + "strictNullChecks": true, + "importHelpers": true, + "lib": ["es2015", "es2016", "es2017", "es2018", "dom"] + }, + "exclude": ["dist", "build", "node_modules"] +}