当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 173

ligui-ios / lin-ui
暂停

forked from 林间有风 / lin-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc 1.36 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
},
"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/liguiios/lin-ui.git
git@gitee.com:liguiios/lin-ui.git
liguiios
lin-ui
lin-ui
master

搜索帮助