How to enable eslint in Laravel vendor folder?
The main development takes place within vendor folder. Our project based on Laravel packages. I have enabled and configure eslint in the "root" project and it works fine. Currently work in PHPStorm and use eslint in it.
.eslintrc.json
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"vue",
"prettier"
],
"rules": {
"no-unused-vars": "warn"
}
}
.prettierrc.json
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
resources/js/components/App.vue - Fix ESlint Problems:

But in vendor package it doesn't.
vendor\testpackage\uitest01\recources\js\components\TestTwoComponent.vue - Fix ESlint Problems isn't presented:

Any ideas how enable it? Thank you!


{ "env": { "es6": true, "node": true }, "extends": [ "eslint:recommended", "plugin:vue/essential", "plugin:prettier/recommended" ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" }, "plugins": [ "vue", "prettier" ], "rules": { "no-unused-vars": "warn" } }Plus prettier: "trailingComma": "es5", "tabWidth": 4....eslintignoreor.gitignore? It should be. It's really not a good idea to modify files in the vendor directory. It will be overwritten any time you want to upgrade your dependencies. Rather fork the packages you want to modify..eslintignorebut I have.gitignore... I'm not sure that is connected with eslint. But it's good idea (generally), to do somthng with.gitignorein this case :) I'm working on my own package. Thank you )