.eslintrc.js 1.3 KB

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. parser: 'vue-eslint-parser',
  3. parserOptions: {
  4. parser: '@typescript-eslint/parser', // Specifies the ESLint parser
  5. ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
  6. sourceType: 'module', // Allows for the use of imports
  7. ecmaFeatures: {
  8. // tsx: true, // Allows for the parsing of JSX
  9. jsx: true,
  10. },
  11. },
  12. // settings: {
  13. // tsx: {
  14. // version: "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
  15. // }
  16. // },
  17. extends: [
  18. 'plugin:vue/vue3-recommended',
  19. 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
  20. 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
  21. 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
  22. ],
  23. rules: {
  24. // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
  25. // e.g. "@typescript-eslint/explicit-function-return-type": "off",
  26. },
  27. };