mirror of https://github.com/sveltejs/svelte
13 lines
440 B
13 lines
440 B
import checkForDupes from '../utils/checkForDupes.js';
|
|
import checkForComputedKeys from '../utils/checkForComputedKeys.js';
|
|
|
|
export default function helpers ( validator, prop ) {
|
|
if ( prop.value.type !== 'ObjectExpression' ) {
|
|
validator.error( `The 'helpers' property must be an object literal`, prop.start );
|
|
return;
|
|
}
|
|
|
|
checkForDupes( validator, prop.value.properties );
|
|
checkForComputedKeys( validator, prop.value.properties );
|
|
}
|