@pluve/bionic

1.2.2 • Public • Published

@pluve/bionic

npm (scoped)

prettier eslint 的配置文件合集

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"
  }
}

Package Sidebar

Install

npm i @pluve/bionic

Weekly Downloads

3

Version

1.2.2

License

MIT

Unpacked Size

7.45 kB

Total Files

12

Last publish

Collaborators

  • fuqiting
  • zhaoyajie
  • annan1220
  • pengfeng365
  • plutolove
  • vdfor
  • ddg-dany
  • yangwend
  • yaqin8023
  • damonchen
  • lee2545
  • abel0222
  • stevenluo
  • xiongyan
  • deng_cheng