@wordpress/eslint-plugin 18.0.0 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/configs/react.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.16.0",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
36
36
|
"@typescript-eslint/parser": "^6.4.1",
|
|
37
|
-
"@wordpress/babel-preset-default": "^7.
|
|
38
|
-
"@wordpress/prettier-config": "^3.
|
|
37
|
+
"@wordpress/babel-preset-default": "^7.42.0",
|
|
38
|
+
"@wordpress/prettier-config": "^3.15.0",
|
|
39
39
|
"cosmiconfig": "^7.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
41
41
|
"eslint-plugin-import": "^2.25.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "42f38f287506a6b3ed8ccba839b18ad066821044"
|
|
70
70
|
}
|
|
@@ -23,7 +23,7 @@ ruleTester.run( 'dependency-group', rule, {
|
|
|
23
23
|
* External dependencies
|
|
24
24
|
*/
|
|
25
25
|
import { camelCase } from 'change-case';
|
|
26
|
-
import
|
|
26
|
+
import clsx from 'clsx';;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* WordPress dependencies
|
|
@@ -41,7 +41,7 @@ import edit from './edit';`,
|
|
|
41
41
|
* External dependencies
|
|
42
42
|
*/
|
|
43
43
|
const { camelCase } = require( 'change-case' );
|
|
44
|
-
const
|
|
44
|
+
const clsx = require( 'clsx' );
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* WordPress dependencies
|
|
@@ -58,7 +58,7 @@ const edit = require( './edit' );`,
|
|
|
58
58
|
{
|
|
59
59
|
code: `
|
|
60
60
|
import { camelCase } from 'change-case';
|
|
61
|
-
import
|
|
61
|
+
import clsx from 'clsx';;
|
|
62
62
|
/*
|
|
63
63
|
* wordpress dependencies.
|
|
64
64
|
*/
|
|
@@ -83,7 +83,7 @@ import edit from './edit';`,
|
|
|
83
83
|
* External dependencies
|
|
84
84
|
*/
|
|
85
85
|
import { camelCase } from 'change-case';
|
|
86
|
-
import
|
|
86
|
+
import clsx from 'clsx';;
|
|
87
87
|
/**
|
|
88
88
|
* WordPress dependencies
|
|
89
89
|
*/
|
|
@@ -96,7 +96,7 @@ import edit from './edit';`,
|
|
|
96
96
|
{
|
|
97
97
|
code: `
|
|
98
98
|
const { camelCase } = require( 'change-case' );
|
|
99
|
-
const
|
|
99
|
+
const clsx = require( 'clsx' );
|
|
100
100
|
/*
|
|
101
101
|
* wordpress dependencies.
|
|
102
102
|
*/
|
|
@@ -121,7 +121,7 @@ const edit = require( './edit' );`,
|
|
|
121
121
|
* External dependencies
|
|
122
122
|
*/
|
|
123
123
|
const { camelCase } = require( 'change-case' );
|
|
124
|
-
const
|
|
124
|
+
const clsx = require( 'clsx' );
|
|
125
125
|
/**
|
|
126
126
|
* WordPress dependencies
|
|
127
127
|
*/
|