Removes all unused imports. Temporarily swapped in https://github.com/sweepline/eslint-plugin-unused-imports to differentiate between unused imports and unused vars. The default rule does not differentiate.
21 lines
421 B
JavaScript
21 lines
421 B
JavaScript
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
|
|
|
|
/** @typedef {import('eslint').Linter.FlatConfig} */
|
|
let FlatConfig
|
|
|
|
/** @type {FlatConfig[]} */
|
|
export const index = [
|
|
...rootEslintConfig,
|
|
{
|
|
ignores: ['bin/cli.js'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
...rootParserOptions,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
]
|
|
|
|
export default index
|