Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-node

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-node - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

index.js

35

package.json
{
"name": "eslint-plugin-node",
"version": "0.0.0",
"version": "0.1.0",
"description": "Additional ESLint's rules for Node.js",
"files": [
"lib",
"index.js"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"preversion": "npm-run-all test build",
"postversion": "git push && git push --tags",
"clean": "rimraf coverage",
"lint": "eslint lib tests --rulesdir lib/rules --rule \"no-missing-require:2\"",
"build": "node scripts/generate-index.js",
"test": "npm-run-all clean lint test:mocha",
"test:mocha": "istanbul cover node_modules/mocha/bin/_mocha -- tests/lib/**/*.js",
"dev": "node scripts/dev.js",
"coveralls": "cat coverage/lcov.info | coveralls"
},
"peerDependencies": {
"eslint": ">=1.0.0"
},
"dependencies": {
"minimatch": "^3.0.0",
"object-assign": "^4.0.1",
"resolve": "^1.1.6"
},
"devDependencies": {
"coveralls": "^2.11.4",
"eslint": "^1.10.1",
"eslint-config-eslint": "^1.0.1",
"istanbul": "^0.4.0",
"mocha": "^2.3.4",
"npm-run-all": "^1.3.2",
"rimraf": "^2.4.4",
"shelljs": "^0.5.3",
"watch": "^0.16.0"
},
"repository": {

@@ -9,0 +40,0 @@ "type": "git",

# eslint-plugin-node
I'm working on this now.
[![Build Status](https://travis-ci.org/mysticatea/eslint-plugin-node.svg?branch=master)](https://travis-ci.org/mysticatea/eslint-plugin-node)
[![Coverage Status](https://coveralls.io/repos/mysticatea/eslint-plugin-node/badge.svg?branch=master)](https://coveralls.io/r/mysticatea/eslint-plugin-node?branch=master)
[![Dependency Status](https://david-dm.org/mysticatea/eslint-plugin-node.svg)](https://david-dm.org/mysticatea/eslint-plugin-node)
[![npm version](https://badge.fury.io/js/eslint-plugin-node.svg)](http://badge.fury.io/js/eslint-plugin-node)
Additional ESLint's rules for Node.js
Some rules are slow because it searches `package.json` and opens it.
## Install & Usage
```
> npm install --save-dev eslint eslint-plugin-node
```
**.eslintrc**
```json
{
"extends": "eslint:recommended",
"plugins": ["node"],
"env": {
"node": true
},
"rules": {
"node/no-missing-import": 2,
"node/no-missing-require": 2,
"node/shebang": 2
}
}
```
## Rules
- [no-missing-import](docs/rules/no-missing-import.md) - Disallow invalid `import` and `export` declarations.
- [no-missing-require](docs/rules/no-missing-require.md) - Disallow invalid `require()`s.
- [shebang](docs/rules/shebang.md) - Suggest correct usage of shebang.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc