-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi
I downloaded the extension, install it, configured it in VStudio to run on save:

then setup the .multilinterrc.json file as in your example:
{
"eslint": {
"enabled": true,
"additionalArguments": "",
"fileExtensions": "js"
}
}
Works great.
Searching linters to be used for file extension ".js"
Linters found to be used for file extension ".js" found: eslint,
Searching linter eslint in local mode
Searching linter eslint in directory "C:\c\cover\workhub"
Linter eslint found in path "C:\c\cover\workhub\node_modules\.bin"
About to lint by:
Linter: "eslint"
Current Directory: "C:\c\cover\workhub\"
Command line: "C:\c\cover\workhub\node_modules\.bin\eslint.cmd"
Arguments: ""nuxt.config.js" -f json"
I then try prettier, by changing the .multilinterrc.json but it never runs:
Searching linters to be used for file extension ".json"
No linters found to be used for file extension "json"
Odd. My package.json has:
"devDependencies": {
"@nuxtjs/eslint-config": "^1.0.1",
"@nuxtjs/eslint-module": "^1.0.0",
...
"eslint": "^6.1.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "^3.0.1",
"prettier": "2.3.1"
},
...
Note that per the docs at: https://prettier.io/docs/en/install.html the command is yarn prettier, so I modified your setup:
{
"prettier": {
"enabled": true,
"additionalArguments": "",
"fileExtensions": "js",
"executable": "yarn prettier"
}
}
Now it thinks prettier is configured, BUT still won't run. Debug output:
Formatter Name = prettier
Enabled = true
Executable = "yarn prettier"
Arguments = "--write "{filePath}""
StdInArguments = "--stdin-filepath "{filePath}""
AdditionalArguments = ""
InstallationType = "local"
... snip
Searching formatters to be used for file extension ".js"
Formatters found to be used for file extension ".js" found: prettier,
Searching linter prettier in local mode
Searching linter prettier in directory "C:\c\stuff\mycode"
Searching linter prettier in directory "C:\c\stuff"
Searching linter prettier in directory "C:\c"
Searching linter prettier in directory "C:\"
Linter prettier not found. Check your config.
Loading user defined tool configs...
Loading default tool configs from internal resources...
Default tool configs loaded from internal resources...
Searching config file in directory "C:\c\stuff\mycode"
Searching config file in directory "C:\c\stuff"
Searching config file in directory "C:\c"
Searching config file in directory "C:\"
Searching config file in directory "C:\Users\johng"
eslint works fine.
Any ideas? I'm sure it's some other parameter is different from the seeded setup files and our setup, which I thought was fairly off the shelf. Prettier is mandated by the org.
Metadata
Metadata
Assignees
Labels
No labels