UNPKG

@lwc/eslint-plugin-lwc

Version:
32 lines (28 loc) 736 B
/* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ 'use strict'; const { docUrl } = require('../util/doc-url'); module.exports = { meta: { docs: { description: 'disallow usage of the for-of syntax', category: 'LWC', url: docUrl('no-for-of'), }, schema: [], }, create(context) { return { ForOfStatement(node) { context.report({ node, message: 'Invalid usage of for-of.', }); }, }; }, };