eslint-config-standard-with-typescript
An ESLint Shareable Config for JavaScript Standard Style with TypeScript support
Last updated 6 days ago by mightyiam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-standard-with-typescript 
SYNC missed versions from official npm registry.

Build Status JavaScript Style Guide Releases

eslint-config-standard-with-typescript

An ESLint shareable config for TypeScript that is based on eslint-config-standard and has TypeScript specific rules from @typescript-eslint/eslint-plugin.

Usage

npm install --save-dev eslint@7 eslint-plugin-standard@4 eslint-plugin-promise@4 eslint-plugin-import@2 eslint-plugin-node@11 @typescript-eslint/eslint-plugin@2 eslint-config-standard-with-typescript

Yes, this is a large number of packages. This is due to a known limitation in ESLint.

This long list of dependencies includes:

  1. ESLint
  2. Peer dependencies of eslint-config-standard
  3. @typescript-eslint/eslint-plugin; ESLint rules for TypeScript.

Here is an example .eslintrc.js:

module.exports = {
  extends: 'standard-with-typescript',
  parserOptions: {
    project: './tsconfig.json'
  }
}

Note: Please read some important instructions regarding the project option here.

There are some more parserOptions you may care about.

If you're using ESLint v6 make sure you read about the --ext command line option.

Example command line usage for ESLint v6:

$ npx eslint --ext .js,.ts .

Example command line usage for ESLint v7:

$ npx eslint .

Current Tags

  • 18.0.2                                ...           latest (6 days ago)

32 Versions

  • 18.0.2                                ...           6 days ago
  • 18.0.1                                ...           6 days ago
  • 18.0.0                                ...           6 days ago
  • 17.0.0                                ...           17 days ago
  • 16.0.0                                ...           a month ago
  • 15.0.1                                ...           2 months ago
  • 15.0.0                                ...           3 months ago
  • 14.0.0                                ...           3 months ago
  • 13.0.0                                ...           4 months ago
  • 12.0.1                                ...           4 months ago
  • 12.0.0                                ...           4 months ago
  • 11.0.1                                ...           7 months ago
  • 11.0.0                                ...           7 months ago
  • 10.0.0                                ...           8 months ago
  • 9.0.0                                ...           9 months ago
  • 8.0.0                                ...           10 months ago
  • 7.1.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 6.0.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |