@dwp/eslint-config-typescript

1.0.4 • Public • Published

@dwp/eslint-config-typescript

Shareable eslint config enforcing our lint and style convention for typescript projects.

This extends the base ruleset available at @dwp/eslint-base-config.

Getting started

npm install --save-dev @dwp/eslint-config-typescript eslint

Rules

Add an .eslintrc.js file that looks something like:

module.exports = require('@dwp/eslint-config-typescript');

You can add your own rules to enhance this, but in doing so please ensure you don't weaken the baseline ruleset.

Don't use .eslintrc (low precedence) or package.json (even lower, and just plain bad!), lest you incur the wrath of a patient adversary.

Linting

Add eslint to your test suite like this, or see our package.json for an example of how we do it:

"test": "eslint . --ext .ts,.js"

Readme

Keywords

Package Sidebar

Install

npm i @dwp/eslint-config-typescript

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • dwp-bot
  • jgdwp
  • lhokktyn
  • adam-moss