.eslintrc 1.9 KB

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