Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.06 KB

File metadata and controls

39 lines (32 loc) · 1.06 KB

@masterworks/eslint-config-masterworks/typescript-stylish

Opinionated, auto-fixable rules to add on top of @masterworks/eslint-config-masterworks/typescript.

Peer dependencies

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

Usage

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

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

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