{"_id":"@acute-ng/eslint-plugin-clean-template","name":"@acute-ng/eslint-plugin-clean-template","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@acute-ng/eslint-plugin-clean-template","version":"1.0.0","description":"An ESLint plugins to keep your Angular template clean.","main":"index.js","keywords":["angular","eslint-plugin","eslint"],"author":{"name":"Thomas Hillebrandt"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/angular-acute/clean-template.git"},"bugs":{"url":"https://github.com/angular-acute/clean-template/issues"},"homepage":"https://github.com/angular-acute/clean-template#readme","scripts":{"test":"jest","lint":"npm-run-all \"lint:*\"","lint:docs":"markdownlint \"**/*.md\"","lint:eslint-docs":"npm run update:eslint-docs -- --check","lint:js":"eslint .","docs":"eslint-doc-generator"},"devDependencies":{"@angular-eslint/template-parser":"^19.0.2","@types/jest":"^29.5.14","@typescript-eslint/parser":"^8.19.0","eslint":"^9.17.0","eslint-doc-generator":"^2.0.2","eslint-rule-tester":"^2.0.0","jest":"^29.7.0","prettier":"^3.4.2"},"engines":{"node":">=20.0.0"},"publishConfig":{"access":"public"},"_id":"@acute-ng/eslint-plugin-clean-template@1.0.0","gitHead":"c2d3a6f16aa39e795115c954396fa6980207ef3a","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-mP4zmSAcGyJgrYSpI7Y9vGaynDuhJSL4jZvqsArCzU1zuTWQ80+S8hj6QBvyftd9WinujDWYITkrIh8vwvIR6w==","shasum":"d8dd64d089bcce176d76411ad0ec9fec6438c984","tarball":"https://registry.npmjs.org/@acute-ng/eslint-plugin-clean-template/-/eslint-plugin-clean-template-1.0.0.tgz","fileCount":12,"unpackedSize":40657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu4rPgvGtuzqU4moe3RjphVNir/pTLrDaF11Xa7MtHUQIgIgtf1EBQUU8uZE2gDkOGR4OtRQJbnFY8wznCORKF75A="}]},"_npmUser":{"name":"thillebrandt","email":"thohi.torok@gmail.com"},"directories":{},"maintainers":[{"name":"thillebrandt","email":"thohi.torok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-clean-template_1.0.0_1736215061578_0.31193080100928916"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-07T01:57:41.483Z","1.0.0":"2025-01-07T01:57:41.746Z","modified":"2025-01-07T01:57:42.020Z"},"maintainers":[{"name":"thillebrandt","email":"thohi.torok@gmail.com"}],"description":"An ESLint plugins to keep your Angular template clean.","homepage":"https://github.com/angular-acute/clean-template#readme","keywords":["angular","eslint-plugin","eslint"],"repository":{"type":"git","url":"git+https://github.com/angular-acute/clean-template.git"},"author":{"name":"Thomas Hillebrandt"},"bugs":{"url":"https://github.com/angular-acute/clean-template/issues"},"license":"MIT","readme":"# @acute-ng/eslint-plugin-clean-template\n\n## Install\n\n```sh\nnpm install --save-dev eslint @acute-ng/eslint-plugin-clean-template\n```\n\n## Usage (`eslint.config.js`)\n\n**Requires ESLint `>=8.56.0`.**\n\nUse `recommended` or `strict` settings, or configure each rule in `eslint.config`.\n\nIf you don't use the preset, ensure you use the same `languageOptions` config as below.\n\n### ES Module (Recommended)\n\n```js\nimport acuteCleanTemplate from \"@acute-ng/eslint-plugin-clean-template\";\nimport templateParser from \"@angular-eslint/template-parser\";\n\nexport default [\n  {\n    files: [\"**/*.html\"],\n    languageOptions: {\n      parser: templateParser,\n    },\n    plugins: {\n      \"@acute-ng/clean-template\": acuteCleanTemplate,\n    },\n    rules: {\n      \"@acute-ng/clean-template/html-id-case\": \"warn\",\n      \"@acute-ng/clean-template/no-binding-literals\": \"warn\",\n      \"@acute-ng/clean-template/no-template-this\": \"warn\",\n      \"@acute-ng/clean-template/prefer-variable-binding\": \"warn\",\n    },\n  },\n];\n```\n\n### CommonJS\n\n```js\n\"use strict\";\nconst acuteCleanTemplate = require(\"@acute-ng/eslint-plugin-clean-template\");\nconst templateParser = require(\"@angular-eslint/template-parser\");\n\nmodule.exports = [\n  {\n    languageOptions: {\n      parser: templateParser,\n    },\n    plugins: {\n      \"@acute-ng/clean-template\": acuteCleanTemplate,\n    },\n    rules: {\n      \"@acute-ng/clean-template/html-id-case\": \"warn\",\n      \"@acute-ng/clean-template/no-binding-literals\": \"warn\",\n      \"@acute-ng/clean-template/no-template-this\": \"warn\",\n      \"@acute-ng/clean-template/prefer-variable-binding\": \"warn\",\n    },\n  },\n];\n```\n\n## Usage (legacy: `.eslintrc.*` or `package.json`)\n\n```json\n{\n  \"parser\": \"@angular-eslint/template-parser\",\n  \"plugins\": [\"@acute-ng/clean-template\"],\n  \"rules\": {\n    \"@acute-ng/clean-template/html-id-case\": \"warn\",\n    \"@acute-ng/clean-template/no-binding-literals\": \"warn\",\n    \"@acute-ng/clean-template/no-template-this\": \"warn\",\n    \"@acute-ng/clean-template/prefer-variable-binding\": \"warn\"\n  }\n}\n```\n\n## Rules\n\n <!-- begin auto-generated rules list -->\n\n💼 Configurations enabled in.\\\n⚠️ Configurations set to warn in.\\\n✅ Set in the `recommended` configuration.\\\n🔒 Set in the `strict` configuration.\\\n🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\n\n| Name                                                             | Description                                                   | 💼  | ⚠️  | 🔧  |\n| :--------------------------------------------------------------- | :------------------------------------------------------------ | :-- | :-- | :-- |\n| [html-id-case](docs/rules/html-id-case.md)                       | Enforces consistent case styling of the HTML id attribute.    | 🔒  | ✅  | 🔧  |\n| [no-binding-literals](docs/rules/no-binding-literals.md)         | Prevent binding properties to string literals.                | 🔒  | ✅  | 🔧  |\n| [no-template-this](docs/rules/no-template-this.md)               | Help prevent using unnecessary `this` in templates.           | 🔒  | ✅  | 🔧  |\n| [prefer-variable-binding](docs/rules/prefer-variable-binding.md) | Enforces property binding over simple variable interpolation. | 🔒  | ✅  | 🔧  |\n\n<!-- end auto-generated rules list -->\n","readmeFilename":"README.md"}