base.js 474 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. parser: require.resolve('vue-eslint-parser'),
  3. parserOptions: {
  4. ecmaVersion: 2018,
  5. sourceType: 'module',
  6. ecmaFeatures: {
  7. jsx: true
  8. }
  9. },
  10. env: {
  11. browser: true,
  12. es6: true
  13. },
  14. plugins: [
  15. 'nuxt'
  16. ],
  17. rules: {
  18. 'nuxt/no-env-in-context': 'error',
  19. 'nuxt/no-env-in-hooks': 'error',
  20. 'nuxt/no-globals-in-created': 'error',
  21. 'nuxt/no-this-in-fetch-data': 'error',
  22. 'nuxt/no-cjs-in-config': 'error'
  23. }
  24. }