.eslintrc.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es2021: true,
  5. node: true,
  6. es6: true,
  7. jquery: true
  8. },
  9. extends: [
  10. 'eslint:recommended',
  11. 'plugin:@typescript-eslint/recommended',
  12. 'plugin:vue/vue3-essential',
  13. 'prettier',
  14. 'plugin:prettier/recommended'
  15. ],
  16. overrides: [],
  17. parser: 'vue-eslint-parser',
  18. parserOptions: {
  19. ecmaVersion: 12,
  20. parser: '@typescript-eslint/parser',
  21. sourceType: 'module'
  22. },
  23. plugins: ['vue', '@typescript-eslint'],
  24. rules: {
  25. 'linebreak-style': ['off', 'windows'],
  26. quotes: ['error', 'single'],
  27. semi: ['error', 'never'],
  28. indent: 'off',
  29. 'vue/no-unused-components': 1,
  30. '@typescript-eslint/no-explicit-any': 0,
  31. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 1,
  32. 'no-const-assign': 2,
  33. '@typescript-eslint/no-var-requires': ['error'],
  34. 'no-mixed-spaces-and-tabs': 2,
  35. 'no-multi-spaces': 2,
  36. 'no-trailing-spaces': 2,
  37. 'no-spaced-func': 2,
  38. 'no-whitespace-before-property': 2,
  39. 'spaced-comment': [
  40. 2,
  41. 'always',
  42. {
  43. markers: [
  44. 'global',
  45. 'globals',
  46. 'eslint',
  47. 'eslint-disable',
  48. '*package',
  49. '!',
  50. ','
  51. ]
  52. }
  53. ],
  54. 'no-unused-vars': 'off',
  55. 'vue/multi-word-component-names': 0
  56. },
  57. globals: {
  58. _: true,
  59. Cesium: true,
  60. Glodon: true
  61. }
  62. }