-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.js
More file actions
21 lines (21 loc) · 884 Bytes
/
.eslintrc.js
File metadata and controls
21 lines (21 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
extends: 'plugin:@wordpress/eslint-plugin/recommended',
globals: {
// WordPress / PHP-exported globals.
ckwc_integration: 'readonly',
ckwc_admin_refresh_resources: 'readonly',
ckwc_sync_past_orders: 'readonly',
},
rules: {
// Globals are not camelcase; in the future, we should update JS to meet camelcase standards.
camelcase: 'off',
// We don't yet manage dependencies, so some files report functions that are not defined, as they're in different files,
// despite being enqueued on the same page.
// In the future, we will use `wp-scripts build` to build single backend + frontend JS, which will fix this issue.
'no-undef': 'off',
// If debugging is enabled in the Plugin, we deliberately output to the console.
'no-console': 'off',
// We use a blocking confirm() dialog in the Sync Past Orders feature.
'no-alert': 'off',
},
};