1 Star 0 Fork 0

Luoooo/bs-gis-openlayers

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 4.78 KB
一键复制 编辑 原始数据 按行查看 历史
Luoooo 提交于 2019-07-16 10:08 . 提交
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
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/luogeng_cn/bs-gis-openlayers.git
git@gitee.com:luogeng_cn/bs-gis-openlayers.git
luogeng_cn
bs-gis-openlayers
bs-gis-openlayers
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385