8 Star 33 Fork 8

Gitee 极速下载/FabricJS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fabricjs/fabric.js/
克隆/下载
.eslintrc.json 2.86 KB
一键复制 编辑 原始数据 按行查看 历史
{
"env": {
"browser": true
},
"globals": {
"Promise": true,
"define": true,
"eventjs": true,
"exports": true,
"fabric": true,
"require": true,
"Buffer": true,
"process": true,
"QUnit": true,
"assert": true,
"AbortController": true
},
"overrides": [
{
"files": ["**/*.js"]
}
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-extra-semi": 0,
"no-prototype-builtins": 0,
"no-redeclare": 0,
"semi": 2,
"eqeqeq": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-unused-expressions": [
2,
{
"allowShortCircuit": true
}
],
"guard-for-in": 0,
"wrap-iife": [2, "inside"],
"linebreak-style": [2, "unix"],
"no-loop-func": 2,
"no-multi-str": 2,
"no-caller": 2,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-new": 0,
"no-plusplus": 0,
"strict": 0,
"dot-notation": 2,
"no-undef": 2,
"no-unused-vars": 2,
"max-depth": [2, 4],
"max-statements": [2, 150],
"curly": [2, "all"],
"keyword-spacing": [2, {}],
"space-infix-ops": 2,
"array-bracket-spacing": [2, "never"],
"comma-style": [2, "last"],
"camelcase": [
2,
{
"properties": "never"
}
],
"brace-style": [
2,
"stroustrup",
{
"allowSingleLine": true
}
],
"eol-last": 2,
"one-var": [0, "always"],
"quote-props": [
2,
"as-needed",
{
"keywords": true
}
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}
],
"space-unary-ops": [
2,
{
"words": true,
"nonwords": false
}
],
"no-with": 2,
"no-multiple-empty-lines": 2,
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"quotes": [2, "single"],
"indent": [
2,
2,
{
"SwitchCase": 1,
"VariableDeclarator": 2
}
],
"consistent-this": [2, "_this"],
"valid-jsdoc": [
0,
{
"requireReturn": false
}
],
"max-len": [
2,
120,
{
"ignoreComments": true
}
],
"no-restricted-syntax": [
"error",
{
"selector": "[callee.object.name='Math'][callee.property.name='hypot']",
"message": "`Math.hypot` is not accurate on chrome, use `Math.sqrt` instead.\nSee https://stackoverflow.com/questions/62931950/different-results-of-math-hypot-on-chrome-and-firefox"
},
{
"selector": "VariableDeclarator[init.name='Math']",
"message": "Aliasing or destructing `Math` is not allowed due to restrictions on `Math.hypot` usage"
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/FabricJS.git
git@gitee.com:mirrors/FabricJS.git
mirrors
FabricJS
FabricJS
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385