25 lines
565 B
JavaScript
25 lines
565 B
JavaScript
import { rootParserOptions } from '../../eslint.config.js'
|
|
import { testEslintConfig } from '../eslint.config.js'
|
|
|
|
/** @typedef {import('eslint').Linter.FlatConfig} */
|
|
let FlatConfig
|
|
|
|
/** @type {FlatConfig[]} */
|
|
export const index = [
|
|
...testEslintConfig,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: {
|
|
allowDefaultProject: ['./*.ts', './*.tsx'],
|
|
defaultProject: './tsconfig.json',
|
|
},
|
|
tsconfigDirName: import.meta.dirname,
|
|
...rootParserOptions,
|
|
},
|
|
},
|
|
},
|
|
]
|
|
|
|
export default index
|