reference local eslint plugin package

This commit is contained in:
Paul Sealock 2022-04-27 11:16:35 +12:00
parent 12fef88354
commit 931845a53a
18 changed files with 56 additions and 53 deletions

View File

@ -1,4 +1,7 @@
module.exports = {
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@woocommerce/eslint-plugin/recommended',
],
root: true,
};

View File

@ -37,7 +37,7 @@
"@types/puppeteer": "^5.4.5",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@woocommerce/api": "^0.2.0",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -94,9 +94,9 @@
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.5.0",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/style-build": "workspace:*",
"@wordpress/browserslist-config": "^4.1.1",
"@wordpress/eslint-plugin": "^11.0.0",
"@wordpress/scripts": "^12.6.1",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",

View File

@ -40,7 +40,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -43,7 +43,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -40,8 +40,8 @@
"@types/prop-types": "^15.7.4",
"@types/wordpress__components": "^9.8.6",
"@woocommerce/style-build": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@wordpress/browserslist-config": "^4.1.1",
"@wordpress/eslint-plugin": "^11.0.0",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.12.0",

View File

@ -50,7 +50,7 @@
"@testing-library/react-hooks": "^7.0.2",
"@types/wordpress__core-data": "^2.4.5",
"@types/wordpress__data-controls": "^2.2.0",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -28,7 +28,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"d3-time-format": "^2.3.0",
"eslint": "^8.12.0",
"jest": "^27.5.1",

View File

@ -25,7 +25,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -53,9 +53,9 @@
"@testing-library/user-event": "^13.5.0",
"@types/dompurify": "^2.3.3",
"@types/react-transition-group": "^4.4.4",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/style-build": "workspace:*",
"@wordpress/browserslist-config": "^4.1.1",
"@wordpress/eslint-plugin": "^11.0.0",
"concurrently": "^7.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.12.0",

View File

@ -38,7 +38,7 @@
"@types/cookie": "^0.4.1",
"@types/node": "^17.0.21",
"@types/qs": "^6.9.7",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -34,7 +34,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -51,7 +51,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"@babel/runtime": "^7.17.2",
"jest": "^27.5.1",

View File

@ -45,7 +45,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -38,7 +38,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"@babel/runtime": "^7.17.2",
"jest": "^27.5.1",

View File

@ -37,9 +37,9 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/style-build": "workspace:*",
"@wordpress/browserslist-config": "^4.1.1",
"@wordpress/eslint-plugin": "^11.0.0",
"css-loader": "^3.6.0",
"eslint": "^8.12.0",
"jest": "^27.5.1",

View File

