@pluve/bionic
v1.2.2
Published
[![npm (scoped)](https://img.shields.io/npm/v/@pluve/bionic?style=for-the-badge)](https://www.npmjs.com/package/@pluve/bionic)
Downloads
5
Readme
@pluve/bionic
INSTALL
yarn add @pluve/bionic -D
USEAGE
// .eslintrc.js
module.exports = {
extends: [require.resolve('@pluve/bionic/eslint/index')],
};
// .prettierrc.js
module.exports = require('@pluve/bionic/prettier');;
TIPS
- taro 仅适用于
3.x
版本,且上层框架为react
编辑器配置示例
vscode
// .vscode/settings.json
{
"eslint.validate": ["javascript", "typescript", "typescriptreact"],
"eslint.nodePath": "node_modules/eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}