2.0.1 • Published 6 months ago

eslint-config-rchl-typescript v2.0.1

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

eslint-config-rchl-typescript

Typescript eslint rules.

Installation

  1. First install either eslint-config-rchl-base or eslint-config-rchl-vue:
  2. Run
$ npm i -D eslint-config-rchl-typescript typescript
  1. Create .eslintrc.js configuration file in the root directory of your project.
module.exports = {
    extends: [
        'eslint-config-rchl-vue',  // or 'eslint-config-rchl-base'
        'eslint-config-rchl-typescript',
    ],
    overrides: [
        {
            files: ['*.ts'],
            parserOptions: {
                project: './tsconfig.json',
                tsconfigRootDir: __dirname,
            },
        },
    ],
};

NOTE: When using typescript rules, eslint configuration must be located in a .eslintrc.js file since it's necessary to use __dirname constant which can't be used in JSON or Yaml context.

2.0.1

6 months ago

2.0.0

6 months ago

1.0.1

1 year ago

1.0.0

1 year ago