@arkrm/bionic
v5.1.4
Published
[![npm (scoped)](https://img.shields.io/npm/v/@arkrm/bionic)](https://www.npmjs.com/package/@arkrm/bionic) [![GitHub issues](https://img.shields.io/github/issues/arkrm/bionic)](https://github.com/arkrm/bionic/issues) [![GitHub forks](https://img.shields.i
Downloads
70
Maintainers
Readme
@arkrm/bionic
服务于arkrm团队项目的 prettier eslint stylelint 的配置文件合集
stylelint
暂未实现
INSTALL
# install with yarn
yarn add @arkrm/bionic -D
# install with npm
npm i @arkrm/bionic -D
USEAGE
// .eslintrc.js
module.exports = {
extends: [require.resolve("@arkrm/bionic/eslint/index")],
};
// .prettierrc.js
module.exports = require("@arkrm/bionic/prettier");
Tips
- 适用于
umi
工程 - 适用于 taro 工程,但要求
taro
版本为3.x
, 且上层框架为react
VSCode config example
// .vscode/settings.json
{
"editor.tabSize": 2,
"npm.packageManager": "yarn",
"eslint.validate": ["javascript", "typescript", "typescriptreact"],
"eslint.packageManager": "yarn",
"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"
},
"prettier.packageManager": "yarn"
}