Skip to content

⬅️ Back to Table of Contents

📄 eslint.config.js

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 7
📊 Variables & Constants 1

📚 Table of Contents

🛠️ File Location:

📂 packages/integration-tests/fixtures/flat-config-types-@types__eslint-v9/eslint.config.js

📦 Imports

Name Source
FlatCompat @eslint/eslintrc
eslint @eslint/js
stylisticPlugin @stylistic/eslint-plugin
vitestPlugin @vitest/eslint-plugin
deprecationPlugin eslint-plugin-deprecation
tseslint typescript-eslint
__dirname ./dirname.cjs

Variables & Constants

Name Type Kind Value Exported
compat any let/var `new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: {},
allConfig: {},
})`

Functions

_otherCases(): void

Code
function _otherCases() {
  // these are just tests for the types and are not seen by eslint so they can be whatever
  tseslint.config({
    plugins: {
      ['@stylistic']: stylisticPlugin,
      ['@typescript-eslint']: tseslint.plugin,
      ['deprecation']: deprecationPlugin,
      ['vitest']: vitestPlugin,
    },
  });
  tseslint.config(
    eslint.configs.recommended,
    ...tseslint.configs.recommended,
    stylisticPlugin.configs['recommended-flat'],
    vitestPlugin.configs.recommended,
  );
  tseslint.config(
    // @ts-expect-error
    compat.config(deprecationPlugin.configs.recommended),
    vitestPlugin.configs.recommended,
  );
  tseslint.config(
    // @ts-expect-error
    deprecationPlugin.configs.recommended,
    vitestPlugin.configs.recommended,
  );
}
  • Return Type: void
  • Calls:
  • tseslint.config
  • compat.config
  • Internal Comments:
    // these are just tests for the types and are not seen by eslint so they can be whatever (x4)
    // @ts-expect-error (x6)