@araclx/eslint-config

ESlint configuration desgined by @araclx dedicated for TypeScript Node.js Applications.

Usage no npm install needed!

<script type="module">
  import araclxEslintConfig from 'https://cdn.skypack.dev/@araclx/eslint-config';
</script>

README

@araclx/eslint-config

We're don't using this package internally since XO have support for TypeScript under-the-hood, but somewhere we're using ESLint and this configuration is sued.

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