eslint-plugin-prefer-arrow-functions:ESLint插件,用于对lint进行修复并将普通函数固定为箭头函数

时间:2021-02-05 13:28:16
【文件属性】:
文件名称:eslint-plugin-prefer-arrow-functions:ESLint插件,用于对lint进行修复并将普通函数固定为箭头函数
文件大小:82KB
文件格式:ZIP
更新时间:2021-02-05 13:28:16
nodejs javascript lint eslint linting eslint-plugin-prefer-arrow功能 ESLint插件,可以将Lint插入并自动将普通函数固定为Arrow函数,在所有情况下,转换都会导致相同的行为(例如,Arrow函数不支持this , arguments或new.target )。 目录 :cloud: 安装 npm install --save-dev eslint eslint-plugin-prefer-arrow-functions :ping_pong: 操场 您可以在尝试一下, 是将代码段粘贴在左上方的面板中,结果将显示在右下方的面板中。 :balance_scale: 组态 将插件添加到.eslintrc中的plugins部分,并
【文件预览】:
eslint-plugin-prefer-arrow-functions-master
----.gitignore(41B)
----.codeclimate.yml(115B)
----package.json(1KB)
----tslint.json(253B)
----DEPENDENCIES.md(1KB)
----src()
--------prefer-arrow-functions.ts(9KB)
--------prefer-arrow-functions.spec.ts(23KB)
--------index.ts(259B)
--------config.ts(586B)
----.travis.yml(445B)
----jest.config.js(429B)
----LICENSE(1KB)
----CHANGELOG.md(985B)
----tsconfig.json(311B)
----.github()
--------PULL_REQUEST_TEMPLATE.md(709B)
--------README_CONTENT.md(2KB)
--------ISSUE_TEMPLATE()
--------FUNDING.yml(70B)
----.prettierignore(8B)
----README.md(6KB)
----.editorconfig(133B)
----.prettierrc(98B)
----yarn.lock(161KB)

网友评论