eslint-config-xo-typescript
ESLint shareable config for TypeScript to be used with eslint-config-xo
Last updated a month ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-xo-typescript 
SYNC missed versions from official npm registry.

eslint-config-xo-typescript Build Status

ESLint shareable config for TypeScript to be used with eslint-config-xo

Install

$ npm install --save-dev eslint-config-xo eslint-config-xo-typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin

Usage with XO

XO has built-in support for TypeScript, using this package under the hood, so you do not have to configure anything.

Standalone Usage

Add some ESLint config to your package.json (or .eslintrc):

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": [
			"xo",
			"xo-typescript"
		]
	}
}

Use the space sub-config if you want 2 space indentation instead of tabs:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": [
			"xo",
			"xo-typescript/space"
		]
	}
}

Note: If your tsconfig.json is not in the same directory as package.json, you will have to set the path yourself:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": [
			"xo",
			"xo-typescript"
		],
		"parserOptions": {
			"project": "some-path/tsconfig.json"
		}
	}
}

Related

Current Tags

  • 0.37.0                                ...           latest (a month ago)

41 Versions

  • 0.37.0                                ...           a month ago
  • 0.36.0                                ...           2 months ago
  • 0.35.0                                ...           3 months ago
  • 0.34.1                                ...           3 months ago
  • 0.34.0                                ...           3 months ago
  • 0.33.0                                ...           4 months ago
  • 0.32.0                                ...           5 months ago
  • 0.31.0                                ...           8 months ago
  • 0.30.0                                ...           8 months ago
  • 0.29.0                                ...           8 months ago
  • 0.28.0                                ...           9 months ago
  • 0.27.0                                ...           10 months ago
  • 0.26.0                                ...           a year ago
  • 0.25.0                                ...           a year ago
  • 0.24.1                                ...           a year ago
  • 0.24.0                                ...           a year ago
  • 0.23.0                                ...           a year ago
  • 0.22.0                                ...           a year ago
  • 0.21.0                                ...           a year ago
  • 0.20.0                                ...           a year ago
  • 0.19.0                                ...           a year ago
  • 0.18.0                                ...           a year ago
  • 0.17.0                                ...           a year ago
  • 0.16.0                                ...           a year ago
  • 0.15.0                                ...           2 years ago
  • 0.14.0                                ...           2 years ago
  • 0.13.0                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.1                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |