.eslintrc.js 596 B

1234567891011121314151617181920212223242526272829303132
  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. root: true,
  8. env: {
  9. es6: true,
  10. browser: true,
  11. node: true,
  12. },
  13. ecmaFeatures: {
  14. modules: true,
  15. },
  16. parserOptions: {
  17. ecmaVersion: 6,
  18. sourceType: 'module',
  19. },
  20. globals: {
  21. wx: true,
  22. App: true,
  23. Page: true,
  24. getCurrentPages: true,
  25. getApp: true,
  26. Component: true,
  27. requirePlugin: true,
  28. requireMiniProgram: true,
  29. },
  30. extends: ['eslint:recommended'],
  31. rules: {},
  32. }