代码拉取完成,页面将自动刷新
module.exports = {
// 全局变量
'env': {
'browser': true,
// 'commonjs': true,
'es6': true,
// 'node': true,
// 'worker': true,
// 'jquery': true
},
'extends': [
"airbnb", "prettier"
// "eslint:recommended",
// "plugin:react/recommended",
// "plugin:vue/base",
],
"rules": {
"align": [
1,
"parameters",
"statements"
],
"array-type": 0,
"arrow-parens": 0,
"curly": 1,
"eofline": 0,
"forin": 1,
"indent": [
1,
"spaces",
4
],
"interface-name": [
1,
"always-prefix"
],
"label-position": 1,
"linebreak-style": [
1,
"LF"
],
"max-classes-per-file": [
0,
1
],
"max-file-line-count": [
1,
1000
],
"max-line-length": [
1,
1000
],
"member-access": [
1,
"check-accessor"
],
"member-ordering": [
0
],
"new-parens": 1,
"no-consecutive-blank-lines": 1,
"no-console": [
1,
"log",
"error"
],
"no-construct": 1,
"no-debugger": 1,
"no-duplicate-variable": [
1,
"check-parameters"
],
"no-empty": [
1,
"allow-empty-catch"
],
"no-empty-interface": 0,
"no-eval": 1,
"no-invalid-this": [
1,
"check-function-in-method"
],
"no-shadowed-variable": [
1,
{
"class": 1,
"enum": 1,
"function": 1,
"interface": 0,
"namespace": 1,
"typeAlias": 0,
"typeParameter": 0
}
],
"no-switch-case-fall-through": 1,
"no-trailing-whitespace": [
1,
"ignore-jsdoc",
"ignore-comments",
"ignore-blank-lines"
],
"no-unused-expression": [
1,
"allow-fast-null-checks"
],
"no-unused-variable": [
1,
{
"ignore-pattern": "^_"
}
],
"no-use-before-declare": 1,
"no-var-keyword": 1,
"object-literal-key-quotes": [
1,
"as-needed"
],
"object-literal-sort-keys": 0,
"one-line": 0,
"one-variable-per-declaration": [
1,
"ignore-for-loop"
],
"no-duplicate-super": 1,
"no-return-await": 1,
"prefer-const": [
1,
{
"destructuring": "all"
}
],
"quotemark": [
1,
"single",
"avoid-escape",
"avoid-template"
],
"radix": 1,
"semicolon": [
1,
"always"
],
"switch-default": 1,
"trailing-comma": 0,
"triple-equals": [
1,
"allow-undefined-check"
],
"variable-name": [
1,
"allow-pascal-case"
],
"no-string-literal": 0,
"no-require-imports": 1,
"only-arrow-functions": [
1,
"allow-declarations",
"allow-named-functions"
],
"jsdoc-format": [
1,
"check-multiline-start"
],
"switch-final-break": [
1,
"always"
],
// 方法表达式是否需要命名
"func-names": 0,
// warn; 单行最多允许160个字符, 对包含url的行不进行此限制
'max-len': [0, { 'code': 160, 'ignoreUrls': true, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true, 'ignoreRegExpLiterals': true }],
//全局require(允许)
"global-require": 0,
// warn; 对 function 的参数进行重新赋值
'no-param-reassign': 0,
// 允许变量声明与外层作用域的变量同名
'no-shadow': 0,
// 变量命名不需要以驼峰命名法,对属性字段不做限制
'camelcase': [0, { 'properties': 'never' }],
// error; 禁用特定的全局变量
'no-restricted-globals': 0,
// warn; 推荐结构赋值
'prefer-destructuring': [1, { 'array': true, 'object': true }, { 'enforceForRenamedProperties': false }],
"import/prefer-default-export": 0
}
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。