Open imcuttle opened 6 years ago
.fecsrc
--- files:
src eslint: extends: "./.eslintrc" lesslint: hex-color: false block-indent: false
.eslintrc
{ "env": { "es6": true, "node": true, "browser": true }, "rules": { "fecs-imports-on-top": "off", "fecs-eol-alast": "off", "fecs-indent": "off", "fecs-valid-jsdoc": "off", "fecs-prefer-class": "off", "fecs-min-vars-per-destructure": "off", "max-len": "off", "no-console": "off", "comma-dangle": [ "error", { "arrays": "ignore", "objects": "ignore", "imports": "ignore", "exports": "ignore", "functions": "ignore" } ], "semi": "error", "camelcase": "off", "no-var": "off" }, "globals": { "__DEVELOPMENT__": false, "_i": false } }
command
fecs format index.js --fix --replace
index.js
export default class DemoView extends React.Component { static propTypes = { code: PropTypes.string, title: PropTypes.string, docData: PropTypes.object } static defaultProps = { code: '', docData: null } state = { highlighted: '' } }
export default class DemoView extends React.Component { static propTypes = { code: PropTypes.string, title: PropTypes.string, docData: PropTypes.object }; static defaultProps = { code: '', docData: null }; state = { highlighted: '' }; }
场景
.fecsrc
src eslint: extends: "./.eslintrc" lesslint: hex-color: false block-indent: false
.eslintrc
command
index.js
期望输出
index.js
实际输出
index.js