@ -35,7 +35,7 @@
"private": true,
"devDependencies": {
"@babel/core": "^7.17.5",
"@wordpress/eslint-plugin": "^11.0.0",
"@woocommerce/eslint-plugin": "workspace:*",
"eslint": "^8.12.0",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",

View File

@ -72,7 +72,7 @@ importers:
'@types/puppeteer': ^5.4.5
'@typescript-eslint/eslint-plugin': ^5.14.0
'@woocommerce/api': ^0.2.0
'@wordpress/eslint-plugin': ^11.0.0
'@woocommerce/eslint-plugin': workspace:*
config: ^3.3.7
eslint: ^8.12.0
jest: ^27.5.1
@ -91,7 +91,7 @@ importers:
'@types/puppeteer': 5.4.5
'@typescript-eslint/eslint-plugin': 5.15.0_eslint@8.12.0+typescript@4.6.2
'@woocommerce/api': link:../api
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -174,6 +174,7 @@ importers:
'@woocommerce/currency': workspace:*
'@woocommerce/data': workspace:*
'@woocommerce/date': workspace:*
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/navigation': workspace:*
'@woocommerce/style-build': workspace:*
'@wordpress/api-fetch': ^6.0.1
@ -184,7 +185,6 @@ importers:
'@wordpress/deprecated': ^3.3.1
'@wordpress/dom': ^3.3.2
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/hooks': ^3.5.0
'@wordpress/html-entities': ^3.3.1
'@wordpress/i18n': ^4.3.1
@ -283,9 +283,9 @@ importers:
'@testing-library/jest-dom': 5.16.2
'@testing-library/react': 12.1.4
'@testing-library/user-event': 13.5.0_@testing-library+dom@8.11.3
'@woocommerce/eslint-plugin': link:../eslint-plugin
'@woocommerce/style-build': link:../style-build
'@wordpress/browserslist-config': 4.1.2
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@wordpress/scripts': 12.6.1_6cad74fe17bf42b947bda894b27e9dc2
concurrently: 7.0.0
css-loader: 3.6.0_webpack@5.70.0
@ -303,7 +303,7 @@ importers:
packages/js/csv-export:
specifiers:
'@babel/core': ^7.17.5
'@wordpress/eslint-plugin': ^11.0.0
'@woocommerce/eslint-plugin': workspace:*
browser-filesaver: ^1.1.1
eslint: ^8.12.0
jest: ^27.5.1
@ -317,7 +317,7 @@ importers:
moment: 2.29.1
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -328,10 +328,10 @@ importers:
packages/js/currency:
specifiers:
'@babel/core': ^7.17.5
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/number': workspace:*
'@wordpress/deprecated': ^2.12.3
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/html-entities': ^3.3.1
'@wordpress/i18n': ^3.20.0
eslint: ^8.12.0
@ -348,7 +348,7 @@ importers:
'@wordpress/i18n': 3.20.0
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -362,6 +362,7 @@ importers:
'@testing-library/react': ^12.1.3
'@types/prop-types': ^15.7.4
'@types/wordpress__components': ^9.8.6
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/experimental': workspace:*
'@woocommerce/style-build': workspace:*
'@wordpress/browserslist-config': ^4.1.1
@ -369,7 +370,6 @@ importers:
'@wordpress/compose': ^5.1.2
'@wordpress/data': ^6.3.0
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/i18n': ^4.3.1
'@wordpress/notices': ^3.3.2
classnames: ^2.3.1
@ -403,9 +403,9 @@ importers:
'@testing-library/react': 12.1.4
'@types/prop-types': 15.7.4
'@types/wordpress__components': 9.8.6
'@woocommerce/eslint-plugin': link:../eslint-plugin
'@woocommerce/style-build': link:../style-build
'@wordpress/browserslist-config': 4.1.2
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
concurrently: 7.0.0
css-loader: 3.6.0_webpack@5.70.0
eslint: 8.12.0
@ -429,6 +429,7 @@ importers:
'@types/wordpress__core-data': ^2.4.5
'@types/wordpress__data-controls': ^2.2.0
'@woocommerce/date': workspace:*
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/navigation': workspace:*
'@wordpress/api-fetch': ^6.0.1
'@wordpress/compose': ^5.1.2
@ -437,7 +438,6 @@ importers:
'@wordpress/data-controls': ^2.3.2
'@wordpress/deprecated': ^3.3.1
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/hooks': ^3.5.0
'@wordpress/i18n': ^4.3.1
'@wordpress/url': ^3.4.1
@ -476,7 +476,7 @@ importers:
'@testing-library/react-hooks': 7.0.2
'@types/wordpress__core-data': 2.4.5
'@types/wordpress__data-controls': 2.2.0
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -487,8 +487,8 @@ importers:
packages/js/date:
specifiers:
'@babel/core': ^7.17.5
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/date': ^4.3.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/i18n': ^4.3.1
d3-time-format: ^2.3.0
eslint: ^8.12.0
@ -506,7 +506,7 @@ importers:
qs: 6.10.3
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
d3-time-format: 2.3.0
eslint: 8.12.0
jest: 27.5.1
@ -518,8 +518,8 @@ importers:
packages/js/dependency-extraction-webpack-plugin:
specifiers:
'@babel/core': ^7.17.5
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/dependency-extraction-webpack-plugin': ^3.3.0
'@wordpress/eslint-plugin': ^11.0.0
eslint: ^8.12.0
jest: ^27.5.1
jest-cli: ^27.5.1
@ -532,7 +532,7 @@ importers:
'@wordpress/dependency-extraction-webpack-plugin': 3.4.1_webpack@5.70.0
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -751,11 +751,11 @@ importers:
'@types/dompurify': ^2.3.3
'@types/react-transition-group': ^4.4.4
'@woocommerce/components': workspace:*
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/style-build': workspace:*
'@wordpress/browserslist-config': ^4.1.1
'@wordpress/components': ^19.5.0
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/i18n': ^4.3.1
'@wordpress/icons': ^8.1.0
'@wordpress/keycodes': ^3.3.1
@ -801,9 +801,9 @@ importers:
'@testing-library/user-event': 13.5.0_@testing-library+dom@8.11.3
'@types/dompurify': 2.3.3
'@types/react-transition-group': 4.4.4
'@woocommerce/eslint-plugin': link:../eslint-plugin
'@woocommerce/style-build': link:../style-build
'@wordpress/browserslist-config': 4.1.2
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
concurrently: 7.0.0
css-loader: 3.6.0_webpack@5.70.0
eslint: 8.12.0
@ -825,8 +825,8 @@ importers:
'@types/cookie': ^0.4.1
'@types/node': ^17.0.21
'@types/qs': ^6.9.7
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/api-fetch': ^6.0.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/hooks': ^3.5.0
cookie: ^0.4.2
eslint: ^8.12.0
@ -848,7 +848,7 @@ importers:
'@types/cookie': 0.4.1
'@types/node': 17.0.21
'@types/qs': 6.9.7
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -861,8 +861,8 @@ importers:
'@babel/core': ^7.17.5
'@testing-library/jest-dom': ^5.16.2
'@testing-library/react': ^12.1.3
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/data': ^6.3.0
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/i18n': ^4.3.1
'@wordpress/jest-console': ^5.0.1
eslint: ^8.12.0
@ -881,7 +881,7 @@ importers:
regenerator-runtime: 0.13.9
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -893,11 +893,11 @@ importers:
specifiers:
'@babel/core': ^7.17.5
'@babel/runtime': ^7.17.2
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/api-fetch': ^6.0.1
'@wordpress/components': ^19.5.0
'@wordpress/compose': ^5.1.2
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/hooks': ^3.5.0
'@wordpress/notices': ^3.3.2
'@wordpress/url': ^3.4.1
@ -922,7 +922,7 @@ importers:
devDependencies:
'@babel/core': 7.17.8
'@babel/runtime': 7.17.7
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -933,9 +933,9 @@ importers:
packages/js/notices:
specifiers:
'@babel/core': ^7.17.5
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/a11y': ^3.5.0
'@wordpress/data': ^6.3.0
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/notices': ^3.3.2
eslint: ^8.12.0
jest: ^27.5.1
@ -949,7 +949,7 @@ importers:
'@wordpress/notices': 3.4.1
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -961,7 +961,7 @@ importers:
specifiers:
'@babel/core': ^7.17.5
'@babel/runtime': ^7.17.2
'@wordpress/eslint-plugin': ^11.0.0
'@woocommerce/eslint-plugin': workspace:*
eslint: ^8.12.0
jest: ^27.5.1
jest-cli: ^27.5.1
@ -974,7 +974,7 @@ importers:
devDependencies:
'@babel/core': 7.17.8
'@babel/runtime': 7.17.7
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -987,13 +987,13 @@ importers:
'@automattic/interpolate-components': ^1.2.0
'@babel/core': ^7.17.5
'@woocommerce/components': workspace:*
'@woocommerce/eslint-plugin': workspace:*
'@woocommerce/experimental': workspace:*
'@woocommerce/style-build': workspace:*
'@woocommerce/tracks': workspace:*
'@wordpress/browserslist-config': ^4.1.1
'@wordpress/components': ^19.5.0
'@wordpress/element': ^4.1.1
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/i18n': ^4.3.1
concurrently: ^7.0.0
css-loader: ^3.6.0
@ -1020,9 +1020,9 @@ importers:
gridicons: 3.4.0
devDependencies:
'@babel/core': 7.17.8
'@woocommerce/eslint-plugin': link:../eslint-plugin
'@woocommerce/style-build': link:../style-build
'@wordpress/browserslist-config': 4.1.2
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
css-loader: 3.6.0_webpack@5.70.0
eslint: 8.12.0
jest: 27.5.1
@ -1039,8 +1039,8 @@ importers:
specifiers:
'@automattic/color-studio': ^2.5.0
'@babel/core': ^7.17.5
'@woocommerce/eslint-plugin': workspace:*
'@wordpress/base-styles': ^4.3.0
'@wordpress/eslint-plugin': ^11.0.0
'@wordpress/postcss-plugins-preset': ^1.6.0
css-loader: ^3.6.0
eslint: ^8.12.0
@ -1067,7 +1067,7 @@ importers:
webpack-rtl-plugin: 2.0.0
devDependencies:
'@babel/core': 7.17.8
'@wordpress/eslint-plugin': 11.0.1_7c040a9b494a33cf8bf9079642892fb1
'@woocommerce/eslint-plugin': link:../eslint-plugin
eslint: 8.12.0
jest: 27.5.1
jest-cli: 27.5.1
@ -2228,7 +2228,7 @@ packages:
'@babel/helper-module-imports': 7.16.7
'@babel/helper-plugin-utils': 7.16.7
'@babel/traverse': 7.17.3
debug: 4.3.3
debug: 4.3.4
lodash.debounce: 4.0.8
resolve: 1.20.0
semver: 6.3.0
@ -2317,7 +2317,7 @@ packages:
'@babel/helper-module-imports': 7.16.7
'@babel/helper-plugin-utils': 7.16.7
'@babel/traverse': 7.17.3
debug: 4.3.3
debug: 4.3.4
lodash.debounce: 4.0.8
resolve: 1.20.0
semver: 6.3.0
@ -24361,7 +24361,7 @@ packages:
dependencies:
'@tootallnate/once': 1.1.2
agent-base: 6.0.2
debug: 4.3.3
debug: 4.3.4
transitivePeerDependencies:
- supports-color
dev: true
@ -36544,7 +36544,7 @@ packages:
serialize-javascript: 6.0.0
source-map: 0.6.1
terser: 5.10.0_acorn@8.7.0
webpack: 5.70.0_webpack-cli@3.3.12
webpack: 5.70.0
transitivePeerDependencies:
- acorn
dev: true