Skip to content

Commit

Permalink
feat(config): add 8.4 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 c799b32 commit 7bd7eb0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ const camundaCloud83Rules = withConfig({
'signal-reference': 'error'
}, { version: '8.3' });

const camundaCloud84Rules = withConfig({
...camundaCloud83Rules
}, { version: '8.4' });

const camundaPlatform719Rules = withConfig({
'history-time-to-live': 'error'
}, {
Expand Down Expand Up @@ -138,6 +142,9 @@ module.exports = {
'camunda-cloud-8-3': {
rules: camundaCloud83Rules
},
'camunda-cloud-8-4': {
rules: camundaCloud84Rules
},
'camunda-platform-7-19': {
rules: camundaPlatform719Rules
},
Expand Down
29 changes: 29 additions & 0 deletions test/config/configs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,35 @@ describe('configs', function() {
}));


it('camunda-cloud-8-4', expectRules(configs, 'camunda-cloud-8-4', {
'implementation': [ 'error', { version: '8.4' } ],
'called-element': [ 'error', { version: '8.4' } ],
'collapsed-subprocess': [ 'error', { version: '8.4' } ],
'duplicate-task-headers': [ 'error', { version: '8.4' } ],
'element-type': [ 'error', { version: '8.4' } ],
'error-reference': [ 'error', { version: '8.4' } ],
'escalation-boundary-event-attached-to-ref': [ 'error', { version: '8.4' } ],
'escalation-reference': [ 'error', { version: '8.4' } ],
'event-based-gateway-target': [ 'error', { version: '8.4' } ],
'executable-process': [ 'error', { version: '8.4' } ],
'feel': [ 'error', { version: '8.4' } ],
'inclusive-gateway': [ 'error', { version: '8.4' } ],
'link-event': [ 'error', { version: '8.4' } ],
'loop-characteristics': [ 'error', { version: '8.4' } ],
'message-reference': [ 'error', { version: '8.4' } ],
'no-expression': [ 'error', { version: '8.4' } ],
'no-loop': [ 'error', { version: '8.4' } ],
'no-multiple-none-start-events' : [ 'error', { version: '8.4' } ],
'secrets': [ 'warn', { version: '8.4' } ],
'sequence-flow-condition': [ 'error', { version: '8.4' } ],
'signal-reference': [ 'error', { version: '8.4' } ],
'subscription': [ 'error', { version: '8.4' } ],
'task-schedule': [ 'error', { version: '8.4' } ],
'timer': [ 'error', { version: '8.4' } ],
'user-task-form': [ 'error', { version: '8.4' } ]
}));


it('camunda-platform-7-19', expectRules(configs, 'camunda-platform-7-19', {
'history-time-to-live': [ 'error', { platform: 'camunda-platform', version: '7.19' } ]
}));
Expand Down

0 comments on commit 7bd7eb0

Please sign in to comment.