prettier-vscode is not using my project's configuration or prettier version
See original GitHub issueSummary
Although I have a 1.x version of Prettier installed in a project along with a prettierrc config file, VS Code Prettier is still seems to use the latest version of Prettier which causes unexpected code changes, and for example CI breaks.
Even despite seeing this in the output,
["INFO" - 10:08:41 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
it is doing something else.
Github Repository to Reproduce Issue
Link to a Github repo that can be used to reproduce the issue.
Steps To Reproduce:
- Open the project in VS Code
npm install
- Reload just to make sure we start fresh
- Notice when you modify some files and save (with format-on-save using Prettier enabled) that it will modify the code.
- Notice that running
npm run lint -- --fix
works as expected using the project’s configuration.
Expected result
VS Code should not be changing format files, as per the project configuration.
Actual result
Files changed
Additional information
VS Code Version:
Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:39:46.686Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.15.5-76051505-generic
Prettier Extension Version:
["INFO" - 10:02:38 PM] Extension Version: 9.0.0.
OS and version:
Pop_os! latest
Prettier Log Output
output
["INFO" - 10:02:38 PM] Extension Name: esbenp.prettier-vscode.
["INFO" - 10:02:38 PM] Extension Version: 9.0.0.
["INFO" - 10:08:41 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/index.html
["INFO" - 10:08:41 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:08:41 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:08:41 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:08:41 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:08:41 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:08:42 PM] Formatting completed in 0.14ms.
["INFO" - 10:09:19 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/index.html
["INFO" - 10:09:19 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:09:19 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:09:19 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:09:19 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:09:19 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:09:19 PM] Formatting completed in 0.061ms.
["INFO" - 10:09:57 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:09:57 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:09:57 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:09:57 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:09:57 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:09:57 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:09:57 PM] Formatting completed in 0.045ms.
["INFO" - 10:10:03 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:10:03 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:10:03 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:10:03 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:10:03 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:10:03 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:10:03 PM] Formatting completed in 0.032ms.
["INFO" - 10:10:57 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:10:57 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:10:57 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:10:57 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:10:57 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:10:57 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:10:57 PM] Formatting completed in 0.033ms.
["INFO" - 10:11:03 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/index.html
["INFO" - 10:11:03 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:11:03 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:11:03 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:11:03 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:11:03 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:11:03 PM] Formatting completed in 0.038ms.
["INFO" - 10:11:04 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/index.html
["INFO" - 10:11:04 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:11:04 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:11:04 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:11:04 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:11:04 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:11:04 PM] Formatting completed in 0.039ms.
["INFO" - 10:11:06 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:11:06 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:11:06 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:11:06 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:11:06 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:11:06 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:11:06 PM] Formatting completed in 0.039ms.
["INFO" - 10:11:41 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:11:41 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:11:41 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:11:41 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:11:41 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:11:41 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:11:41 PM] Formatting completed in 0.026ms.
["INFO" - 10:11:59 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 10:11:59 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:11:59 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:11:59 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 10:11:59 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:11:59 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:11:59 PM] Formatting completed in 0.029ms.
["INFO" - 10:34:12 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:34:12 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:34:12 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:34:12 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:34:12 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:34:12 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:34:12 PM] Formatting completed in 0.074ms.
["INFO" - 10:39:49 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/render/index.js
["INFO" - 10:39:49 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:39:49 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:39:49 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:39:49 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:39:49 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/render/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:39:49 PM] Formatting completed in 0.069ms.
["INFO" - 10:43:17 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:43:17 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:43:17 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:43:17 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:43:17 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:43:17 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:43:17 PM] Formatting completed in 0.053ms.
["INFO" - 10:48:40 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:48:40 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:48:40 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:48:40 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:48:40 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:48:40 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:48:40 PM] Formatting completed in 0.052ms.
["INFO" - 10:49:12 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:49:12 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:49:12 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:49:12 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:49:12 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:49:12 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:49:12 PM] Formatting completed in 0.041ms.
["INFO" - 10:49:24 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:49:24 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:49:24 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:49:24 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:49:24 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:49:24 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:49:24 PM] Formatting completed in 0.029ms.
["INFO" - 10:52:22 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/ajax.js
["INFO" - 10:52:22 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:52:22 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:52:22 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:52:22 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:52:22 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/ajax.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:52:22 PM] Formatting completed in 0.02ms.
["INFO" - 10:55:18 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:55:18 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:55:18 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:55:18 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:55:18 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:55:18 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:55:18 PM] Formatting completed in 0.115ms.
["INFO" - 10:57:11 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:57:11 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:57:11 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:57:11 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:57:11 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:57:11 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:57:11 PM] Formatting completed in 0.046ms.
["INFO" - 10:58:01 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:58:01 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:58:01 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:58:01 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:58:01 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:58:01 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:58:01 PM] Formatting completed in 0.058ms.
["INFO" - 10:59:51 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:59:51 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:59:51 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:59:51 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:59:51 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:59:51 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["ERROR" - 10:59:51 PM] Error formatting document.
["ERROR" - 10:59:51 PM] Unexpected token (132:29)
130 |
131 | // Load nav
> 132 | if (loadNavbar && !()) {
| ^
133 | if (onlyCover && !loadNavbarOnCover) {
134 |
135 | }
SyntaxError: Unexpected token (132:29)
130 |
131 | // Load nav
> 132 | if (loadNavbar && !()) {
| ^
133 | if (onlyCover && !loadNavbarOnCover) {
134 |
135 | }
at t (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/parser-babel.js:1:379)
at Object.parse (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/parser-babel.js:1:291160)
at Object.parse (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:13575:19)
at coreFormat (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:14851:25)
at format (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:15073:14)
at formatWithCursor (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:15090:12)
at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:54691:12
at Object.Success [as format] (/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/node_modules/prettier/index.js:54711:12)
at t.default.<anonymous> (/home/trusktr/src/trusktr+dotfiles/home/.vscode/extensions/esbenp.prettier-vscode-9.0.0/src/PrettierEditService.ts:434:45)
at Generator.next (<anonymous>)
at s (/home/trusktr/src/trusktr+dotfiles/home/.vscode/extensions/esbenp.prettier-vscode-9.0.0/dist/extension.js:1:7872)
["INFO" - 10:59:51 PM] Formatting completed in 0.08ms.
["INFO" - 10:59:58 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 10:59:58 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 10:59:58 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 10:59:58 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 10:59:58 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 10:59:58 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 10:59:59 PM] Formatting completed in 0.044ms.
["INFO" - 11:01:19 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:01:19 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:01:19 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:01:19 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:01:19 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:01:19 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:01:19 PM] Formatting completed in 0.035ms.
["INFO" - 11:01:26 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:01:26 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:01:26 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:01:26 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:01:26 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:01:26 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:01:26 PM] Formatting completed in 0.036ms.
["INFO" - 11:01:30 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:01:30 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:01:30 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:01:30 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:01:30 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:01:30 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:01:30 PM] Formatting completed in 0.042ms.
["INFO" - 11:01:35 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:01:35 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:01:35 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:01:35 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:01:35 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:01:35 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:01:35 PM] Formatting completed in 0.032ms.
["INFO" - 11:02:06 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:02:06 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:02:06 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:02:06 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:02:06 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:02:06 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:02:06 PM] Formatting completed in 0.029ms.
["INFO" - 11:03:47 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:03:47 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:03:47 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:03:47 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:03:47 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:03:47 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:03:47 PM] Formatting completed in 0.029ms.
["INFO" - 11:04:40 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 11:04:40 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:04:40 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:04:40 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 11:04:40 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:04:40 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:04:41 PM] Formatting completed in 0.059ms.
["INFO" - 11:04:59 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 11:04:59 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:04:59 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:04:59 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 11:04:59 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:04:59 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:04:59 PM] Formatting completed in 0.047ms.
["INFO" - 11:05:30 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:05:30 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:05:30 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:05:30 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:05:30 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:05:30 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:05:30 PM] Formatting completed in 0.03ms.
["INFO" - 11:10:14 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 11:10:14 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:10:14 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:10:14 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 11:10:14 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:10:14 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:10:14 PM] Formatting completed in 0.039ms.
["INFO" - 11:10:28 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 11:10:28 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:10:28 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:10:28 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 11:10:28 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:10:28 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:10:28 PM] Formatting completed in 0.04ms.
["INFO" - 11:15:50 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/configuration.md
["INFO" - 11:15:50 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:15:50 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:15:50 PM] File Info:
{
"ignored": false,
"inferredParser": "markdown"
}
["INFO" - 11:15:50 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:15:50 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/configuration.md",
"parser": "markdown",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:15:50 PM] Formatting completed in 0.2ms.
["INFO" - 11:17:51 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/configuration.md
["INFO" - 11:17:51 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:17:51 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:17:51 PM] File Info:
{
"ignored": false,
"inferredParser": "markdown"
}
["INFO" - 11:17:51 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:17:51 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/configuration.md",
"parser": "markdown",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:17:52 PM] Formatting completed in 0.198ms.
["INFO" - 11:20:19 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/docs/configuration.md
["INFO" - 11:20:19 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:20:19 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:20:19 PM] File Info:
{
"ignored": false,
"inferredParser": "markdown"
}
["INFO" - 11:20:19 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:20:19 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/docs/configuration.md",
"parser": "markdown",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:20:20 PM] Formatting completed in 0.206ms.
["INFO" - 11:21:42 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/index.html
["INFO" - 11:21:42 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:21:42 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:21:42 PM] File Info:
{
"ignored": false,
"inferredParser": "html"
}
["INFO" - 11:21:42 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:21:42 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/index.html",
"parser": "html",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:21:42 PM] Formatting completed in 0.095ms.
["INFO" - 11:23:43 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:23:43 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:23:43 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:23:43 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:23:43 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:23:43 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:23:43 PM] Formatting completed in 0.076ms.
["INFO" - 11:27:59 PM] Formatting file:///home/trusktr/src/lume%2Blume/packages/docsifyjs%2Bdocsify/src/core/fetch/index.js
["INFO" - 11:27:59 PM] Using config file at '/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierrc.js'
["INFO" - 11:27:59 PM] Using ignore file (if present) at /home/trusktr/src/lume+lume/packages/docsifyjs+docsify/.prettierignore
["INFO" - 11:27:59 PM] File Info:
{
"ignored": false,
"inferredParser": "babel"
}
["INFO" - 11:27:59 PM] Detected local configuration (i.e. .prettierrc or .editorconfig), VS Code configuration will not be used
["INFO" - 11:27:59 PM] Prettier Options:
{
"filepath": "/home/trusktr/src/lume+lume/packages/docsifyjs+docsify/src/core/fetch/index.js",
"parser": "babel",
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"singleQuote": true,
"trailingComma": "es5"
}
["INFO" - 11:27:59 PM] Formatting completed in 0.042ms.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:9 (1 by maintainers)
Top Results From Across the Web
visual studio code - prettier settings for vscode - Stack Overflow
For those trying to quickly change Prettier settings for VS Code. Here are the steps: Go to FILE -> PREFERENCES -> SETTINGS.
Read more >How to configure Prettier and VSCode - Gleb Bahmutov
You can configure JavaScript code auto-formatting with Prettier to work per-project. This allows you to get a consistent formatting without ...
Read more >Configuration File - Prettier
This is to make sure that when a project is copied to another computer, ... The options you can use in the configuration...
Read more >How to use Prettier in VS Code - Robin Wieruch
Prettier is an opinionated code formatter which ensures one unified code format. It can be used in VS Code by installing it from...
Read more >Prettier - Code formatter - Visual Studio Marketplace
Your project is configured to use an outdated version of prettier that cannot be used by this extension. Upgrade to the latest version...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found a solution for this, in my case it was this: https://stackoverflow.com/a/58669550/18693152
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.