/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/html/index.js
27 строк
584 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import { __ } from '@wordpress/i18n'; import { html as icon } from '@wordpress/icons'; import initBlock from '../utils/init-block'; import edit from './edit'; import metadata from './block.json'; import save from './save'; import transforms from './transforms'; const { name } = metadata; export { metadata, name }; export const settings = { icon, example: { innerContent: [ '<marquee>' + __( 'Welcome to the wonderful world of blocks…' ) + '</marquee>', ], }, edit, save, transforms, }; export const init = () => initBlock( { name, metadata, settings } );