Skip to content

Commit

Permalink
Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ztplz authored and afc163 committed Nov 16, 2018
1 parent 76bd50b commit d1e8dd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions index-with-locales.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const antd = require('./components');

const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/);

antd.locales = {};
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint no-console:0 */
function camelCase(name) {
return name.charAt(0).toUpperCase() +
name.slice(1).replace(/-(\w)/g, (m, n) => {
return name.charAt(0).toUpperCase()
+ name.slice(1).replace(/-(\w)/g, (m, n) => {
return n.toUpperCase();
});
}
Expand Down

0 comments on commit d1e8dd7

Please sign in to comment.