New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-haraka

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-haraka - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

rules/no-newline-no-curly-if.js

5

Changes.md

@@ -0,1 +1,6 @@

# 1.0.7 - 2017-06-16
* Fixes the format of an eslint plugin. The "rules" section is for custom
rules (i.e. the code for defining the rules), not for enforced rules.
# 1.0.6 - 2017-06-15

@@ -2,0 +7,0 @@

19

index.js
var fs = require('fs');
var path = require('path');
"use strict";
var requiredRules = {
var recommendedRules = {
"comma-dangle": [2, "only-multiline"],

@@ -29,9 +28,13 @@ "dot-notation": 2,

// they might not always be the same...
var recommendedRules = requiredRules;
// This is really here so we know how this "rules" section is used in the future
// - If you want to enable this rule you can by adding: `"haraka/no-newline-no-curly-if": 2` to
// your module's list of rules.
// The rule in case you're curious prevents: `if (bool)\n do_thing()` and forces if()s with
// no curly to be on a single line.
var rules = {
"no-newline-no-curly-if": require('./rules/no-newline-no-curly-if'),
};
JSON.parse(fs.readFileSync(path.join(__dirname, '.eslintrc.json')));
module.exports = {
rules: requiredRules,
rules: rules,
configs: {

@@ -38,0 +41,0 @@ recommended: {

{
"name": "eslint-plugin-haraka",
"version": "1.0.6",
"version": "1.0.7",
"description": "eslint rules for Haraka projects",

@@ -5,0 +5,0 @@ "main": "index.js",

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