1 Star 1 Fork 0

UNSTOPPABLE/fabric.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
overrides: [
{
files: ['**/*.ts'],
},
],
rules: {
'@typescript-eslint/ban-types': 1,
'@typescript-eslint/ban-ts-comment': 1,
'no-restricted-globals': [
'error',
{
name: 'window',
message: 'Use fabric window or other utils instead.',
},
{
name: 'document',
message: 'Use fabric document or other utils instead.',
},
],
'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.',
},
],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/UnStoppableeee/fabric.js.git
git@gitee.com:UnStoppableeee/fabric.js.git
UnStoppableeee
fabric.js
fabric.js
master

搜索帮助