0.6.2 • Published 7 months ago

@hz-9/eslint-config-airbnb-ts v0.6.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@hz-9/eslint-config-airbnb-ts

A eslint config for 'hz-9' (TypeScript).

NPM Version NPM License NPM Downloads Node Version Last Commit

Document | 文档

Installation

To install the @hz-9/eslint-config-airbnb-ts package, run the following command:

npm install @hz-9/eslint-config-airbnb-ts --save-dev

Usage

To use this configuration, add the following code to your .eslintrc.js file:

module.exports = {
  extends: [
    '@hz-9/eslint-config-airbnb-ts/node'
  ],
  parserOptions: {
    tsconfigRootDir: __dirname,
  },
}

After that, you can run the ESLint fix command to automatically fix linting issues:

eslint --fix .

Q & A

You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser

You can set parseOptions.project params.

module.exports = {
  extends: [
    '@hz-9/eslint-config-airbnb-ts/node'
  ],
  parserOptions: {
    project: 'tsconfig.json',
    tsconfigRootDir: __dirname,
  },
}
0.6.2

7 months ago

0.6.1

7 months ago

0.6.0

8 months ago

0.5.11

1 year ago

0.5.10

1 year ago

0.5.9

1 year ago

0.5.8

1 year ago

0.5.7

1 year ago

0.5.6

1 year ago

0.5.5

1 year ago

0.5.4

1 year ago

0.5.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago