@penskemediacorp/eslint-config 1.66.3 → 1.68.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/index.js +12 -2
- package/package.json +6 -2
package/index.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
// This is used PMC-wide in other projects such as pmc-plugins, nova, larva, and other misc places where we want WordPress' eslint but with adjustments.
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
|
-
|
|
4
|
+
// env: {
|
|
5
|
+
// jest: true
|
|
6
|
+
// },
|
|
7
|
+
// plugins: [
|
|
8
|
+
// 'jest',
|
|
9
|
+
// ],
|
|
10
|
+
extends: [
|
|
11
|
+
'plugin:@wordpress/eslint-plugin/recommended',
|
|
12
|
+
'plugin:@wordpress/eslint-plugin/test-unit',
|
|
13
|
+
],
|
|
3
14
|
parser: '@babel/eslint-parser',
|
|
4
15
|
overrides: [
|
|
5
16
|
{
|
|
@@ -7,7 +18,6 @@ module.exports = {
|
|
|
7
18
|
rules: {
|
|
8
19
|
'jsdoc/require-returns-description': 'off',
|
|
9
20
|
'jsdoc/check-line-alignment': 1,
|
|
10
|
-
'@wordpress/no-global-event-listener': 'off',
|
|
11
21
|
},
|
|
12
22
|
},
|
|
13
23
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@penskemediacorp/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.0",
|
|
4
4
|
"description": "Eslint base config and customizations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -23,12 +23,16 @@
|
|
|
23
23
|
"bugs": {
|
|
24
24
|
"url": "https://github.com/penske-media-corp/pmc-larva/issues"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e6d0aaafb0abefe1fa8a691911ae23b0bde14528",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@wordpress/eslint-plugin": "^17"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/eslint-parser": "^7",
|
|
32
|
+
"@wordpress/jest-preset-default": "^11.27.0",
|
|
32
33
|
"prettier": "npm:wp-prettier@^3"
|
|
34
|
+
},
|
|
35
|
+
"jest": {
|
|
36
|
+
"preset": "@wordpress/jest-preset-default"
|
|
33
37
|
}
|
|
34
38
|
}
|