【文件属性】:
文件名称:eslint-plugin-node:Node.js的其他ESLint规则
文件大小:248KB
文件格式:ZIP
更新时间:2021-02-03 03:49:30
nodejs javascript npm node eslint
eslint插件节点
ESLint针对Node.js的其他规则
:optical_disk: 安装与使用
$ npm install --save-dev eslint eslint-plugin-node
需要Node.js >=8.10.0
要求ESLint >=5.16.0
注意:建议使用。 node/no-unsupported-features/*规则使用“引擎”字段。
.eslintrc.json (示例)
{
"extends" : [
"eslint:recommended" ,
"plugin:node/recommended"
] ,
"parserOptions" : {
// Only ESLint 6.2.0 and later support ES2020.
"ecmaVersion" : 2020
} ,
"rules" : {
"node/exports-style" : [ "error" , "module.export