{"id":23757544,"url":"https://github.com/scientanl/eslint-plugin","last_synced_at":"2026-01-05T16:40:11.918Z","repository":{"id":185632758,"uuid":"673801838","full_name":"ScientaNL/eslint-plugin","owner":"ScientaNL","description":"Scienta's ESLint plugins","archived":false,"fork":false,"pushed_at":"2024-08-02T11:46:32.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-19T09:39:26.367Z","etag":null,"topics":[],"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/ScientaNL.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-02T13:04:28.000Z","updated_at":"2024-08-02T11:46:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"753513f4-b37f-4772-87c7-475a919c7e55","html_url":"https://github.com/ScientaNL/eslint-plugin","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.23529411764705888","last_synced_commit":"db031f4b3d3d07a38bef60f767d5aed1d7d9ccde"},"previous_names":["scientanl/eslint-plugin"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Feslint-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Feslint-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Feslint-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Feslint-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScientaNL","download_url":"https://codeload.github.com/ScientaNL/eslint-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245359253,"owners_count":20602322,"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-12-31T19:48:44.557Z","updated_at":"2026-01-05T16:40:11.887Z","avatar_url":"https://github.com/ScientaNL.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @scienta/eslint-plugin\n\n[![npm](https://img.shields.io/npm/v/@scienta/eslint-plugin)](https://www.npmjs.com/package/@scienta/eslint-plugin)\n[![npm](https://img.shields.io/npm/dy/@scienta/eslint-plugin)](https://www.npmjs.com/package/@scienta/eslint-plugin)\n\nThe `@scienta/eslint-plugin` is a set of common ESLint rules used across Scienta projects.  \nSupercharge your code quality with just one line! Try Scienta's ESLint plugin now:\n\n```json\n{\n  \"extends\": [\"@scienta/recommended\"]\n}\n```\n\n## Installation\n\nTo use this plugin, you can install it via npm. Run the following command in your project:\n\n```shell\nnpm install --save-dev @scienta/eslint-plugin\n```\n\n## Usage\n\nExplore ESLint rules with concise descriptions, examples, and configuration options for effective code linting.\n\nThe legend below explains what the symbols after the rule name mean.\n\n| Symbol | Meaning                                                      |\n|:------:|--------------------------------------------------------------|\n|   👍    | The rule is enabled when using the recommended configuration |\n|   🔧   | The rule support autofixing via `eslint --fix`               |\n\n### Rule: `ng-component-decorator-props-order` 👍🔧\n\nUnifies the order of the props in `@Component(props)`. \n\n#### Description\n\nWith this rule you can maintain a unified order of properties inside the **Angular** `@Component` decorator. The properties are ranked in the following order:\n\n- selector\n- exportAs\n- templateUrl\n- template\n- styleUrl\n- styleUrls\n- styles\n- host\n- hostDirectives\n- animations\n- encapsulation\n- changeDetection\n- preserveWhitespaces\n- standalone\n- jit\n- inputs\n- outputs\n- imports\n- providers\n- viewProviders\n- queries\n- schemas\n\n#### Examples\n\nExamples of code for this rule with the default config:\n\n##### ❌ Incorrect\n\n```ts\n@Component({\n\ttemplate: \"\u003cng-content\u003e\u003c/ng-content\u003e\",\n\tselector: \"example\",\n    // changeDetection shouldn't percede styleUrls\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyleUrls: [\"example.component.scss\"],\n})\nclass ExampleComponent {}\n```\n\n##### ✅ Correct\n\n```ts\n@Component({\n\tselector: \"example\",\n\ttemplate: \"\u003cng-content\u003e\u003c/ng-content\u003e\",\n\tstyleUrls: [\"example.component.scss\"],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nclass ExampleComponent {}\n```\n\n\n### Rule: `ng-module-decorator-props-order` 👍🔧\n\nUnifies the order of the props in `@NgModule(props)`.\n\n#### Description\n\nWith this rule you can maintain a unified order of properties inside the **Angular** `@NgModule` decorator. The properties are ranked in the following order:\n\n- id\n- jit\n- bootstrap\n- imports\n- providers\n- schemas\n- declarations\n- exports\n\n#### Examples\n\nExamples of code for this rule with the default config:\n\n##### ❌ Incorrect\n\n```ts\n@NgModule({\n\tdeclarations: [],\n\timports: [],\n\texports: []\n})\nclass ExampleModule {}\n```\n\n##### ✅ Correct\n\n```ts\n@NgModule({\n\timports: [],\n\tdeclarations: [],\n\texports: []\n})\nclass ExampleModule {}\n```\n\n## Support\n\nIf you encounter any issues or need assistance with using the plugin, you can reach out for support. For support or bug reporting, please create an issue on the GitHub repository.\n\n## Contributing\n\nIf you would like to contribute to the development of this plugin, you are more than welcome to do so.\n\n## License\n\nThis plugin is open-source and is distributed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Feslint-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientanl%2Feslint-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Feslint-plugin/lists"}