.eslintrc.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. module.exports = {
  18. parser: 'vue-eslint-parser',
  19. parserOptions: {
  20. parser: '@typescript-eslint/parser',
  21. ecmaVersion: 2021,
  22. sourceType: 'module',
  23. ecmaFeatures: {
  24. jsx: true
  25. }
  26. },
  27. extends: [
  28. 'plugin:vue/vue3-recommended',
  29. 'plugin:@typescript-eslint/recommended',
  30. 'plugin:prettier/recommended',
  31. 'prettier'
  32. ],
  33. rules: {
  34. '@typescript-eslint/ban-ts-ignore': 'off',
  35. '@typescript-eslint/explicit-function-return-type': 'off',
  36. '@typescript-eslint/no-explicit-any': 'off',
  37. '@typescript-eslint/no-var-requires': 'off',
  38. '@typescript-eslint/no-empty-function': 'off',
  39. '@typescript-eslint/no-empty-interface': 'off',
  40. 'vue/custom-event-name-casing': 'off',
  41. 'no-use-before-define': 'off',
  42. '@typescript-eslint/no-use-before-define': 'off',
  43. '@typescript-eslint/ban-ts-comment': 'off',
  44. '@typescript-eslint/ban-types': 'off',
  45. '@typescript-eslint/no-non-null-assertion': 'off',
  46. '@typescript-eslint/explicit-module-boundary-types': 'off',
  47. '@typescript-eslint/no-unused-vars': [
  48. 'error',
  49. {
  50. argsIgnorePattern: '^(unused|ignored).*$',
  51. varsIgnorePattern: '^(unused|ignored).*$'
  52. }
  53. ],
  54. 'no-unused-vars': [
  55. 'error',
  56. {
  57. argsIgnorePattern: '^(unused|ignored).*$',
  58. varsIgnorePattern: '^(unused|ignored).*$'
  59. }
  60. ],
  61. 'space-before-function-paren': 'off',
  62. quotes: ['error', 'single'],
  63. 'comma-dangle': ['error', 'never'],
  64. 'vue/multi-word-component-names': 'off',
  65. 'vue/component-definition-name-casing': 'off',
  66. 'vue/require-valid-default-prop': 'off',
  67. 'no-console': 'error',
  68. 'vue/no-setup-props-destructure': 'off'
  69. }
  70. }