How to configure vite vue3 to use eslint-plugin-project-structure #44
-
As mentioned in the title, when my project is using the vue framework, languageOptions in the eslint.config.js file is set to {parser: projectStructureParser} will See a bunch of Use the latest vue-eslint-parser. See also https://eslint.vuejs.org/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error. mistake. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi, @hjyyang,
{
files: ["**"], // Check all file extensions.
ignores: ["projectStructure.cache.json"],
languageOptions: { parser: projectStructureParser },
plugins: {
"project-structure": projectStructurePlugin,
},
settings: {
// If you want to change the location of generating the projectStructure.cache.json file.
// "project-structure/cache-location": "./src/cats",
},
rules: {
// If you have many rules in a separate file.
"project-structure/folder-structure": ["error", folderStructureConfig],
// If you have only a few rules.
"project-structure/folder-structure": [
"error",
{
// Config
},
],
},
},
{
files: ["*.someExtension"],
languageOptions: { parser: someDefaultParser},
plugins: {
"x": y,
},
rules: {
//...
},
}, |
Beta Was this translation helpful? Give feedback.
Try this: