加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
江瑶 提交于 2023-06-05 10:07 . 仓库初始化
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
},
globals: {
globalThis: "readonly",
wx: "readonly",
uni: "readonly",
plus: "readonly",
getCurrentPages: "readonly",
},
plugins: [
"html",
"vue",
],
parser: "vue-eslint-parser",
parserOptions: {
parser: "babel-eslint",
sourceType: "module",
},
extends: [
"eslint:recommended",
"plugin:vue/recommended",
],
rules: {
"no-constant-condition": "off",
"no-empty": "off",
"no-extra-semi": "off",
"no-unreachable": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"prefer-const": "off",
"vue/attribute-hyphenation": "off",
"vue/attributes-order": "off",
"vue/component-definition-name-casing": "off",
"vue/html-closing-bracket-spacing": "off",
"vue/html-indent": "off",
"vue/html-self-closing": "off",
"vue/max-attributes-per-line": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/name-property-casing": "off",
"vue/no-multi-spaces": "off",
"vue/no-unused-vars": "off",
"vue/no-use-v-if-with-v-for": "off",
"vue/no-v-html": "off",
"vue/order-in-components": "off",
"vue/singleline-html-element-content-newline": "off",
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化