Gathering detailed insights and metrics for ember-template-lint
Gathering detailed insights and metrics for ember-template-lint
Gathering detailed insights and metrics for ember-template-lint
Gathering detailed insights and metrics for ember-template-lint
npm install ember-template-lint
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
267 Stars
4,723 Commits
236 Forks
19 Watching
24 Branches
172 Contributors
Updated on 07 Nov 2024
JavaScript (99.94%)
EJS (0.06%)
Cumulative downloads
Total Downloads
Last day
-35%
19,150
Compared to previous day
Last week
-13.2%
119,338
Compared to previous week
Last month
16.9%
567,537
Compared to previous month
Last year
4%
6,936,394
Compared to previous year
18
28
ember-template-lint
is a library that will lint your handlebars template and return error results.
For example, if the rule no-bare-strings
is enabled, this template would be
in violation:
1{{! app/components/my-thing/template.hbs }} 2<div>A bare string</div>
When the ember-template-lint
executable is run, we would have a single result indicating that
the no-bare-strings
rule found an error.
^18.18.0 || ^20.9.0 || >=21.1.0
1npm install --save-dev ember-template-lint
1yarn add --dev ember-template-lint
Note: this library is installed by default with new Ember apps.
While ember-template-lint
does have a Node API, the main way to use it is through its executable, which is intended to be installed locally within a project.
Basic usage is as straightforward as
1ember-template-lint .
See documentation on workflow examples.
See documentation on the todo functionality.
You can turn on specific rules by toggling them in a
.template-lintrc.js
file at the base of your project, or at a custom relative
path which may be identified using the CLI:
1module.exports = { 2 extends: 'recommended', 3 4 rules: { 5 'no-bare-strings': true, 6 }, 7};
For more detailed information see configuration.
Name | Description | |
---|---|---|
✅ | recommended | Enables the recommended rules. |
💅 | stylistic | Enables stylistic rules for those who aren't ready to adopt ember-template-lint-plugin-prettier (including stylistic rules that were previously in the recommended preset in ember-template-lint v1). |
⌨️ | a11y | Enables A11Y rules. Its goal is to include all A11Y related rules, therefore it does not follow the same SemVer policy as the other presets. Please see versioning for more details. |
Each rule has emojis denoting:
--fix
command line option--fix
optionYou can add a fixer to a rule. See fixer documentation for more details.
It is possible to share a config (extends
) or plugin (custom rules) across projects. See ember-template-lint-plugin-peopleconnect for an example.
You can define and use your own custom rules using the plugin system. See plugin documentation for more details.
The semver policy for this addon can be read here: semver policy.
See the Contributing Guidelines for information on how to help out.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 11/22 approved changesets -- score normalized to 5
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More