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

eslint-config-xo-typescript

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

This config assumes your project is ESM and that you use a strict config.

Install

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

Use 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

  • 7.0.0                                ...           latest (2 months ago)

80 Versions

  • 7.0.0                                ...           2 months ago
  • 6.0.0                                ...           3 months ago
  • 5.0.0                                ...           4 months ago
  • 4.0.0                                ...           8 months ago
  • 3.0.0                                ...           9 months ago
  • 2.1.1                                ...           9 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.57.0                                ...           2 years ago
  • 0.56.0                                ...           2 years ago
  • 0.55.1                                ...           2 years ago
  • 0.55.0                                ...           2 years ago
  • 0.54.1                                ...           2 years ago
  • 0.53.2                                ...           2 years ago
  • 0.53.1                                ...           2 years ago
  • 0.54.0                                ...           2 years ago
  • 0.53.0                                ...           2 years ago
  • 0.52.0                                ...           2 years ago
  • 0.51.1                                ...           2 years ago
  • 0.51.0                                ...           2 years ago
  • 0.50.0                                ...           3 years ago
  • 0.49.0                                ...           3 years ago
  • 0.48.0                                ...           3 years ago
  • 0.47.1                                ...           3 years ago
  • 0.47.0                                ...           3 years ago
  • 0.46.0                                ...           3 years ago
  • 0.45.2                                ...           3 years ago
  • 0.45.1                                ...           3 years ago
  • 0.45.0                                ...           3 years ago
  • 0.44.0                                ...           3 years ago
  • 0.43.0                                ...           3 years ago
  • 0.42.0                                ...           3 years ago
  • 0.41.1                                ...           4 years ago
  • 0.41.0                                ...           4 years ago
  • 0.40.0                                ...           4 years ago
  • 0.39.0                                ...           4 years ago
  • 0.38.0                                ...           4 years ago
  • 0.37.0                                ...           4 years ago
  • 0.36.0                                ...           4 years ago
  • 0.35.0                                ...           4 years ago
  • 0.34.1                                ...           4 years ago
  • 0.34.0                                ...           4 years ago
  • 0.33.0                                ...           4 years ago
  • 0.32.0                                ...           4 years ago
  • 0.31.0                                ...           4 years ago
  • 0.30.0                                ...           4 years ago
  • 0.29.0                                ...           5 years ago
  • 0.28.0                                ...           5 years ago
  • 0.27.0                                ...           5 years ago
  • 0.26.0                                ...           5 years ago
  • 0.25.0                                ...           5 years ago
  • 0.24.1                                ...           5 years ago
  • 0.24.0                                ...           5 years ago
  • 0.23.0                                ...           5 years ago
  • 0.22.0                                ...           5 years ago
  • 0.21.0                                ...           5 years ago
  • 0.20.0                                ...           5 years ago
  • 0.19.0                                ...           5 years ago
  • 0.18.0                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.0                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.10.1                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE