Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @sourcegraph/tslint-config with all npm packages installed. Try it out:

require("tslint/package.json"); // tslint is a peer dependency. var tslintConfig = require("@sourcegraph/tslint-config")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@sourcegraph/tslint-config v14.0.2

TSLint config for TypeScript projects at Sourcegraph

Sourcegraph TSLint config

npm downloads build code style: prettier

The last remaining TSLint rules for TypeScript projects at Sourcegraph that are not yet supported by ESLint. Must be used in conjunction with @sourcegraph/eslint-config.


npm install --save-dev @sourcegraph/tslint-config@eslint

Then add this tslint.json:

  "extends": "@sourcegraph/tslint-config"

Making changes

npm link
cd <project>
npm link @sourcegraph/tslint-config
npm run lint

Publish a new version

Follow semver.

npm version major|minor|patch
git push
git push --tags
npm publish
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free