https://github.com/xyzdata/git/issues/3
# todo
ant design
https://ant.design/docs/react/introduce-cn
// 连字符转驼峰
String.prototype.hyphenToHump = function() {
return this.replace(/-(\w)/g, function() {
return arguments[1].toUpperCase()
});
};
// 驼峰转连字符
String.prototype.humpToHyphen = function() {
return this.replace(/([A-Z])/g, '-$1').toLowerCase();
};
jsx-eslint/eslint-plugin-react#447
// redux constants
export const PAGE_SIZE = 3;
// [eslint] Parsing error: The keyword 'export' is reserved
.eslintrc
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"comma-dangle": 0
},
"settings": {
"react": {
"pragma": "React",
"version": "15.4.2"
}
}
}
https://ant.design/components/form-cn/#components-form-demo-layout
inline
// Form
mode="inine" ???
@
占位符。https://github.com/nuysoft/Mock/wiki/Syntax-Specification