UNPKG

@pluve/bionic

Version:

[![npm (scoped)](https://img.shields.io/npm/v/@pluve/bionic?style=for-the-badge)](https://www.npmjs.com/package/@pluve/bionic)

57 lines (44 loc) 1.27 kB
# @pluve/bionic [![npm (scoped)](https://img.shields.io/npm/v/@pluve/bionic?style=for-the-badge)](https://www.npmjs.com/package/@pluve/bionic) [prettier](https://prettier.io/) [eslint](https://eslint.org/) 的配置文件合集 ## INSTALL ```bash yarn add @pluve/bionic -D ``` ## USEAGE ```js // .eslintrc.js module.exports = { extends: [require.resolve('@pluve/bionic/eslint/index')], }; // .prettierrc.js module.exports = require('@pluve/bionic/prettier');; ``` ## TIPS + [taro](https://github.com/nervjs/taro) 仅适用于 `3.x` 版本,且上层框架为 `react` ## 编辑器配置示例 ### vscode ```json // .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" } } ```