80 Star 973 Fork 173

GVP林间有风 / lin-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc 1.41 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:promise/recommended"
],
"plugins": [
"import",
"promise"
],
"env": {
"node": true,
"es2017": true,
"browser": true,
"commonjs": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"globals": {
"Component": true,
"Page": true,
"wx": true,
"App": true,
"getCurrentPages":true,
"Behavior": true
},
"ignorePatterns": [
"dist/*",
"examples/dist/*",
"src/common/async-validator/*",
"examples/pages/filter/components/wemark"
],
"rules": {
// 函数大括号前不允许加空格(已关闭)
"space-before-function-paren": "off",
// 缩进 2 个空格
"indent": ["error", 2],
// 必须使用单引号
"quotes": [
"error", "single", {
"allowTemplateLiterals": false
}
],
// 行尾必须添加分号
"semi": ["error"],
// 不允许使用 console.log()
"no-console": [
"warn", {
"allow": ["info", "warn", "error"]
}
],
// 禁止使用未声明的变量
"no-undef": "error",
// 禁止不必要的转义使用(已关闭)
"no-useless-escape": "off",
// 必须使用严格等于
"eqeqeq": ["error", "always"],
// promise 中必须要 return 语句(已关闭)
"promise/always-return": "off"
}
}
JavaScript
1
https://gitee.com/talelin/lin-ui.git
git@gitee.com:talelin/lin-ui.git
talelin
lin-ui
lin-ui
master

搜索帮助

14c37bed 8189591 565d56ea 8189591