.eslintrc.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. module.exports = {
  2. "globals": {
  3. "$": true,
  4. "byuiBaseUrl": true,
  5. "ckplayer": true,
  6. "byui": true,
  7. "mapv": true,
  8. "maptalks": true,
  9. "echarts": true
  10. },
  11. root: true,
  12. parserOptions: {
  13. parser: 'babel-eslint',
  14. sourceType: 'module'
  15. },
  16. env: {
  17. browser: true,
  18. node: true,
  19. es6: true,
  20. jquery: true
  21. },
  22. extends: ['plugin:vue/recommended', 'eslint:recommended'],
  23. "parserOptions": {
  24. "parser": "babel-eslint"
  25. },
  26. "rules": {
  27. "vue/html-indent": 0,
  28. "vue/this-in-template": 0,
  29. "vue/no-template-shadow": 0,
  30. "use-isnan": 0,
  31. "vue/no-unused-vars": 0, //禁止未使用过的变量
  32. "no-mixed-spaces-and-tabs": 0, //禁止使用 空格 和 tab 混合缩进
  33. "no-multiple-empty-lines": 0, // 不允许多个空行
  34. "space-in-parens": 0,
  35. "no-irregular-whitespace": 0, //空格报错检查
  36. "generator-star-spacing": 0,
  37. "no-mixed-operators": 0,
  38. "vue/max-attributes-per-line": 0,
  39. "no-debugger": 0, //debugger;
  40. "new-cap": 0, //函数大小写;
  41. "indent": 0, //缩进一致
  42. "no-unused-vars": 0, //允许存在未使用的变量或函数参数;
  43. "space-before-function-paren": 0, //括号前后空格不需一致;
  44. "key-spacing": 0,
  45. "vue/no-reserved-keys": 0,
  46. "vue/attribute-hyphenation": 0,
  47. "vue/html-self-closing": 0,
  48. "vue/component-name-in-template-casing": 0,
  49. "vue/html-closing-bracket-spacing": 0,
  50. "vue/singleline-html-element-content-newline": 0,
  51. "vue/no-unused-components": 0,
  52. "vue/multiline-html-element-content-newline": 0,
  53. "vue/no-use-v-if-with-v-for": 0,
  54. "vue/html-closing-bracket-newline": 0,
  55. "vue/no-parsing-error": 0,
  56. "no-console": 0,
  57. "no-tabs": 0,
  58. "no-multi-spaces": 0,
  59. "properties": 0,
  60. "quotes": [
  61. 2,
  62. "single",
  63. {
  64. "avoidEscape": true,
  65. "allowTemplateLiterals": true
  66. }
  67. ],
  68. "semi": [
  69. 0,
  70. "never",
  71. {
  72. "beforeStatementContinuationChars": "never"
  73. }
  74. ],
  75. "no-delete-var": 2,
  76. "prefer-const": [
  77. 2,
  78. {
  79. "ignoreReadBeforeAssign": false
  80. }
  81. ]
  82. }
  83. }