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

eslint-config-postman

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-postman - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

22

index.js

@@ -0,1 +1,5 @@

// Makes the config self-contained via plugins as it's own dependencies
// https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-patch/modern-module-resolution');
const { join } = require('path'),

@@ -25,8 +29,8 @@ { readdirSync } = require('fs');

{
files: ['npm/*'],
files: ['npm/**/*'],
globals: {
'exec': true,
'rm': true,
'set': true,
'test': true
exec: true,
rm: true,
set: true,
test: true
}

@@ -40,6 +44,6 @@ },

globals: {
'exec': true,
'app': true, // as part of test bootstrap
'expect': true, // as part of test bootstrap
'sails': true
exec: true,
app: true, // as part of test bootstrap
expect: true, // as part of test bootstrap
sails: true
},

@@ -46,0 +50,0 @@ rules: {

{
"name": "eslint-config-postman",
"version": "0.0.2",
"version": "0.0.3",
"description": "Common ESLint rules for Postman",

@@ -18,10 +18,11 @@ "bugs": "https://github.com/postmanlabs/eslint-config-postman/issues",

"homepage": "https://github.com/postmanlabs/eslint-config-postman#readme",
"peerDependencies": {
"eslint": "^7.32.0",
"eslint-plugin-jsdoc": "^36.0.6",
"eslint-plugin-lodash": "^7.2.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-security": "^1.4.0"
"dependencies": {
"@rushstack/eslint-patch": "1.1.0",
"eslint": "8.2.0",
"eslint-plugin-jsdoc": "37.0.3",
"eslint-plugin-lodash": "7.3.0",
"eslint-plugin-mocha": "9.0.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.4.0"
}
}
Common ESLint rules for Postman
# Installation
```sh
npm install --save-dev eslint-config-postman
```
# Configuration
Update the `.eslintrc` in the project root as follows:
```json
{
"root": true,
"extends": "postman"
}
```
# Usage
_Only make these changes if you want to remove ESLint as a direct dependency._
## CLI
No changes needed!
## Programmatic
Replace `require('eslint')` with `require('eslint-config-postman/node_modules/eslint')`
_More details:_ [https://eslint.org/docs/developer-guide/nodejs-api](https://eslint.org/docs/developer-guide/nodejs-api)
# Cleanup
_If you're not using additional plugins, prune nested config files with:_
```sh
find . -name .eslintrc -type f -mindepth 2 -delete;
```
## Optional
>
This is recommended to abstract plugin specifics away into one config bundle
Skip this if you're using ESLint as a CLI, or if you're using other plugins in addition to those covered by this config
```sh
npm uninstall eslint eslint-plugin-jsdoc eslint-plugin-lodash eslint-plugin-mocha eslint-plugin-node eslint-plugin-security
```

Sorry, the diff of this file is not supported yet

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