{"id":13577362,"url":"https://github.com/standard/semistandard","last_synced_at":"2025-05-14T11:13:19.943Z","repository":{"id":26485589,"uuid":"29937635","full_name":"standard/semistandard","owner":"standard","description":":icecream: All the goodness of `standard/standard` with semicolons sprinkled on top.","archived":false,"fork":false,"pushed_at":"2024-08-15T23:03:47.000Z","size":222,"stargazers_count":1411,"open_issues_count":0,"forks_count":123,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-09T01:27:52.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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":{"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["standard","feross"]}},"created_at":"2015-01-27T22:14:26.000Z","updated_at":"2025-03-29T18:05:53.000Z","dependencies_parsed_at":"2023-11-17T00:12:47.154Z","dependency_job_id":"504035e7-39b3-463e-b3da-260a3076fec4","html_url":"https://github.com/standard/semistandard","commit_stats":{"total_commits":264,"total_committers":26,"mean_commits":"10.153846153846153","dds":0.4204545454545454,"last_synced_commit":"577e448a366db6c31ebbd83bf7c519426135791e"},"previous_names":["flet/semistandard"],"tags_count":64,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fsemistandard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fsemistandard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fsemistandard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fsemistandard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/standard","download_url":"https://codeload.github.com/standard/semistandard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129529,"owners_count":22019628,"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":[],"created_at":"2024-08-01T15:01:20.816Z","updated_at":"2025-05-14T11:13:19.894Z","avatar_url":"https://github.com/standard.png","language":"JavaScript","funding_links":["https://github.com/sponsors/standard","https://github.com/sponsors/feross"],"categories":["JavaScript"],"sub_categories":[],"readme":"# JavaScript Semi-Standard Style\n[![tests][tests-image]][tests-url]\n[![npm][npm-image]][npm-url]\n[![downloads][downloads-image]][downloads-url]\n\n### One Semicolon for the Dark Lord on his dark throne\n\nAll the goodness of [standard/standard] with semicolons sprinkled on top.\n\n## Install\n\n```bash\nnpm install semistandard\n```\n\n## Rules\n\nImportantly:\n\n- **semicolons**\n- Check [standard/standard] for the rest of the rules.\n\n## Badge\n\nUse this in one of your projects? Include one of these badges in your readme to\nlet people know that your code is using the standard style.\n\n[![js-semistandard-style](https://raw.githubusercontent.com/standard/semistandard/master/badge.svg)](https://github.com/standard/semistandard)\n\n```markdown\n[![js-semistandard-style](https://raw.githubusercontent.com/standard/semistandard/master/badge.svg)](https://github.com/standard/semistandard)\n```\n\n[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/standard/semistandard)\n\n```markdown\n[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/standard/semistandard)\n```\n\n## Usage\n\nThe easiest way to use JavaScript Semi-Standard Style to check your code is to install it\nglobally as a Node command line program. To do so, simply run the following command in\nyour terminal (flag `-g` installs `semistandard` globally on your system, omit it if you want\nto install in the current working directory):\n\n```bash\nnpm install semistandard -g\n```\n\nAfter you've done that you should be able to use the `semistandard` program. The simplest use\ncase would be checking the style of all JavaScript files in the current working directory:\n\n```\n$ semistandard\nError: Use JavaScript Semi-Standard Style\n  lib/torrent.js:950:11: Expected '===' and instead saw '=='.\n```\n\n### Editor plugins\n\n- **Sublime users**: Try [SublimeLinter-contrib-semistandard](https://github.com/Flet/SublimeLinter-contrib-semistandard) for linting in your editor!\n- **Atom users** - Install [linter-js-standard](https://atom.io/packages/linter-js-standard)\n- **VSCode users** - Install [vscode-standardjs](https://marketplace.visualstudio.com/items?itemName=chenxsan.vscode-standardjs)\n\n### What you might do if you're clever\n\n1. Add it to `package.json`\n\n  ```json\n  {\n    \"name\": \"my-cool-package\",\n    \"devDependencies\": {\n      \"semistandard\": \"*\"\n    },\n    \"scripts\": {\n      \"test\": \"semistandard \u0026\u0026 node my-normal-tests-littered-with-semicolons.js\"\n    }\n  }\n  ```\n\n2. Check style automatically when you run `npm test`\n\n  ```\n  $ npm test\n  Error: Code style check failed:\n    lib/torrent.js:950:11: Expected '===' and instead saw '=='.\n  ```\n\n3. Never give style feedback on a pull request again! (unless it's about semicolons)\n\n### Custom Parser\nTo use a custom parser, install it from npm (example: `npm install\nbabel-eslint`) and add this to your package.json:\n\n```json\n{\n  \"semistandard\": {\n    \"parser\": \"babel-eslint\"\n  }\n}\n```\n\n### [Vim](http://www.vim.org/)\n\nInstall **[Syntastic][vim-1]** and add these lines to `.vimrc`:\n\n```vim\nlet g:syntastic_javascript_checkers=['standard']\nlet g:syntastic_javascript_standard_exec = 'semistandard'\n```\n\nFor automatic formatting on save, add these two lines to `.vimrc`:\n\n```vim\nautocmd bufwritepost *.js silent !semistandard % --fix\nset autoread\n```\n\n[vim-1]: https://github.com/scrooloose/syntastic\n\n### Ignoring files\n\nJust like in `standard`, The paths `node_modules/**`, `*.min.js`, `bundle.js`, `coverage/**`, hidden files/folders\n(beginning with `.`), and all patterns in a project's root `.gitignore` file are\nautomatically excluded when looking for `.js` files to check.\n\nSometimes you need to ignore additional folders or specific minfied files. To do that, add\na `semistandard.ignore` property to `package.json`:\n\n```json\n\"semistandard\": {\n  \"ignore\": [\n    \"**/out/\",\n    \"/lib/select2/\",\n    \"/lib/ckeditor/\",\n    \"tmp.js\"\n  ]\n}\n```\n\n### Make it look `snazzy`\nIf you want prettier output, just install the [`snazzy`](https://github.com/feross/snazzy) package and pipe `semistandard` to it:\n\n```bash\n$ semistandard --verbose | snazzy\n```\n\nSee [standard/standard] for more information.\n\n[tests-image]: https://github.com/standard/semistandard/actions/workflows/test.yml/badge.svg\n[tests-url]: https://github.com/standard/semistandard/actions/workflows/test.yml\n[npm-image]: https://img.shields.io/npm/v/semistandard.svg\n[npm-url]: https://npmjs.org/package/semistandard\n[downloads-image]: https://img.shields.io/npm/dm/semistandard.svg\n[downloads-url]: https://npmjs.org/package/semistandard\n[standard/standard]: https://github.com/standard/standard\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fsemistandard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstandard%2Fsemistandard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fsemistandard/lists"}