{"id":19441551,"url":"https://github.com/standard/vscode-standard","last_synced_at":"2025-04-25T00:30:56.608Z","repository":{"id":36989936,"uuid":"69348779","full_name":"standard/vscode-standard","owner":"standard","description":"VS Code extension for JavaScript Standard Style (`standard`) with automatic fixing","archived":false,"fork":false,"pushed_at":"2023-09-16T07:31:25.000Z","size":9574,"stargazers_count":121,"open_issues_count":25,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-11T18:05:09.365Z","etag":null,"topics":["javascript","nodejs","standard","vscode","vscode-extension","vscode-standardjs"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=standard.vscode-standard","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/standard.png","metadata":{"funding":{"github":["standard","feross"]},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-27T11:14:55.000Z","updated_at":"2024-05-13T05:13:44.000Z","dependencies_parsed_at":"2023-01-17T11:45:46.735Z","dependency_job_id":null,"html_url":"https://github.com/standard/vscode-standard","commit_stats":null,"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fvscode-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fvscode-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fvscode-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fvscode-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/standard","download_url":"https://codeload.github.com/standard/vscode-standard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223973664,"owners_count":17234504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs","standard","vscode","vscode-extension","vscode-standardjs"],"created_at":"2024-11-10T15:36:11.986Z","updated_at":"2024-11-10T15:36:12.511Z","avatar_url":"https://github.com/standard.png","language":"TypeScript","funding_links":["https://github.com/sponsors/standard","https://github.com/sponsors/feross"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003evscode-standard\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e\u003ca href=\"https://code.visualstudio.com/\"\u003eVisual Studio Code\u003c/a\u003e extension for \u003ca href=\"https://standardjs.com\"\u003eJavaScript Standard Style\u003c/a\u003e with automatic fixing.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/standard/vscode-standard/actions?query=workflow%3A%22Node.js+CI%22\"\u003e\u003cimg src=\"https://github.com/standard/vscode-standard/workflows/Node.js%20CI/badge.svg\" alt=\"Node.js CI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=standard.vscode-standard\"\u003e\u003cimg src=\"https://vsmarketplacebadge.apphb.com/version/standard.vscode-standard.svg\" alt=\"Visual Studio Marketplace\" /\u003e\u003c/a\u003e\n  \u003cimg alt=\"Downloads Visual Studio Marketplace\" src=\"https://vsmarketplacebadge.apphb.com/downloads-short/standard.vscode-standard.svg\" /\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ts-standard\"\u003e\u003cimg alt=\"TypeScript Standard Style\" src=\"https://camo.githubusercontent.com/f87caadb70f384c0361ec72ccf07714ef69a5c0a/68747470733a2f2f62616467656e2e6e65742f62616467652f636f64652532307374796c652f74732d7374616e646172642f626c75653f69636f6e3d74797065736372697074\"/\u003e\u003c/a\u003e\n  \u003cbr/\u003e \u003cbr/\u003e\n  \u003ca href=\"https://standardjs.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/standard/vscode-standard/master/standard_icon.png\" alt=\"Standard - JavaScript Style Guide\" width=\"200\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## How to use\n\n1. **Install the 'StandardJS - JavaScript Standard Style' extension**\n\n   Launch VSCode Quick Open (⌘+P), paste the following command, and press enter.\n\n   ```text\n   ext install standard.vscode-standard\n   ```\n\n   For more information, take a look at the [documentation](https://code.visualstudio.com/docs/editor/extension-gallery#_browse-and-install-extensions).\n\n2. **Install the engine `standard`, `semistandard`, `standardx` or `ts-standard`**\n\n   This can be done globally or locally. We recommend that you install them locally (i.e. saved in your project's `devDependencies`), to ensure that other developers have it installed when working on the project.\n\n3. **Enable the extension**\n\n   That's it! The extension will automatically be enabled in projects that has one of the engines installed in `devDependencies` in `package.json`.\n\n## Extension options\n\nWe give you some options to customize `vscode-standard` in your VSCode [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings).\n\n| Option                           | Description                                                                                                                                                                                                  | Default                                                             |\n| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |\n| `standard.enable`                | enable or disable JavaScript Standard Style                                                                                                                                                                  | `true`                                                              |\n| `standard.enableGlobally`        | enable or disable JavaScript Standard Style globally                                                                                                                                                         | `false`                                                             |\n| `standard.run`                   | run linter `onSave` or `onType`                                                                                                                                                                              | `onType`                                                            |\n| `standard.autoFixOnSave`         | enable or disable auto fix on save. It is only available when VSCode's `files.autoSave` is either `off`, `onFocusChange` or `onWindowChange`. It will not work with `afterDelay`.                            | `false`                                                             |\n| `standard.nodePath`              | use this setting if an installed `standard` package can't be detected.                                                                                                                                       | `null`                                                              |\n| `standard.validate`              | an array of language identifiers specify the files to be validated                                                                                                                                           | `[\"javascript\", \"javascriptreact\", \"typescript\", \"typescriptreact]` |\n| `standard.workingDirectories`    | an array for working directories to be used.                                                                                                                                                                 | `[]`                                                                |\n| `standard.engine`                | You can use `semistandard`, `standardx` or `ts-standard` instead of `standard`. **Just make sure you've installed the `semistandard`, the `standardx` or the `ts-standard` package, instead of `standard`.** | `standard`                                                          |\n| `standard.usePackageJson`        | if set to `true`, JavaScript Standard Style will use project's `package.json` settings, otherwise globally installed `standard` module is used                                                               | `true`                                                              |\n| `standard.treatErrorsAsWarnings` | Any linting error reported by Standard will instead be displayed as a warning within VS Code.                                                                                                                | `false`                                                             |\n\n## Configuring Standard\n\nYou can still configure `standard` itself with the `standard.options` setting, for example:\n\n```json\n\"standard.options\": {\n \"globals\": [\"$\", \"jQuery\", \"fetch\"],\n \"ignore\": [\n  \"node_modules/**\"\n ],\n \"plugins\": [\"html\"],\n \"parser\": \"babel-eslint\",\n \"envs\": [\"jest\"]\n}\n```\n\nIt's recommended to change these options in your `package.json` file on a per-project basis, rather than setting them globally in `settings.json`. For example:\n\n```json\n\"standard\": {\n \"plugins\": [\"html\"],\n \"parser\": \"babel-eslint\"\n}\n```\n\nIf you've got multiple projects within a workspace (e.g. you're inside a monorepo), VSCode prevents extensions from accessing multiple `package.json` files.\n\nIf you want this functionality, you should add each project folder to your workspace (`File -\u003e Add folder to workspace...`). If you can't see this option, download the [VSCode Insiders Build](https://code.visualstudio.com/insiders/) to get the latest features.\n\n### Commands\n\nWhen you open the Command Palette in VSCode (⇧⌘P or Ctrl+Shift+P), this plugin has the following options:\n\n- `Fix all auto-fixable problems` - applies JavaScript Standard Style auto-fix resolutions to all fixable problems.\n- `Disable JavaScript Standard Style for this Workspace` - disable JavaScript Standard Style extension for this workspace.\n- `Enable JavaScript Standard Style for this Workspace` - enable JavaScript Standard Style extension for this workspace.\n- `Show output channel` - view the linter output for JavaScript Standard Style.\n\n### FAQ\n\n1. How do I lint `script` tags in `vue` or `html` files?\n\n   You can lint them with `eslint-plugin-html`. Make sure it's installed, then enable linting for those file types in your `settings.json`:\n\n   ```json\n   \"standard.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    \"html\"\n   ],\n   \"standard.options\": {\n    \"plugins\": [\"html\"]\n   },\n   \"files.associations\": {\n    \"*.vue\": \"html\"\n   },\n   ```\n\n   If you want to enable `autoFix` for the new languages, you should enable it yourself:\n\n   ```json\n   \"standard.validate\": [\n    \"javascript\",\n    \"javascriptreact\",\n    {\n     \"language\": \"html\",\n     \"autoFix\": true\n    }\n   ],\n   \"standard.options\": {\n    \"plugins\": [\"html\"]\n   }\n   ```\n\n## How to develop\n\n1. Fork this repo, and clone your fork locally.\n2. Run `npm install` right under project root.\n3. Open project in VSCode. The plugin should be disabled whilst developing.\n4. Run the `watch` build task (⇧⌘B or Ctrl+Shift+B) to compile the client and server.\n5. To run/debug the extension, use the `Launch Client` launch configuration (from the VSCode debug panel).\n6. To debug the server, use the `Attach to Server` launch configuration.\n\n## How to package\n\n1. Run `npm install`\n2. Run `npm run package` to build a .vsix file\n3. You can install it with `code --install-extension vscode-standard.vsix`\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fvscode-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstandard%2Fvscode-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fvscode-standard/lists"}