eslint-plugin-mpx 0.2.26 → 0.2.27

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.
@@ -11,6 +11,7 @@
11
11
  const utils = require('../utils')
12
12
  function commonFunction(value, list) {
13
13
  const props = value.properties
14
+ if (!props) return false
14
15
  for (const item of props) {
15
16
  if (
16
17
  item.type === 'SpreadElement' &&
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "eslint-plugin-mpx",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
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-setup-define-expose.js\" --reporter dot",
10
+ "test:only": "mocha \"tests/lib/rules/valid-initdata.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",