ChocPanda / eslint-config-xo-vue

ESLint shareable config for Vue to be used with eslint-config-xo https://github.com/xojs/xo
MIT License
35 stars 5 forks source link

Configuration for rule "unicorn/prevent-abbreviations" is invalid #115

Open younho9 opened 2 years ago

younho9 commented 2 years ago

My XO Configuration.

"xo": {
    "prettier": true,
    "envs": [
      "browser",
      "node"
    ],
    "extends": [
      "@nuxtjs/eslint-config-typescript",
      "plugin:nuxt/recommended",
      "xo-vue"
    ],
    "extensions": [
      ".js",
      ".ts",
      ".vue"
    ]
  },

There is some error with unicorn/prevent-abbreviations

Error: BaseConfig » /node_modules/eslint-config-xo-vue/index.js:
        Configuration for rule "unicorn/prevent-abbreviations" is invalid:
        Value {"whitelist":{"props":true,"assetsDir":true}} should NOT have additional properties.

It seems that the whitelist has been changed to the name allowlist.