{"id":15390885,"url":"https://github.com/natemoo-re/tslint-stencil","last_synced_at":"2025-07-13T20:36:00.737Z","repository":{"id":48031069,"uuid":"146437617","full_name":"natemoo-re/tslint-stencil","owner":"natemoo-re","description":"Contributes some helpful tslint rules for Stencil projects","archived":false,"fork":false,"pushed_at":"2022-12-07T14:43:11.000Z","size":327,"stargazers_count":22,"open_issues_count":9,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T01:06:17.765Z","etag":null,"topics":["stencil","stencil-component","tslint"],"latest_commit_sha":null,"homepage":"https://projects.natemoo.re/tslint-stencil/","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/natemoo-re.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":"2018-08-28T11:29:48.000Z","updated_at":"2023-07-02T21:27:34.000Z","dependencies_parsed_at":"2023-01-24T17:32:01.888Z","dependency_job_id":null,"html_url":"https://github.com/natemoo-re/tslint-stencil","commit_stats":null,"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/natemoo-re/tslint-stencil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natemoo-re%2Ftslint-stencil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natemoo-re%2Ftslint-stencil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natemoo-re%2Ftslint-stencil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natemoo-re%2Ftslint-stencil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natemoo-re","download_url":"https://codeload.github.com/natemoo-re/tslint-stencil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natemoo-re%2Ftslint-stencil/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200711,"owners_count":23726876,"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":["stencil","stencil-component","tslint"],"created_at":"2024-10-01T15:08:56.596Z","updated_at":"2025-07-13T20:36:00.715Z","avatar_url":"https://github.com/natemoo-re.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tslint-stencil\n\nAdds stylistic [tslint](https://github.com/palantir/tslint) rules for [Stencil](https://github.com/ionic-team/stencil) projects\n\n## Getting started\n\nAdd the following line to your `tslint.json` file to enable the default ruleset (which follows the [Stencil Style Guide](https://stenciljs.com/docs/style-guide))\n\n```json\n{\n  \"extends\": [\"tslint-stencil/default\"]\n}\n```\n\nAlternatively, you can extend the bare package and enable each [rule](#rules) on a individual basis\n\n```json\n{\n  \"extends\": [\"tslint-stencil\"],\n  \"rules\": {\n    \"host-data-precedes-render\": true\n  }\n}\n```\n\n## Rules\n\n### [`ban-prefix`](docs/ban-prefix.md)\n\nEnsures that a Component's `tag` does not use any of the given prefixes.\n\n### [`component-member-order`](docs/component-member-order.md)\n\nEnsures that Component members are ordered consistently\n\n### [`components-per-file`](docs/components-per-file.md)\n\nAllows a maximum number of Components to be placed in a single file\n\n### [`decorated-member-style`](docs/decorated-member-style.md)\n\nRequires decorated class members to follow a consistent style (singleline or multiline)\n\n### [`lifecycle-order`](docs/lifecycle-order.md)\n\nEnsures that Component lifecycle methods are ordered consistently\n\n### [`require-prefix`](docs/require-prefix.md)\n\nEnsures that a Component's `tag` begins with the given prefix(es).\n\n## Contributing\n\nRules in the `src/` directory must be **camelCased** and end in **Rule**.\nMore information on developing custom tslint rules can be found on the [tslint site](https://palantir.github.io/tslint/develop/custom-rules/)\n\nBefore adding your custom rule, be sure to write a test for it. Then, you should be able to verify that it works by running:\n\n```\nnpm run verify\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatemoo-re%2Ftslint-stencil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatemoo-re%2Ftslint-stencil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatemoo-re%2Ftslint-stencil/lists"}