{"id":13577377,"url":"https://github.com/standard/ts-standard","last_synced_at":"2025-05-15T14:05:58.803Z","repository":{"id":36969072,"uuid":"205284057","full_name":"standard/ts-standard","owner":"standard","description":"Typescript style guide, linter, and formatter using StandardJS","archived":false,"fork":false,"pushed_at":"2023-09-16T07:30:11.000Z","size":198,"stargazers_count":484,"open_issues_count":13,"forks_count":40,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-10T23:16:08.703Z","etag":null,"topics":["code-fixer","code-style","eslint","linter","standard","standardjs","ts","tslint","typescript","typescript-standard"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ts-standard","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":".github/FUNDING.yml","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},"funding":{"github":["standard","feross"]}},"created_at":"2019-08-30T01:51:43.000Z","updated_at":"2025-04-29T13:13:16.000Z","dependencies_parsed_at":"2024-01-12T23:43:06.629Z","dependency_job_id":"b9970a74-a688-4e80-879b-93d9fc755042","html_url":"https://github.com/standard/ts-standard","commit_stats":{"total_commits":114,"total_committers":10,"mean_commits":11.4,"dds":0.5964912280701755,"last_synced_commit":"5e45a1e2780f720de1328bf15bf71255881ffa7f"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fts-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fts-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fts-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/standard%2Fts-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/standard","download_url":"https://codeload.github.com/standard/ts-standard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355334,"owners_count":22057354,"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":["code-fixer","code-style","eslint","linter","standard","standardjs","ts","tslint","typescript","typescript-standard"],"created_at":"2024-08-01T15:01:20.934Z","updated_at":"2025-05-15T14:05:53.794Z","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":"[![Tests](https://github.com/standard/ts-standard/workflows/tests/badge.svg?branch=master)](https://github.com/standard/ts-standard/actions?query=workflow%3A%22tests%22)\n[![npm](https://badgen.net/npm/v/ts-standard)](https://www.npmjs.com/package/ts-standard)\n[![npm](https://badgen.net/npm/dm/ts-standard)](https://www.npmjs.com/package/ts-standard)\n[![License](https://badgen.net/github/license/standard/ts-standard)](https://github.com/standard/ts-standard/blob/master/LICENSE)\n[![TS-Standard - TypeScript Standard Style Guide](https://badgen.net/badge/code%20style/ts-standard/blue?icon=typescript)](https://github.com/standard/ts-standard)\n[![Dependabot badge](https://badgen.net/github/dependabot/standard/ts-standard?icon=dependabot)](https://dependabot.com/)\n\n# ts-standard\n\nTypeScript Style Guide, with linter and automatic code fixer based on [StandardJS](https://standardjs.com/)\n\n## 💾 Install\n\n`npm install --save-dev ts-standard`\n\n## ⌨️ Basic Usage\n\n```sh\nts-standard\n```\n\nEnable auto code fixing\n\n```sh\nts-standard --fix\n```\n\nNote: A `tsconfig.json` or similar project file is required. See\n**[TSConfig](https://github.com/standard/ts-standard#-tsconfig-linting-with-type-information)**\nsection below for more details\n\n## 📜 Help\n\n```text\nts-standard - Standard for TypeScript! (https://github.com/standard/ts-standard)\n\nUsage:\n  ts-standard \u003cflags\u003e [FILES...]\n\n  If FILES is omitted, all JavaScript/TypeScript source files (*.js, *.jsx, *.mjs, *.cjs, *.ts, *.tsx)\n  in the current working directory are checked, recursively.\n\n  Certain paths (node_modules/, coverage/, vendor/, *.min.js, and\n  files/folders that begin with '.' like .git/) are automatically ignored.\n\n  Paths in a project's root .gitignore file are also automatically ignored.\n\nFlags:\n      --fix       Automatically fix problems\n  -p, --project   Specify ts-config location (default: ./tsconfig.eslint.json or ./tsconfig.json)\n      --version   Show current version\n  -h, --help      Show usage information\n\nFlags (advanced):\n      --stdin     Read file text from stdin\n      --ext       Specify JavaScript/TypeScript file extensions\n      --global    Declare global variable\n      --plugin    Use custom eslint plugin\n      --env       Use custom eslint environment\n      --parser    Use custom ts/js parser (default: @typescript-eslint/parser)\n\n```\n\n## 🧬 TSConfig: Linting with Type Information\n\nBy default `ts-standard` will search the current working director (cwd) for the following in order\n\n1. `tsconfig.eslint.json`\n2. `tsconfig.json`\n\nYou can also manually configure the location of the `tsconfig` file by either passing the path to\nthe `--project` flag or adding a `ts-standard` configuration property to your `package.json` file.\n\n```json\n{\n  \"ts-standard\": {\n    \"project\": \"path/to/tsconfig.json\"\n  }\n}\n```\n\n## 🗑 Ignoring files and folders\n\nYou can add an `ignore` property to your `package.json` `ts-standard` configuration settings.\n\n```json\n{\n  \"ts-standard\": {\n    \"ignore\": [\n      \"dist\",\n      \"src/**/*.js\"\n    ]\n  }\n}\n```\n\n## 🚫 Please change X rule\n\nThis project has no control over the rules implemented, as such this project cannot change any of the\nrules that have been configured. If you want to discuss the rules, please visit the rules configuration repo\n[`eslint-config-standard-with-typescript`](https://github.com/standard/eslint-config-standard-with-typescript).\n\n## 🧙 Why\n\nThis utility was designed to be the [`standard`](https://github.com/standard/standard) equivalent for typescript.\nUnderneath the hood, this utility uses the same [`standard-engine`](https://github.com/standard/standard-engine)\nand combines that engine with the official\n[`eslint-config-standard-with-typescript`](https://github.com/standard/eslint-config-standard-with-typescript)\nruleset.\n\nYou can also choose to just use [`eslint`](https://github.com/eslint/eslint) with the\n`eslint-config-standard-with-typescript` shareable config instead and achieve the same results as\nthis project. But `ts-standard` saves you from having to manually install all the extra dependencies\nand may reduce configuration overhead.\n\n## 🎉 Special Thanks\n\nSpecial thanks to [`standard`](https://github.com/standard/standard) for inspiration and some shared code and\nto [`eslint-config-standard-with-typescript`](https://github.com/standard/eslint-config-standard-with-typescript) for\ncreating a typescript specific standard.\n\n## 📋 Contributing Guide\n\nI welcome all pull requests. Please make sure you add appropriate test cases for any features\nadded. Before opening a PR please make sure to run the following scripts:\n\n- `npm run lint:standard` checks for code errors and format according to [standard](https://github.com/standard/standard)\n- `npm test` make sure all tests pass\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fts-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstandard%2Fts-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstandard%2Fts-standard/lists"}