.eslintrc.js 587 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Eslint config file
  3. * Documentation: https://eslint.org/docs/user-guide/configuring/
  4. * Install the Eslint extension before using this feature.
  5. */
  6. module.exports = {
  7. env: {
  8. es6: true,
  9. browser: true,
  10. node: true,
  11. },
  12. ecmaFeatures: {
  13. modules: true,
  14. },
  15. parserOptions: {
  16. ecmaVersion: 2018,
  17. sourceType: 'module',
  18. },
  19. globals: {
  20. wx: true,
  21. App: true,
  22. Page: true,
  23. getCurrentPages: true,
  24. getApp: true,
  25. Component: true,
  26. requirePlugin: true,
  27. requireMiniProgram: true,
  28. },
  29. // extends: 'eslint:recommended',
  30. rules: {},
  31. }