VS Code Prettier ESLintA Visual Studio Code Extension to format JavaScript and TypeScript code using the prettier-eslint package. PrerequisitesThis extension requires TroubleshootingError: Cannot find module 'prettier' OR Error: Cannot find module 'eslint'
Please create an issue before adding a rating. I am the only contributor currently. https://gitlab.com/idahogurl/vs-code-prettier-eslint/issues ConfigurationThe extension uses your ESLint and Prettier configuration files. These files are resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn't) found. ESLint Configuration File(From https://eslint.org/docs/user-guide/configuring) Use a JavaScript, JSON or YAML file to specify configuration information for an entire directory and all of its subdirectories. This can be in the form of an Prettier Configuration File(From https://prettier.io/docs/en/configuration.html) Prettier uses cosmiconfig for configuration file support. This means you can configure prettier via (in order of precedence):
Running FormatterOnce installed, open a JavaScript file. Press You can enable the Default Formatter
Setup Format on Save
ContributingIf you have suggestions for how this extension could be improved, or want to report a bug, open an issue! I'd love all and any contributions. If you are interested in contributing to the project, check out the Contributing Guide. Current Contributors ✨Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome! |