{"id":15407983,"url":"https://github.com/danilqa/tslint-rules-starter","last_synced_at":"2025-04-18T14:54:35.617Z","repository":{"id":165855583,"uuid":"183762978","full_name":"Danilqa/tslint-rules-starter","owner":"Danilqa","description":"A starter project with tests for creating own rules for TSLint","archived":false,"fork":false,"pushed_at":"2019-05-10T22:01:07.000Z","size":62,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T06:22:19.786Z","etag":null,"topics":["code","jest","lint","linter","rules","starter","ts","tslint","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Danilqa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-04-27T11:13:40.000Z","updated_at":"2024-04-05T19:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5c2e5d3-4ee9-47e5-8bb8-aca0bb54cf8c","html_url":"https://github.com/Danilqa/tslint-rules-starter","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"1d1208b77c0f9f9fc9f1fe4a3773c5c43146c58e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danilqa%2Ftslint-rules-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danilqa%2Ftslint-rules-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danilqa%2Ftslint-rules-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danilqa%2Ftslint-rules-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danilqa","download_url":"https://codeload.github.com/Danilqa/tslint-rules-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249507425,"owners_count":21283206,"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","jest","lint","linter","rules","starter","ts","tslint","typescript"],"created_at":"2024-10-01T16:30:29.200Z","updated_at":"2025-04-18T14:54:35.588Z","avatar_url":"https://github.com/Danilqa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A starter project for creating rules for TSLint\n\nIncludes:\n- Simple rule example\n- Tests for this rule\n- Sandbox for development\n- Building configuration\n- Jest expect methods\n\nMain language: `TypeScript` \\\nPackage manager: `yarn`\n\n# Get started\n\n`yarn install` - to install dependencies\n\n# Scripts\n\n* `dev` - runs the lint for sandbox\n* `test` - runs rules tests\n* `build` - compile project to dist folder\n\n# How to use it in your consumer project\n\nDelivery it to `node_modules` (as npm package or just copy) and configure `tslint.json` of your project.\n```\n{\n    \"rulesDirectory\": [\n        ...\n        \"node_modules/rules\"\n    ],\n    \"rules\": {\n        ...\n        \"no-multiline-ternary\": true\n    }\n}\n```\n\n# Project structure\n\n```\n.\n├── dist - Output folder, compiled rules will be there\n├── helpers\n│   └── linter.ts - Used for running linter in specs\n├── rules - Rules and specs\n├── sandbox.ts - Develop and test you rules here\n├── tsconfig.dev.json - Config for running lint only for sandbox\n├── tsconfig.json - TS configuration for current project\n├── tsconfig.spec.json - TS configuration for jest\n├── tslint.json - TS Lint configuration for current project\n├── package.json\n├── README.md\n└── yarn.lock\n```   \n\n# Why do we have that dev dependencies?\n\n* `@types/*` - contains type definitions for specific library.\n* `jest` - testing framework to write unit specs.\n* `ts-jest` - it lets you use Jest to test projects written in TypeScript.\n* `tslint` - it checks TypeScript code for readability, maintainability, and functionality errors.\n* `typescript` - is a superset of JavaScript that have static type-checking and ECMAScript features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilqa%2Ftslint-rules-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanilqa%2Ftslint-rules-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilqa%2Ftslint-rules-starter/lists"}