@lendi/typescript-eslint-config
## How to use
Last updated 25 days ago by lendi-owner .
ISC · Original npm · Tarball · package.json
$ cnpm install @lendi/typescript-eslint-config 
SYNC missed versions from official npm registry.

@lendi/typescript-eslint-config

How to use

Add the package to your project.

yarn add --dev @lendi/typescript-eslint-config

Create a .eslintrc.js file in the root of the project and paste in the following code:

const frontend = require('@lendi/typescript-eslint-config').frontend;

// Specify the typescript rules defined for this project.
frontend.parserOptions.project = './tsconfig.esm.json';

module.exports = frontend;

To specifically import the backend configuration, just change all instances of the word frontend to backend in the above block of code. The major difference between the two is detection and linting of jsx code.

Add the following script to your package.json:

"eslint": "eslint -c .eslintrc.js --ext .js,.jsx,.ts,.tsx ./"

The last argument should be the location of where eslint should be run against (e.g. src/ or packages/).

For any issues, please contact the HUB team.

Current Tags

  • 0.2.3                                ...           latest (25 days ago)

12 Versions

  • 0.2.3                                ...           25 days ago
  • 0.2.2                                ...           a month ago
  • 0.2.1                                ...           2 months ago
  • 0.2.0                                ...           2 months ago
  • 0.1.7                                ...           4 months ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |