@dtrw/eslint-config
v4.1.2
Published
Custom eslint configs
Downloads
629
Maintainers
Readme
@dtrw/eslint-config
This is repository with my eslint
configs for multiple purposes that are used (or will be used) in my other projects.
Install
yarn add -D @dtrw/eslint-config eslint@^8.56
or
npm i -D @dtrw/eslint-config eslint@^8.56
Usage
This config requires eslint
^8.56
(not compatible with eslint@9
yet - see #65)
// 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
);
Configuration
The configuration object can contain following keys:
- jest
- json
- lodash
- node
- react
- cypress
- testing-library