eslint-plugin-mpx 0.2.21 → 0.2.23

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.
@@ -244,8 +244,12 @@ module.exports = {
244
244
  }
245
245
  }
246
246
 
247
- // @ts-ignore
248
- if (parent.callee.name === 'defineProps') {
247
+ if (
248
+ // @ts-ignore
249
+ parent.callee.name === 'defineProps' ||
250
+ // @ts-ignore
251
+ parent.callee.name === 'withDefaults'
252
+ ) {
249
253
  handleProperties(node.properties, exposeSet, scriptVariableNames)
250
254
  }
251
255
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "eslint-plugin-mpx",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "Official ESLint plugin for Mpx.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "scripts": {
8
8
  "start": "npm run test:base -- --watch --growl",
9
9
  "test": "mocha \"tests/lib/**/*.js\" --reporter dot",
10
- "test:only": "mocha \"tests/lib/rules/valid-properties.js\" --reporter dot",
10
+ "test:only": "mocha \"tests/lib/rules/valid-setup-define-expose.js\" --reporter dot",
11
11
  "debug": "mocha --inspect \"tests/lib/**/*.js\" --reporter dot --timeout 60000",
12
12
  "cover": "npm run cover:test && npm run cover:report",
13
13
  "cover:test": "nyc npm run test -- --timeout 60000",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "eslint-utils": "^2.1.0",
53
- "mpx-eslint-parser": "^0.0.13",
53
+ "mpx-eslint-parser": "^0.0.14",
54
54
  "natural-compare": "^1.4.0",
55
55
  "semver": "^7.3.2"
56
56
  },