1
0

.eslintrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "parser": "babel-eslint",
  3. "extends": ["standard-react", "airbnb-base"],
  4. "plugins": ["react", "import"],
  5. "settings": {
  6. "import/resolver": {
  7. "alias": {
  8. "map": [["@src", "./src"], ["@project", "./project/admin"], ["@components", "./components"]]
  9. }
  10. }
  11. },
  12. "parserOptions": {
  13. "ecmaVersion": 7,
  14. "sourceType": "module"
  15. },
  16. "env": {
  17. "browser": true,
  18. "node": true,
  19. "es6": true
  20. },
  21. "globals": {
  22. "__DEV__": false,
  23. "__PROD__": false,
  24. "__DEBUG__": false,
  25. "__API_PATH__": false,
  26. "__BASE_NAME__": false,
  27. "changeParams": false,
  28. "linkTo": false,
  29. "replaceLink": false,
  30. "goBack": false,
  31. "toLink": false,
  32. "openLink": false,
  33. "WxLogin": false,
  34. "WeixinJSBridge": false,
  35. "sha1": false,
  36. "wx": false,
  37. "CKEDITOR": false,
  38. "Masonry": false,
  39. "__PcUrl__": false,
  40. "__H5Url__": false,
  41. "__WechatPcAppId__": false,
  42. "__WechatH5AppId__": false
  43. },
  44. "rules": {
  45. "camelcase": "off",
  46. "arrow-parens": "off",
  47. "arrow-body-style": "off",
  48. "func-names": "off",
  49. "no-continue": "off",
  50. "object-curly-newline": "off",
  51. "no-extend-native": "off",
  52. "no-underscore-dangle": "off",
  53. "no-nested-ternary": "off",
  54. "no-param-reassign": "off",
  55. "space-before-function-paren": "off",
  56. "generator-star-spacing": "off",
  57. "max-len": "off",
  58. "no-console": "off",
  59. "no-bitwise": "off",
  60. "no-multi-assign": "off",
  61. "linebreak-style": "off",
  62. "class-methods-use-this": "off",
  63. "react/prop-types": "off",
  64. "global-require": "off",
  65. "import/no-extraneous-dependencies": "off",
  66. "import/no-named-as-default": "off",
  67. "operator-linebreak": "off"
  68. }
  69. }