This project has been no longer maintained. Please consider to use https://github.com/eslint-community/eslint-plugin-n.
Additional ESLint's rules for Node.js
$ npm install --save-dev eslint eslint-plugin-node
>=8.10.0
>=5.16.0
Note: It recommends a use of the "engines" field of package.json. The "engines" field is used by node/no-unsupported-features/*
rules.
.eslintrc.json (An example)
package.json (An example)
{ "name": "your-module", "version": "1.0.0", "type": "commonjs", "engines": { "node": ">=8.10.0" } }
These rules have been deprecated in accordance with the deprecation policy, and replaced by newer rules:
This plugin provides three configs:
plugin:node/recommended
considers both CommonJS and ES Modules. If "type":"module"
field existed in package.json then it considers files as ES Modules. Otherwise it considers files as CommonJS. In addition, it considers *.mjs
files as ES Modules and *.cjs
files as CommonJS.plugin:node/recommended-module
considers all files as ES Modules.plugin:node/recommended-script
considers all files as CommonJS.Those preset config:
process.exit()
.{ecmaVersion: 2019}
and etc into parserOptions
.globals
.plugins
.no-missing-import
/ no-missing-require
rules don't work with nested folders in SublimeLinter-eslinteslint-plugin-node
follows semantic versioning and ESLint's Semantic Versioning Policy.
Welcome contributing!
Please use GitHub's Issues/PRs.
npm test
runs tests and measures coverage.npm run coverage
shows the coverage result of npm test
command.npm run clean
removes the coverage result of npm test
command.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4