Skip to content
All essentials for any typescript app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
configs
.gitignore
LICENSE
README.md
package-lock.json
package.json
renovate.json

README.md

tscommons

GitHub tag (latest SemVer)

Available configs:

  • tsconfig.json
  • tslint.json
  • jest.config.js
  • prettier.config.js

Usage:

tsconfig.json

{
  "extends": "./node_modules/@kube-js/tscommons/configs/tsconfig.json",
  // your overrides
}

tslint.json

{
  "extends": [
    "./node_modules/@kube-js/tscommons/configs/tslint.json",
    "tslint-config-prettier"
  ],
  "rules": {
    // your overrides
  }
}

jest.config.js

const baseConfig = require("@kube-js/tscommons/configs/jest.config.js");

module.exports = {
  ...baseConfig
  // your overrides
};

prettier.config.js

const baseConfig = require("@kube-js/tscommons/configs/prettier.config.js");

module.exports = {
  ...baseConfig
  // your overrides
};

Also if you are using tslint install tslint-config-prettier

npm install --save-dev tslint-config-prettier

Then in tslint.json add:

{
  "extends": [
    "./node_modules/@kube-js/tscommons/configs/tslint.json",
    "tslint-config-prettier"
  ],
  "rules": {
    // your overrides
  }
}

Credits: ryansmith94

You can’t perform that action at this time.