Skip to content
ESLint shareable config for TypeScript to be used with eslint-config-xo
Branch: master
Clone or download
Latest commit cb08a7d Feb 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Switch to `@typescript-eslint/eslint-plugin` Jan 21, 2019
.editorconfig
.gitattributes Init May 30, 2018
.gitignore Init May 30, 2018
.npmrc
.travis.yml Init May 30, 2018
index.js Disable the ESLint `valid-jsdoc` rule Feb 10, 2019
license Init May 30, 2018
package.json 0.8.0 Feb 10, 2019
readme.md Set the `parserOptions.project` option Jan 26, 2019
tsconfig.json Set the `parserOptions.project` option Jan 26, 2019

readme.md

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/eslint-plugin

Usage

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

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

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"
		}
	}
}

Tip

Use with XO

$ npm install --save-dev eslint-config-xo-typescript @typescript-eslint/eslint-plugin
{
	"name": "my-awesome-project",
	"xo": {
		"extends": "xo-typescript",
		"extensions": [
			"ts"
		]
	}
}

Related

License

MIT © Sindre Sorhus

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.