.eslintrc 894 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. // 请不需要修改 extends
  3. "extends": ["airbnb-base", "appx"],
  4. // 根据需要修改 rules,详见 http://eslint.org/docs/rules/
  5. // 推荐的编码风格 https://github.com/airbnb/javascript
  6. "rules": {
  7. "arrow-body-style": [0],
  8. "class-methods-use-this": [0],
  9. "consistent-return": [0],
  10. "generator-star-spacing": [0],
  11. "global-require": [0],
  12. "import/extensions": [0],
  13. "import/first": [0],
  14. "import/no-extraneous-dependencies": [0],
  15. "import/prefer-default-export": [0],
  16. "import/no-unresolved": [0],
  17. "linebreak-style": [0],
  18. "no-bitwise": [0],
  19. "no-cond-assign": [0],
  20. "no-console": [0],
  21. "no-else-return": [0],
  22. "no-nested-ternary": [0],
  23. "no-restricted-syntax": [0],
  24. "no-trailing-spaces": [0],
  25. "no-use-before-define": [0],
  26. "no-useless-escape": [0],
  27. "prefer-template": [0],
  28. "require-yield": [1]
  29. }
  30. }