error Unnecessarily quoted property 'xxx' found quote-props

表示 key没必要加引号

Failed to compile.

./src/components/Home.vue

Module Error (from ./node_modules/eslint-loader/index.js):

D:\vueE-commerce\vue_shop\src\components\Home.vue

51:9 error Unnecessarily quoted property '125' found quote-props

52:9 error Unnecessarily quoted property '103' found quote-props

53:9 error Unnecessarily quoted property '101' found quote-props

54:9 error Unnecessarily quoted property '102' found quote-props

55:9 error Unnecessarily quoted property '145' found quote-props

✖ 5 problems (5 errors, 0 warnings)

5 errors and 0 warnings potentially fixable with the `--fix` option.

      iconsObj: {
        '125': 'iconfont icon-user',
        '103': 'iconfont icon-tijikongjian',
        '101': 'iconfont icon-shangpin',
        '102': 'iconfont icon-danju',
        '145': 'iconfont icon-baobiao'
      }

将上面的iconsObj 里的key的引号去掉,即可

      iconsObj: {
        125: 'iconfont icon-user',
        103: 'iconfont icon-tijikongjian',
        101: 'iconfont icon-shangpin',
        102: 'iconfont icon-danju',
        145: 'iconfont icon-baobiao'
      }