mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🔧 Add missing config to eslintrc
- env.browser: Linter recognizes browser elements, like `HTMLElement` - globals.jQuery: Library is present on all pages
This commit is contained in:
parent
9f39a58f07
commit
4a0e410f52
2 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,11 @@
|
|||
{
|
||||
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"wc": true
|
||||
"wc": true,
|
||||
"jQuery": "readonly"
|
||||
},
|
||||
"rules": {
|
||||
"no-console": ["error", { "allow": ["warn", "error"] }]
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
/* eslint-env browser */
|
||||
/* global jQuery */
|
||||
|
||||
/* global ApplePaySession */
|
||||
/* global PayPalCommerceGateway */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue