eslint-config-xo-vue
eslint-config-xo-vue copied to clipboard
Missing `unicorn/better-regex`
I've installed eslint-config-xo-vue to be used with XO, just like in the documentation. XO required some more plugin libraries like eslint-plugin-node, eslint-plugin-eslint-comments, eslint-plugin-ava and eslint-config-xo. I'm not sure why this is required but when I installed them, XO runs.
My package.json dev dependencies object now looks like this:
"devDependencies": {
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-router": "~4.3.0",
"@vue/cli-service": "~4.3.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-config-xo": "^0.31.0",
"eslint-config-xo-vue": "^3.1.17",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-ava": "^10.3.1",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11",
"xo": "^0.32.0"
}
Don't mind the eslint and @vue packages, I'm currently in the transition from Vue linters to XO.
My problem is that when I run XO to lint the project, it shows an error:
Definition for rule unicorn/better-regex was not found. unicorn/better-regex
I belive this is because eslint-config-xo-vue uses eslint-plugin-unicorn version 16.1.1 while in version 17.0.0 the 'unicorn/better-regex' rule was added. I think updating the dependency will solve this issue.