Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.09 KB

readme.md

File metadata and controls

44 lines (28 loc) · 1.09 KB

eslint-config-xo-typescript

ESLint shareable config for TypeScript

This config also includes 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-typescript

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):

// eslint.config.js
import xoTypeScript from 'eslint-config-xo-typescript';

export default [
	...xoTypeScript,
];

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

import xoTypeScriptSpace from 'eslint-config-xo-typescript/space';

export default [
	...xoTypeScriptSpace,
];

Related