Collection of PHP_CodeSniffer sniffs for Elementor.
composer require elementor/elementor-sniffs
./vendor/bin/phpcs --standard=Elementor-Core <file>
PHPCS config file:
<?xml version="1.0"?>
<ruleset name="Elementor Coding Standards">
<description>My projects ruleset.</description>
<config name="text_domain" value="my-plugin-name" />
<exclude-pattern>vendor/</exclude-pattern>
<!-- Rules -->
<rule ref="Elementor-Core" />
</ruleset>