SHARE ESLINT CONFIG ZALOPAY
Customize eslint rules for react, react-native of ZaloPay
Apply eslint config:
Install peerDependence
Install peerDependence
$ yarn add --dev eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-config-prettier prettier
Install
$ yarn add --dev eslint-config-zalopay
Update eslint config file (.eslintrc.json)
"extends": [
"eslint-config-zalopay"
]
or package.json
"eslintConfig": {
"extends": "eslint-config-zalopay"
}