eslint-plugin-haraka
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
6562
9
80
0
1