3 Star 2 Fork 0

Gitee 前端组 / eslint-config-gitee

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
index.js 995 Bytes
Copy Edit Raw Blame History
liu authored 2019-08-29 14:16 . feat:添加 arrow-parens 规则
module.exports = {
rules: {
'quote-props': 0,
'comma-dangle': 0,
'spaced-comment': 0,
'semi': 0,
'func-names': 0,
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
vue: 'never'
}
],
'no-mixed-operators': ['error', {
"groups": [
["&&", "||"],
["in", "instanceof"]
]
}],
'no-plusplus': 0,
'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }],
// 单行元素只要没超过一行最大字符数限制就够了
'vue/singleline-html-element-content-newline': 0,
'vue/max-attributes-per-line': ['error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': false
}
}]
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
es6: true,
browser: true,
jquery: true,
node: true
},
extends: [
'airbnb-base',
'plugin:vue/recommended'
]
};
1
https://gitee.com/gitee-frontend/eslint-config-gitee.git
git@gitee.com:gitee-frontend/eslint-config-gitee.git
gitee-frontend
eslint-config-gitee
eslint-config-gitee
master

Search