eslint-config-xo-typescript
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
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/parser @typescript-eslint/eslint-plugin
{
"name": "my-awesome-project",
"xo": {
"extends": "xo-typescript",
"extensions": [
"ts"
]
}
}
Related
License
MIT © Sindre Sorhus