New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-msb

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-msb

msb-fe eslint config

  • 1.0.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

meishubao

命名规范

  • 目录 全小写中划线
  • 文件 全小写中划线
  • 类名 大驼峰
  • 变量 小驼峰
  • 常量 全大写 下划线风格
  • 特殊变量
  • css类名 小写中划线
  • 单词拼音不允许
  • 复杂函数和公用函数必须加注释
  • 函数的参数最多不能超过三个
  • url 全小写 中划线

javascript规范

  1. 引入依赖 eslint-config-msb

yarn add eslint-config-msb -D

  1. 在eslint的extend段配置 msb
module.exports = {
  root: true,
  extends: [
    'msb',
  ],
}

  1. 在对应的编辑器中添加用户配置如下
  "eslint.validate": [
    "javascript",{
      "language": "vue",
      "autoFix": true
    },
    "javascript",
    "javascriptreact",
    "vue"
  ],
  "editor.formatOnSave": false,
  "eslint.autoFixOnSave": true,
  1. 工具配置

vscode: prettier Vetur eslint

TODO:

  1. 如果规则在应用的项目中存在不适 那么业务方先行在rules中添加矫正规则 并保持一个周期我们将大家的custorm rules 通过pr并所有人员审核通过后合并至master并发布新版本
  2. 协助所有同事配置完整的编辑器环境 遇到的一些问题希望也能在这个README中体现出来

FAQs

Package last updated on 22 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc