(property, correctProperty)
| 37 | * @param {string} correctProperty correct property |
| 38 | */ |
| 39 | const conflictWith = (property, correctProperty) => { |
| 40 | if (unhandledProperties.has(property)) { |
| 41 | throw ruleSetCompiler.error( |
| 42 | `${path}.${property}`, |
| 43 | rule[property], |
| 44 | `A Rule must not have a '${property}' property when it has a '${correctProperty}' property` |
| 45 | ); |
| 46 | } |
| 47 | }; |
| 48 | |
| 49 | if (unhandledProperties.has("use")) { |
| 50 | unhandledProperties.delete("use"); |