This is repository with my eslint
configs for multiple purposes that are used (or will be used) in my other projects.
yarn add -D @dtrw/eslint-config eslint
or
npm i -D @dtrw/eslint-config eslint
// eslint.config.js
import { config, prepareConfig } from '@dtrw/eslint-config'; // config re-exported from typescript-eslint
export default prepareConfig(configuration)
//or
export default config(
...await prepareConfig(configuration),
...moreFlatConfigs
);
The configuration object can contain following keys:
- jest
- json
- lodash
- node
- react
- cypress
- testing-library