JSPM

  • Created
  • Published
  • Downloads 755825
  • Score
    100M100P100Q65994F
  • License MIT

An ESLint Shareable Config for JavaScript Standard Style with TypeScript support

Package Exports

  • eslint-config-standard-with-typescript

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-standard-with-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status JavaScript Style Guide Greenkeeper badge 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 eslint-plugin-typescript.

Usage

npm install --save-dev eslint-plugin-standard eslint-plugin-promise eslint-plugin-import eslint-plugin-node typescript-eslint-parser eslint-plugin-typescript eslint-config-standard-with-typescript 

Yes, I know it is a large number of packages. This is due to a known design flaw in ESLint.

This long list of dependencies includes:

  1. Peer dependencies of eslint-config-standard
  2. the necessary typescript-eslint-parser; lets ESLint parse TypeScript.
  3. eslint-plugin-typescript; ESLint rules for TypeScript.

Here is an example .eslintrc.json:

{
  "extends": "standard-with-typescript",
  "parser": "typescript-eslint-parser"
}

Make sure you read about the --ext command line option. And here is a feature request for specifying extensions in the config.

Example command line usage:

npx eslint --ext .js,.ts .