You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
485 B
23 lines
485 B
/**
|
|
* @author Yosuke Ota
|
|
* See LICENSE file in root directory for full license.
|
|
*/
|
|
'use strict'
|
|
|
|
const utils = require('../../utils/index')
|
|
|
|
module.exports = {
|
|
supported: '>=3.3.0',
|
|
/** @param {RuleContext} context @returns {RuleListener} */
|
|
createScriptVisitor(context) {
|
|
return utils.defineScriptSetupVisitor(context, {
|
|
onDefineSlotsEnter(node) {
|
|
context.report({
|
|
node,
|
|
messageId: 'forbiddenDefineSlots'
|
|
})
|
|
}
|
|
})
|
|
}
|
|
}
|