Fixup eslintrc.js
This commit is contained in:
parent
7c0a1f129e
commit
bfbad3a4dc
|
@ -6,6 +6,7 @@ module.exports = {
|
|||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
|
||||
globals: {
|
||||
wp: true,
|
||||
wpApiSettings: true,
|
||||
|
|
|
@ -1,91 +1,96 @@
|
|||
{
|
||||
"name": "woocommerce",
|
||||
"title": "WooCommerce",
|
||||
"version": "6.6.0",
|
||||
"homepage": "https://woocommerce.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/woocommerce/woocommerce.git"
|
||||
},
|
||||
"license": "GPL-3.0+",
|
||||
"config": {
|
||||
"wp_org_slug": "woocommerce",
|
||||
"build_step": "pnpm run build:zip"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets",
|
||||
"build:feature-config": "php bin/generate-feature-config.php",
|
||||
"build:zip": "./bin/build-zip.sh",
|
||||
"lint:js": "eslint assets/js --ext=js",
|
||||
"docker:down": "pnpm exec wc-e2e docker:down",
|
||||
"docker:ssh": "pnpm exec wc-e2e docker:ssh",
|
||||
"docker:up": "pnpm exec wc-e2e docker:up",
|
||||
"test:api": "ALLURE_OUTPUT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
|
||||
"make:collection": "pnpm exec wc-api-tests make:collection",
|
||||
"test:e2e": "pnpm exec wc-e2e test:e2e",
|
||||
"test:e2e-debug": "pnpm exec wc-e2e test:e2e-debug",
|
||||
"test:e2e-dev": "pnpm exec wc-e2e test:e2e-dev",
|
||||
"test:unit": "./vendor/bin/phpunit -c ./phpunit.xml",
|
||||
"makepot": "composer run-script makepot",
|
||||
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.12.8",
|
||||
"@babel/core": "7.12.9",
|
||||
"@babel/preset-env": "7.12.7",
|
||||
"@babel/register": "7.12.1",
|
||||
"@typescript-eslint/eslint-plugin": "3.10.1",
|
||||
"@typescript-eslint/experimental-utils": "3.10.1",
|
||||
"@typescript-eslint/parser": "3.10.1",
|
||||
"@woocommerce/admin-e2e-tests": "workspace:*",
|
||||
"@woocommerce/api": "workspace:*",
|
||||
"@woocommerce/api-core-tests": "workspace:*",
|
||||
"@woocommerce/e2e-core-tests": "workspace:*",
|
||||
"@woocommerce/e2e-environment": "workspace:*",
|
||||
"@woocommerce/e2e-utils": "workspace:*",
|
||||
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
|
||||
"@wordpress/babel-preset-default": "3.0.2",
|
||||
"@wordpress/eslint-plugin": "7.3.0",
|
||||
"@wordpress/stylelint-config": "19.1.0",
|
||||
"allure-commandline": "^2.17.2",
|
||||
"autoprefixer": "9.8.6",
|
||||
"babel-eslint": "10.1.0",
|
||||
"chai": "4.2.0",
|
||||
"chai-as-promised": "7.1.1",
|
||||
"config": "3.3.3",
|
||||
"cross-env": "6.0.3",
|
||||
"deasync": "0.1.26",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-wpcalypso": "5.0.0",
|
||||
"eslint-plugin-jest": "23.20.0",
|
||||
"github-contributors-list": "https://github.com/woocommerce/github-contributors-list/tarball/master",
|
||||
"istanbul": "1.0.0-alpha.2",
|
||||
"jest": "^25.1.0",
|
||||
"mocha": "7.2.0",
|
||||
"prettier": "npm:wp-prettier@2.0.5",
|
||||
"stylelint": "^13.8.0",
|
||||
"typescript": "3.9.7",
|
||||
"webpack": "4.44.2",
|
||||
"webpack-cli": "3.3.12",
|
||||
"wp-textdomain": "1.0.1"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.php": [
|
||||
"php -d display_errors=1 -l",
|
||||
"composer run-script phpcs-pre-commit"
|
||||
],
|
||||
"!(*min).js": [
|
||||
"eslint --fix"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.13.1",
|
||||
"pnpm": "^6.24.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 0.1%",
|
||||
"ie 8",
|
||||
"ie 9"
|
||||
]
|
||||
"name": "woocommerce",
|
||||
"title": "WooCommerce",
|
||||
"version": "6.6.0",
|
||||
"homepage": "https://woocommerce.com/",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/woocommerce/woocommerce.git"
|
||||
},
|
||||
"license": "GPL-3.0+",
|
||||
"config": {
|
||||
"wp_org_slug": "woocommerce",
|
||||
"build_step": "pnpm run build:zip"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && pnpm nx build woocommerce-admin && pnpm nx build woocommerce-legacy-assets",
|
||||
"build:feature-config": "php bin/generate-feature-config.php",
|
||||
"build:zip": "./bin/build-zip.sh",
|
||||
"lint": "pnpm lint:js && pnpm lint:php",
|
||||
"lint:fix": "pnpm lint:js:fix && pnpm lint:php:fix",
|
||||
"lint:js": "eslint assets/js --ext=js",
|
||||
"lint:js:fix": "eslint assets/js --ext=js --fix",
|
||||
"lint:php": "composer run-script phpcs",
|
||||
"lint:php:fix": "composer run-script phpcbf",
|
||||
"docker:down": "pnpm exec wc-e2e docker:down",
|
||||
"docker:ssh": "pnpm exec wc-e2e docker:ssh",
|
||||
"docker:up": "pnpm exec wc-e2e docker:up",
|
||||
"test:api": "ALLURE_OUTPUT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
|
||||
"make:collection": "pnpm exec wc-api-tests make:collection",
|
||||
"test:e2e": "pnpm exec wc-e2e test:e2e",
|
||||
"test:e2e-debug": "pnpm exec wc-e2e test:e2e-debug",
|
||||
"test:e2e-dev": "pnpm exec wc-e2e test:e2e-dev",
|
||||
"test:unit": "./vendor/bin/phpunit -c ./phpunit.xml",
|
||||
"makepot": "composer run-script makepot",
|
||||
"packages:fix:textdomain": "node ./bin/package-update-textdomain.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.12.8",
|
||||
"@babel/core": "7.12.9",
|
||||
"@babel/preset-env": "7.12.7",
|
||||
"@babel/register": "7.12.1",
|
||||
"@typescript-eslint/eslint-plugin": "3.10.1",
|
||||
"@typescript-eslint/experimental-utils": "3.10.1",
|
||||
"@typescript-eslint/parser": "3.10.1",
|
||||
"@woocommerce/admin-e2e-tests": "workspace:*",
|
||||
"@woocommerce/api": "workspace:*",
|
||||
"@woocommerce/api-core-tests": "workspace:*",
|
||||
"@woocommerce/e2e-core-tests": "workspace:*",
|
||||
"@woocommerce/e2e-environment": "workspace:*",
|
||||
"@woocommerce/e2e-utils": "workspace:*",
|
||||
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
|
||||
"@wordpress/babel-preset-default": "3.0.2",
|
||||
"@woocommerce/eslint-plugin": "workspace:*",
|
||||
"@wordpress/stylelint-config": "19.1.0",
|
||||
"allure-commandline": "^2.17.2",
|
||||
"autoprefixer": "9.8.6",
|
||||
"babel-eslint": "10.1.0",
|
||||
"chai": "4.2.0",
|
||||
"chai-as-promised": "7.1.1",
|
||||
"config": "3.3.3",
|
||||
"cross-env": "6.0.3",
|
||||
"deasync": "0.1.26",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-wpcalypso": "5.0.0",
|
||||
"eslint-plugin-jest": "23.20.0",
|
||||
"github-contributors-list": "https://github.com/woocommerce/github-contributors-list/tarball/master",
|
||||
"istanbul": "1.0.0-alpha.2",
|
||||
"jest": "^25.1.0",
|
||||
"mocha": "7.2.0",
|
||||
"prettier": "npm:wp-prettier@2.0.5",
|
||||
"stylelint": "^13.8.0",
|
||||
"typescript": "3.9.7",
|
||||
"webpack": "4.44.2",
|
||||
"webpack-cli": "3.3.12",
|
||||
"wp-textdomain": "1.0.1"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.php": [
|
||||
"php -d display_errors=1 -l",
|
||||
"composer run-script phpcs-pre-commit"
|
||||
],
|
||||
"!(*min).js": [
|
||||
"eslint --fix"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.13.1",
|
||||
"pnpm": "^6.24.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 0.1%",
|
||||
"ie 8",
|
||||
"ie 9"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue