⬅️ Back to Table of Contents
📄 ESLint.test.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
2 |
📊 Variables & Constants |
2 |
📚 Table of Contents
🛠️ File Location:
📂 packages/utils/tests/ts-eslint/ESLint.test.ts
📦 Imports
Name |
Source |
FlatESLint |
eslint/use-at-your-own-risk |
LegacyESLint |
eslint/use-at-your-own-risk |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
eslint |
FlatESLint |
const |
`new ESLint.FlatESLint({ |
|
// accepts flat configs |
|
|
|
|
baseConfig: [{ ignores: [] }, { languageOptions: {} }], |
|
|
|
|
overrideConfig: [{ ignores: [] }, { languageOptions: {} }], |
|
|
|
|
})` |
✗ |
|
|
|
eslint |
LegacyESLint |
const |
`new ESLint.LegacyESLint({ |
|
// accepts legacy configs |
|
|
|
|
baseConfig: { |
|
|
|
|
overrides: [], |
|
|
|
|
parserOptions: {}, |
|
|
|
|
}, |
|
|
|
|
overrideConfig: { |
|
|
|
|
overrides: [], |
|
|
|
|
parserOptions: {}, |
|
|
|
|
}, |
|
|
|
|
})` |
✗ |
|
|
|