@sourcegraph/tsconfig

Base tsconfig.json for Sourcegraph TypeScript projects

Usage no npm install needed!

<script type="module">
  import sourcegraphTsconfig from 'https://cdn.skypack.dev/@sourcegraph/tsconfig';
</script>

README

Sourcegraph tsconfig

npm downloads build code style: prettier

Base tsconfig.json for TypeScript projects at Sourcegraph. It only includes compiler options that make TypeScript more strict. It does not set any project-specific or environmental settings.

Usage

npm install --save-dev @sourcegraph/tsconfig

Then add this tsconfig.json:

{
  "extends": "./node_modules/@sourcegraph/tsconfig/tsconfig.json"
}

Making changes

npm link
cd <project>
npm link @sourcegraph/tsconfig
npm run lint

Publish a new version

Follow semver.

npm version major|minor|patch
git push
git push --tags
npm publish