Skip to content

Commit

Permalink
feat(config): add Platform 7.21 config
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm authored and merge-me[bot] committed Oct 24, 2023
1 parent 7bd7eb0 commit 7f9acd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ const camundaPlatform720Rules = withConfig(camundaPlatform719Rules, {
version: '7.20'
});

const camundaPlatform721Rules = withConfig(camundaPlatform720Rules, {
platform: 'camunda-platform',
version: '7.21'
});

const rules = {
'element-type': './rules/camunda-cloud/element-type',
'called-element': './rules/camunda-cloud/called-element',
Expand Down Expand Up @@ -151,6 +156,9 @@ module.exports = {
'camunda-platform-7-20': {
rules: camundaPlatform720Rules
},
'camunda-platform-7-21': {
rules: camundaPlatform721Rules
},
'all': {
rules: Object.keys(rules).reduce((allRules, rule) => {
return {
Expand Down
4 changes: 4 additions & 0 deletions test/config/configs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ describe('configs', function() {
'history-time-to-live': [ 'error', { platform: 'camunda-platform', version: '7.20' } ]
}));

it('camunda-platform-7-21', expectRules(configs, 'camunda-platform-7-21', {
'history-time-to-live': [ 'error', { platform: 'camunda-platform', version: '7.21' } ]
}));


it('all', expectRules(configs, 'all', {
'element-type': 'error',
Expand Down

0 comments on commit 7f9acd9

Please sign in to comment.