.eslintrc.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. module.exports = {
  2. "root": true,
  3. "env": {
  4. "node": true
  5. },
  6. "globals": {
  7. "uni": true,
  8. "uniCloud": true,
  9. "wx": true,
  10. "$DictCache": true
  11. },
  12. "extends": [
  13. "plugin:vue/strongly-recommended",
  14. "@vue/standard"
  15. ],
  16. "parserOptions": {
  17. "parser": "babel-eslint"
  18. },
  19. "rules": {
  20. "indent": ["error",4],
  21. 'space-before-function-paren': 0,
  22. "generator-star-spacing": "off",
  23. "no-mixed-operators": 0,
  24. "vue/max-attributes-per-line": [
  25. 2,
  26. {
  27. "singleline": 5,
  28. "multiline": {
  29. "max": 1,
  30. "allowFirstLine": false
  31. }
  32. }
  33. ],
  34. "vue/attribute-hyphenation": 0,
  35. "vue/html-self-closing": 0,
  36. "vue/component-name-in-template-casing": 0,
  37. "vue/html-closing-bracket-spacing": 0,
  38. "vue/singleline-html-element-content-newline": 0,
  39. "vue/no-unused-components": 0,
  40. "vue/multiline-html-element-content-newline": 0,
  41. "vue/no-use-v-if-with-v-for": 0,
  42. "vue/html-closing-bracket-newline": 0,
  43. "vue/no-parsing-error": 0,
  44. "no-console": 0,
  45. "no-tabs": 0,
  46. "indent_size": 4,
  47. "vue/html-indent": ["error", 4],
  48. "vue/script-indent": ["error", 4],
  49. "quotes": [
  50. 2,
  51. "single",
  52. {
  53. "avoidEscape": true,
  54. "allowTemplateLiterals": true
  55. }
  56. ],
  57. "semi": [
  58. 0,
  59. "never",
  60. {
  61. "beforeStatementContinuationChars": "never"
  62. }
  63. ],
  64. "no-delete-var": 2,
  65. "prefer-const": [
  66. 2,
  67. {
  68. "ignoreReadBeforeAssign": false
  69. }
  70. ]
  71. }
  72. }