@sibipro/eslint-config-typescript

Configure eslint for sibi projects using Typescript

Usage no npm install needed!

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

README

@sibipro/eslint-config-typescript

Monorepo for eslint configuration for sibi projects.

GitHub license Project Status npm

Usage

Simply install the peer dependencies and then add this package to your eslint config's extends array, along with the base config.

yarn add -D @sibipro/eslint-config-typescript

npx install-peerdeps --dev @sibipro/eslint-config-typescript

In order for the typescript rules to work, you'll need to include parser information in your eslint config when extending this config. There may also be some addition things you want to add to parserOptions, but nothing else is required for this set of rules.

{
  "parser": "@typescript-eslint/parser",
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "extends": ["@sibipro/eslint-config", "@sibipro/eslint-config-typescript"]
}

License

MIT © SIBI, LLC