{"id":15017406,"url":"https://github.com/sergiioo/tslint-defocus","last_synced_at":"2025-04-12T11:44:20.993Z","repository":{"id":56659895,"uuid":"70003256","full_name":"Sergiioo/tslint-defocus","owner":"Sergiioo","description":"A tslint rule to nag you when you forget that you have focused some Jasmine tests with 'fdescribe' or 'fit'","archived":false,"fork":false,"pushed_at":"2020-10-26T18:23:57.000Z","size":42,"stargazers_count":18,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T22:41:21.887Z","etag":null,"topics":["jasmine","linting-rules","tslint","tslint-rules","typescript"],"latest_commit_sha":null,"homepage":null,"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/Sergiioo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-10-04T20:25:27.000Z","updated_at":"2022-08-01T16:35:55.000Z","dependencies_parsed_at":"2022-08-15T22:50:17.954Z","dependency_job_id":null,"html_url":"https://github.com/Sergiioo/tslint-defocus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sergiioo%2Ftslint-defocus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sergiioo%2Ftslint-defocus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sergiioo%2Ftslint-defocus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sergiioo%2Ftslint-defocus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sergiioo","download_url":"https://codeload.github.com/Sergiioo/tslint-defocus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248564145,"owners_count":21125406,"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":["jasmine","linting-rules","tslint","tslint-rules","typescript"],"created_at":"2024-09-24T19:50:25.002Z","updated_at":"2025-04-12T11:44:20.967Z","avatar_url":"https://github.com/Sergiioo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Sergiioo/tslint-defocus.svg?branch=master)](https://travis-ci.org/Sergiioo/tslint-defocus)\n[![NPM Version](https://img.shields.io/npm/v/tslint-defocus.svg)](https://www.npmjs.com/package/tslint-defocus)\n[![License](https://img.shields.io/npm/l/tslint-defocus.svg)](LICENSE)\n\n# tslint-defocus\n\n## About\n\nThis is a tslint rule that warns about focussed Jasmine tests - `fdescribe` and `fit`\n\n## Usage\n\n- Install with: `npm install tslint-defocus --save-dev` or `yarn add tslint-defocus --dev`\n- Extend this package in your `.tslint.json` file, e.g.:\n\n```\n  \"extends\": [\n    \"tslint-defocus\"\n  ],\n  \"rules\": {\n    \"defocus\": true,\n    ...\n```\n\n(as per the [instructions for custom rules](http://palantir.github.io/tslint/usage/custom-rules/))\n\n- Run `tslint` as you usually would (gulp plugin, directly from node, etc)\n- If you forget to remove a call to `fdescribe` or `fit` then you will see something like from tslint:\n\n```\n(defocus) app.ts[4, 1]: Calls to 'fdescribe' are not allowed.\n(defocus) app.ts[8, 5]: Calls to 'fit' are not allowed.\n```\n\n## Dependencies\n\nVersion 2.0.x of this rule requires version 5.x of tslint.\n\n## Developer instructions\n\n- installed the required global npm packages: `npm install gulp --global --no-optional`.\n- Clone [from github](https://github.com/Sergiioo/tslint-defocus)\n- Run `npm install` or `yarn install` to install and get started\n- This repo uses npm scripts for its build. Try `yarn build` and `yarn test`.\n- There are also watch mode variants - `yarn build:watch` and `yarn test:watch`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiioo%2Ftslint-defocus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiioo%2Ftslint-defocus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiioo%2Ftslint-defocus/lists"}