Fix ESLint global variable errors
Add WordPress global variables to ESLint config: - jQuery (WordPress dependency) - wpstData (localized script data) - wpstModalData (modal script data) - wp (WordPress JS API) 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
@@ -28,6 +28,10 @@ module.exports = {
|
||||
beforeEach: 'readonly',
|
||||
afterEach: 'readonly',
|
||||
before: 'readonly',
|
||||
after: 'readonly'
|
||||
after: 'readonly',
|
||||
jQuery: 'readonly',
|
||||
wpstData: 'readonly',
|
||||
wpstModalData: 'readonly',
|
||||
wp: 'readonly'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user