eslint-plugin-proper-arrows:确保正确箭头功能定义的ESLint规则

时间:2024-02-25 21:20:38
【文件属性】:

文件名称:eslint-plugin-proper-arrows:确保正确箭头功能定义的ESLint规则

文件大小:31KB

文件格式:ZIP

更新时间:2024-02-25 21:20:38

eslint eslint-plugin arrow-functions eslint-rules this-keyword

ESLint插件:正确的箭头 总览 正确的箭头ESLint插件提供了控制=>箭头功能的定义的规则,将其限制为更窄,更正确/更易读的形式。 该插件中定义的规则: :控制=>箭头功能参数的定义,例如,禁止未使用的参数,禁止短/不语义的参数名称等。 :要求=>箭头函数只能在它们接收到推断的名称(即,分配给变量或属性等)的位置使用,以避免匿名函数表达式的易读性/可调试性。 注意:此规则类似于的“按需”模式,但适用于=>箭头函数; 内置规则将忽略它们。 :其中在程序结构限制=>箭头功能可被使用:在全局/顶层模块范围禁止他们,对象属性, export语句等 :限制=>箭头函数的简明返回值


【文件预览】:
eslint-plugin-proper-arrows-master
----.travis.yml(171B)
----package.json(1KB)
----.github()
--------FUNDING.yml(256B)
----tests()
--------qunit.config.js(3KB)
--------tests.this.js(40KB)
--------tests.where.js(8KB)
--------tests.return.js(10KB)
--------tests.trivial.js(10KB)
--------tests.params.js(22KB)
--------tests.name.js(4KB)
----.npmignore(70B)
----.gitignore(69B)
----lib()
--------index.js(20KB)
--------copyright-header.txt(126B)
----README.md(43KB)
----.eslintignore(40B)
----scripts()
--------node-tests.js(1KB)
--------build-core.js(2KB)
----.editorconfig(158B)
----LICENSE.txt(1KB)

网友评论