加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
홍유정 提交于 2017-09-07 22:29 . feat: register npm (resolves: #1) (#7)
module.exports = {
"extends": "tui/es6",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"classes": true,
"jsx": true
}
},
"env": {
"browser": true,
"amd": true,
"node": true,
"jasmine": true,
"es6": true,
"commonjs": true
},
"globals": {
"tui": true,
"fixture": true
},
"rules": {
"lines-around-directive": 0,
"newline-before-return": 0,
"padding-line-between-statements": [2,
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "always", prev: "directive", next: "*" }, { blankLine: "any", prev: "directive", next: "directive" },
{ blankLine: "always", prev: ["const", "let", "var"], next: "*"}, { blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]}
],
"sort-imports": "error",
"no-useless-rename": "error",
"no-duplicate-imports": ["error", { "includeExports": true }],
"dot-notation": ["error", { "allowKeywords": true }],
"prefer-destructuring": [
"error", {
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化