Admin.Core/src/platform/ZhonTai.ApiUI/src/knife4j-vue/.eslintrc.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

module.exports = {
  root: true,
  parserOptions: {
    parser: 'babel-eslint',
    sourceType: 'module'
  },
  env: {
    browser: true,
    node: true,
    es6: true,
  },
  extends: ['plugin:vue/recommended', 'eslint:recommended'],

  // add your custom rules here
  //it is base on https://github.com/vuejs/eslint-config-vue
  rules: {
    'indent': [2, 2, {
      'SwitchCase': 1
    }],
    'linebreak-style': [0, 'error', 'windows'],
    "max-len": ["error", {
      code: 300
    }],
    /* 使用双引号 */
    /* 禁止在条件表达式中使用赋值语句 */
    "no-cond-assign": "error",
    /* 禁止重复声明变量 */
    "no-redeclare": "error",
    /* 禁止使用var */
    "no-var": "error",
    /* 禁止使用with */
    "no-with": "error",
    /* 强制驼峰法命名 */
    "camelcase": "error",
    /* 禁止行内注释 */
    "no-inline-comments": "error",
    /* 多行模式必须带逗号,单行模式不能带逗号 */
    "always-multiline": "",
    /* 一元运算符,前后空格 */
    "space-unary-ops": ["error", {
      "words": true,
      "nonwords": true
    }],
    /* 必须使用全等 */
    "eqeqeq": "error",
    /* 数组元素间空格隔开(,后面) */
    "array-bracket-spacing": ["error", "never"],
    /* 块级作用域外访问块内变量 */
    "block-scoped-var": "error",
    /* 行尾逗号 */
    "comma-style": ["error", "last"],
    /* 数组或对象键值对,末尾的逗号 */
    "comma-dangle": ["error", "never"],
    /* 圈复杂度.一般为if-else */
    "complexity": ["error", 6],
    /* 强制一致函数声明 */
    "func-style": "error",
    /* 最大函数嵌套层数 */
    "max-nested-callbacks": ["error", 4],
    /* 逗号前后空格 */
后面还有 39 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。