Uniapp ESLint error: ‘uni‘ is not defined no-undef [How to Solve]

Uniapp ESLint error: ‘uni‘ is not defined no-undef

Solution:

.eslintrc.js Add

  globals: {
    uni: true, 
    wx: true
  }

Read More: