Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 942 Bytes

File metadata and controls

32 lines (25 loc) · 942 Bytes

@masterworks/eslint-config-masterworks/typescript-strict

Set of rules to add on top of @masterworks/eslint-config-masterworks/base to make your strict: true TypeScript projects even stricter.

Peer dependencies

This preset itself doesn't need extra peer dependencies. Install those dictated by @masterworks/eslint-config-masterworks/base.

Usage

Import the preset in your eslint.config.js file and extend it after the base preset:

import * as base from '@masterworks/eslint-config-masterworks/base/index.js'
import * as typescriptStrict from '@masterworks/eslint-config-masterworks/typescript-strict/index.js'

export default [
  {
    ignores: [
      // Files to ignore globally.
    ],
  },
  ...base.apply({
    tsconfigRootDir: import.meta.dirname,
  }),
  ...typescriptStrict.apply({
    rules: {
      // Here you can customize or disable rules.
    },
  }),
]