Comply with new eslint rules
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import $ from 'jquery';
|
||||
|
||||
wp.customize('blogname', (value) => {
|
||||
value.bind((to) => $('.brand').text(to));
|
||||
value.bind(to => $('.brand').text(to));
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// the most terrible camelizer on the internet, guaranteed!
|
||||
export default (str) => `${str.charAt(0).toLowerCase()}${str.replace(/[\W_]/g, '|').split('|')
|
||||
export default str => `${str.charAt(0).toLowerCase()}${str.replace(/[\W_]/g, '|').split('|')
|
||||
.map(part => `${part.charAt(0).toUpperCase()}${part.slice(1)}`)
|
||||
.join('')
|
||||
.slice(1)}`;
|
||||
|
||||
Reference in New Issue
Block a user