@monorepo-template/eslint-config-typescript

1.1.2 • Public • Published

TypeScript ESLint config

@monorepo-template/eslint-config-typescript is an ESLint configuration for TypeScript support. It does not enforce any rules, but it instead disables rules that would be impossible to enforce.

Install

yarn add --dev "@monorepo-template/eslint-config-typescript"

Use

Merge the following ESLint configuration into your .eslintrc.json file:

{
  "extends": ["@monorepo-template/typescript"],

  "overrides": [
    {
      "files": ["*.cjs", "*.js", "*.jsx"],
      "extends": "@monorepo-template/typescript/cjs"
    },

    {
      "files": ["*.cjs", "*.js", "*.jsx", "*.mjs"],
      "extends": ["@monorepo-template/typescript/js"]
    },

    {
      "files": ["*.eslintrc.cjs"],
      "extends": "@monorepo-template/typescript/eslint"
    },

    {
      "files": ["*.json"],
      "extends": ["@monorepo-template/typescript/json"]
    },

    {
      "files": ["*.ts", "*.tsx"],
      "extends": ["@monorepo-template/typescript/ts"]
    }
  ]
}

If you are using other configurations outside of the @monorepo-template scope, this should come after those configurations in the extends array.

Readme

Keywords

Package Sidebar

Install

npm i @monorepo-template/eslint-config-typescript

Weekly Downloads

15

Version

1.1.2

License

MIT

Unpacked Size

3.79 kB

Total Files

9

Last publish

Collaborators

  • charlesstover