Skip to content

Commit 1772172

Browse files
committed
AC-1156: Move custom eslint tests to magento-coding-standard repo
- Add strict types and phpdocs
1 parent e7fcf2d commit 1772172

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed

Magento2/Tests/Eslint/AndSelfTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class AndSelfTest
12+
*
13+
* Test Eslint Rule: jquery-no-andSelf.js
14+
*/
815
class AndSelfTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/BindUnbindTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class BindUnbindTest
12+
*
13+
* Test Eslint Rule: jquery-no-bind-unbind.js
14+
*/
815
class BindUnbindTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/ClickEventShorthandTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class ClickEventShorthandTest
12+
*
13+
* Test Eslint Rule: jquery-no-click-event-shorthand.js
14+
*/
815
class ClickEventShorthandTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/DelegateUndelegateTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class DelegateUndelegateTest
12+
*
13+
* Test Eslint Rule: jquery-no-delegate-undelegate.js
14+
*/
815
class DelegateUndelegateTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/EventShorthandTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class EventShorthandTest
12+
*
13+
* Test Eslint Rule: jquery-no-event-shorthand.js
14+
*/
815
class EventShorthandTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/SizeTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class SizeTest
12+
*
13+
* Test Eslint Rule: jquery-no-size.js
14+
*/
815
class SizeTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

Magento2/Tests/Eslint/TrimTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento2\Tests\Eslint;
79

10+
/**
11+
* Class TrimTest
12+
*
13+
* Test Eslint Rule: jquery-no-trim.js
14+
*/
815
class TrimTest extends AbstractEslintTestCase
916
{
1017
public function testExecute()

0 commit comments

Comments
 (0)