- Notifications
You must be signed in to change notification settings - Fork479
Closed
Description
The module generates eslint config with the old commonJS syntax
When you init a new project:
npm create vite@latest
And then setup theVue / configure with vue-create
template
Instead of generating modern.js
config file with modernexport default
syntax, the module creates commonJS./eslintrc.cjs
file with the old commonJSmodule.exports = {}
syntax, with arequire()
monkey patch at the top:
/* eslint-env node */require("@rushstack/eslint-patch/modern-module-resolution")module.exports={root:true,'extends':['plugin:vue/vue3-essential','eslint:recommended','@vue/eslint-config-typescript'],parserOptions:{ecmaVersion:'latest'}}
It doesn't make any sense and it's not clear why it does that. Please shine some light on this issue
Metadata
Metadata
Assignees
Labels
No labels