2.0.0 • Published 5 years ago
@vta/eslint-config-react v2.0.0
@vta/eslint-config-react
an eslint config set working with @vta/eslint-config, add support for React project
Install
yarn add @vta/eslint-config-react --devUsage
{
"extends": ["@vta/react"]
}Babel Support
If you want to use Babel to compile your code, you should firstly install @vta/eslint-config-babel, then extends @vta/babel in your .eslintrc file. additional usage please see @vta/eslint-config-babel.
yarn add @vta/eslint-config-babel --dev{
"extends": ["@vta/babel", "@vta/react"]
}NOTE: @vta/react must list after @vta/babel
Typescript Support
If you want to use Typescript to write your code, you should firstly install @vta/eslint-config-typescript, then extends @vta/react/typescript in your .eslintrc file. additional usage please see @vta/eslint-config-typescript.
yarn add @vta/eslint-config-typescript --dev{
"extends": ["@vta/typescript", "@vta/react/typescript"]
}NOTE: @vta/react/typescript must list after @vta/typescript