1 Star 0 Fork 49

淡柳离别/spriteJS

forked from 奇虎360/spriteJS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
akira-cn 提交于 2018-06-15 14:29 . :art:support 3rd ticker
module.exports = {
globals: {
spritejs: true,
axios: true,
TWEEN: true,
d3: true,
Docsify: true,
_: true,
CodeMirror: true,
topojson: true,
mapRelation: true,
Animator: true,
Timeline: true,
Proton: true,
curvejs: true,
},
extends: "eslint-config-75team",
plugins: ['html'],
rules: {
// 'import/no-mutable-exports': 'off',
'semi-style': ["error", "first"],
// 禁止一个文件中在忽略空行和注释之后行数超过1500行
'max-lines': ['error', {
max: 1500,
skipBlankLines: true,
skipComments: true
}],
'no-loop-func': 'off',
'guard-for-in': 'off',
'no-multi-assign': 'warn',
'max-params': ['warn', 10],
'prefer-const': ['error', {destructuring: 'all'}],
// 因为我们可能模块内定义一个 decorate,这个 decorate 有可能和变量同名
'no-shadow': 'warn',
// 因为函数签名中可能声明未使用的变量
'no-unused-vars': ['error', {args: "none"}],
'prefer-destructuring': 'off',
'object-curly-newline': 'off',
// 'no-restricted-syntax': [
// 'error',
// 'ForInStatement',
// 'LabeledStatement',
// 'WithStatement',
// ]
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/trueself/spriteJS.git
git@gitee.com:trueself/spriteJS.git
trueself
spriteJS
spriteJS
master

搜索帮助