openreachtech / eslint-rules-default

A showcasing package all the rules of ESLint.
MIT License
0 stars 0 forks source link

🧹 Fix type error of exported object #240

Closed StewEucen closed 5 months ago

StewEucen commented 5 months ago

Overview

Resolve

import {
  ESLint,
} from 'eslint'

declare module '@openreachtech/eslint-rules-default' {
  const core: ESLint.ConfigData<ESLint.LintOptions>
  const disableCoreStylistic: ESLint.ConfigData<ESLint.LintOptions>
  const stylisticJs: ESLint.ConfigData<ESLint.LintOptions>
  const stylisticPlus: ESLint.ConfigData<ESLint.LintOptions>

  export = {
    core,
    disableCoreStylistic,
    stylisticJs,
    stylisticPlus,
  }
}

Reference