Comparing version 3.2.1 to 3.3.0
@@ -9,2 +9,10 @@ # Changelog | ||
## 3.3.0 | ||
* `FEAT`: do not expose disabled rules when bundling `.bpmnlintrc` | ||
## 3.2.1 | ||
* `DOCS`: fix readme code snippet | ||
## 3.2.0 | ||
@@ -11,0 +19,0 @@ |
@@ -21,4 +21,17 @@ const Linter = require('../linter'); | ||
const serializedRules = JSON.stringify(resolvedRules, null, ' '); | ||
// only process and serialize enabled rules | ||
const enabledRules = Object.keys(resolvedRules).reduce(function(enabledRules, key) { | ||
const value = resolvedRules[key]; | ||
const { ruleFlag } = linter.parseRuleValue(value); | ||
if (ruleFlag !== 'off') { | ||
enabledRules[key] = value; | ||
} | ||
return enabledRules; | ||
}, {}); | ||
const serializedRules = JSON.stringify(enabledRules, null, ' '); | ||
const preambleCode = ` | ||
@@ -70,5 +83,3 @@ var cache = {}; | ||
const importCode = Object.entries(resolvedRules).filter( | ||
([ key, value ]) => linter.parseRuleValue(value).ruleFlag !== 'off' | ||
).map(([ key, value ], idx) => { | ||
const importCode = Object.keys(enabledRules).map((key, idx) => { | ||
@@ -75,0 +86,0 @@ const { |
{ | ||
"name": "bpmnlint", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34263
1036