UNPKG

eslint-config-iplayer-ts

Version:
43 lines (31 loc) 917 B
# eslint-config-iplayer-ts > [eslint](http://eslint.org/) config for BBC iPlayer Typescript projects. Other useful iPlayer eslint configs: * [eslint-config-iplayer-tsx](https://www.npmjs.com/package/eslint-config-tsx) * [eslint-config-iplayer-jsx](https://www.npmjs.com/package/eslint-config-jsx) * [eslint-config-iplayer](https://www.npmjs.com/package/eslint-config-iplayer) * [eslint-config-iplayer-legacy](https://www.npmjs.com/package/eslint-config-iplayer-legacy) ## Installation ``` npm install --save-dev eslint-config-iplayer-ts ``` ## Usage Add the following to your `package.json`: ```json { "eslintConfig": { "extends": "iplayer-ts" } } ``` This package currently sets the default ECMAScript Version to be 9. If you require a different version you can change it like so: ```json { "eslintConfig": { "extends": "iplayer-ts" }, "parserOptions": { "ecmaVersion": 6, } } ```