Browse Source

Fix eslint error

pull/13069/head
ztplz 6 years ago
committed by 偏右
parent
commit
d1e8dd7504
  1. 1
      index-with-locales.js
  2. 4
      index.js

1
index-with-locales.js

@ -1,4 +1,5 @@
const antd = require('./components'); const antd = require('./components');
const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/); const req = require.context('./components', true, /^\.\/locale-provider\/.+_.+\.tsx$/);
antd.locales = {}; antd.locales = {};

4
index.js

@ -1,7 +1,7 @@
/* eslint no-console:0 */ /* eslint no-console:0 */
function camelCase(name) { function camelCase(name) {
return name.charAt(0).toUpperCase() + return name.charAt(0).toUpperCase()
name.slice(1).replace(/-(\w)/g, (m, n) => { + name.slice(1).replace(/-(\w)/g, (m, n) => {
return n.toUpperCase(); return n.toUpperCase();
}); });
} }

Loading…
Cancel
Save