eslint-plugin-mpx 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -231,7 +231,9 @@ module.exports = {
231
231
  hasInitData = 2
232
232
  }
233
233
  } else {
234
- hasInitData = 2
234
+ if (hasInitData === 0) {
235
+ hasInitData = 2
236
+ }
235
237
  }
236
238
  })
237
239
  }
@@ -106,6 +106,9 @@ module.exports = {
106
106
 
107
107
  const globalScope = context.getSourceCode().scopeManager.globalScope
108
108
  if (globalScope) {
109
+ for (const variable of globalScope.variables) {
110
+ exposeSet.add(variable.name)
111
+ }
109
112
  const moduleScope = globalScope.childScopes.find(
110
113
  (scope) => scope.type === 'module'
111
114
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-mpx",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Official ESLint plugin for Mpx.js",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
package/lib/.DS_Store DELETED
Binary file