私信发送成功
Watch Star Fork

easysoft / xuanxuanNodeJS

喧喧是一个轻量级的企业聊天软件。由然之协同办公团队开发。 http://xuan.im
克隆/下载
一键复制 编辑 原始数据 按行查看 历史
.eslintrc 2.34 KB Catouse 提交于 2017-11-02 13:31 . * change webpack files structure.
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true // enable JSX
}
},
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
"globals": {
"DEBUG": true,
"Pace": true
},
"rules": {
"arrow-parens": ["off"],
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"no-use-before-define": "off",
"no-multi-assign": "off",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"react/sort-comp": ["error", {
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
}],
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
"object-curly-spacing": ["error", "never"],
"indent": ["error", 4],
"no-unused-vars": "warn",
"no-param-reassign": "off",
"max-len": "off",
"keyword-spacing": "warn",
"default-case": "off",
"prefer-const": "warn",
"react/forbid-prop-types": "off",
"block-spacing": ["error", "never"],
"jsx-a11y/no-static-element-interactions": "off",
"no-plusplus": "warn",
"no-else-return": "warn",
"no-nested-ternary": "warn",
"no-mixed-operators": "warn",
"no-underscore-dangle": "off",
"react/jsx-indent": ["warn", 4],
"react/jsx-indent-props": ["warn", 4],
"prefer-template": "warn",
"no-shadow": "warn",
"promise/always-return": "warn",
"arrow-body-style": "warn",
"import/no-unresolved": "warn",
"import/extensions": "off",
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"compat/compat": "warn",
"class-methods-use-this": "warn",
"no-lonely-if": "warn",
"react/jsx-no-target-blank": "warn"
},
"plugins": [
"import",
"promise",
"compat",
"react"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.development.js"
},
"babel-module": {
"alias": {
"Platform": "platform/electron",
"Config": "config/index.js"
}
}
}
}
}

评论 ( 0 )

你可以在登录后,对此项目发表评论

6_float_left_people 6_float_left_close