0.0.16 • Published 3 years ago

eslint-config-dva v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eslint-config-dva

npm version

This package provides Dima Vakatsiienko's (dva) ESLint config as an extensible shared config.

The config is an extension of eslint-config-airbnb and intended for TypeScript projects.

The following ESLint plugins are included:

Also, the config is dependent on the @typescript-eslint/parser.

All the required dependencies are included in the installation script below.

Install

Install all the required packages using the following script:

yarn

yarn add -D eslint eslint-config-dva @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-airbnb eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-align-import

npm

npm install -D eslint eslint-config-dva @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-airbnb eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-align-import

Usage

Add the following to your eslintrc.js:

module.exports = {
    extends: 'dva'
};