🔧 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:
Philipp Stracker 2024-07-24 18:55:22 +02:00
parent 9f39a58f07
commit 4a0e410f52
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -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"] }]

View file

@ -1,6 +1,3 @@
/* eslint-env browser */
/* global jQuery */
/* global ApplePaySession */
/* global PayPalCommerceGateway */