ConstUtility function to make it easy to strictly type your "Flat" config file
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
{
rules: {
'@typescript-eslint/array-type': 'error',
},
},
);
ESLint core now provides this functionality via defineConfig(),
which we now recommend instead. See https://typescript-eslint.io/packages/typescript-eslint/#config-deprecated.
Utility function to make it easy to strictly type your "Flat" config file