1.6.0 • Published 3 years ago

eslint-config-awzzm-ts v1.6.0

Weekly downloads
28
License
MIT
Repository
github
Last release
3 years ago

⬅️ Back to Overview

TypeScript Configuration

You don't need to install the base configuration (eslint-config-awzzm) because this configuration extends it.

npm install --save-dev eslint-config-awzzm-ts
# or
yarn add -D eslint-config-awzzm-ts

Add it to your ESLint configuration:

{
  "extends": ["awzzm-ts"] // or awzzm-ts/no-type-information
}

Linting with type information

For some rules, type information is required. In order to provide this, you need to add two properties to your parserOptions:

// .eslintrc.js

module.exports = {
  // ...
  parserOptions: {
    tsConfigRootDir: __dirname, // Absolute path of your project's root directory
    project: ["./tsconfig.json"] // Relative path of your project's tsconfig.json file
  },
  // ...
}
1.6.0

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago