@cuimingda/eslint-config-typescript

1.1.0 • Public • Published

ESLint config - @cuimingda/typescript

Installation

yarn add -D eslint @cuimingda/eslint-config-typescript
yarn add -D typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin

Configuration

.eslintrc.js

Use @cuimingda/typescript instead of plugin:@typescript-eslint/recommended, it will enable all ESLint rules for Typescript.

module.exports = {

  parser: "@typescript-eslint/parser",
  plugins: ["@typescript-eslint"],
  
  extends: [
    "@cuimingda/typescript",
  ],

  overrides: [
    {
      files: ["*.ts"],
      parserOptions: {
        project: "./tsconfig.json",
      },
    },
  ]

};

Readme

Keywords

none

Package Sidebar

Install

npm i @cuimingda/eslint-config-typescript

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

16.1 kB

Total Files

6

Last publish

Collaborators

  • cuimingda