Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@ember-template-lint/todo-utils
Advanced tools
![CI Build](https://github.com/ember-template-lint/ember-template-lint-todo-utils/workflows/CI%20Build/badge.svg)
A collection of utilities to generate and store lint item metadata.
Those utilities are:
Adapts a list of ESLint.LintResult or TemplateLintResult to a map of FilePath, TodoData.
Creates, or ensures the creation of, the .lint-todo directory.
Creates a file path from the linting data. Excludes extension.
Creates a short hash for the todo's file path.
Generates a unique filename for a todo lint data.
Writes files for todo lint violations. One file is generated for each violation, using a generated hash to identify each.
Given a list of todo lint violations, this function will also delete existing files that no longer have a todo lint violation.
Reads all todo files in the .lint-todo directory.
Gets 3 maps containing todo items to add, remove, or those that are stable (not to be modified).
Adapts a list of ESLint.LintResult or TemplateLintResult to a map of FilePath, TodoData.
Kind: global function
Param | Type | Description |
---|---|---|
lintResults | LintResult | A list of objects to convert to {TodoData} objects. |
Creates, or ensures the creation of, the .lint-todo directory.
Kind: global function
Param | Description |
---|---|
baseDir | The base directory that contains the .lint-todo storage directory. |
Kind: global function
Param | Description |
---|---|
baseDir | The base directory that contains the .lint-todo storage directory. |
Creates a file path from the linting data. Excludes extension.
Kind: global function
Param | Description |
---|---|
todoData | The linting data for an individual violation. |
Example
42b8532cff6da75c5e5895a6f33522bf37418d0c/6e3be839
Creates a short hash for the todo's file path.
Kind: global function
Param | Description |
---|---|
filePath | The filePath from linting data for an individual violation. |
Generates a unique filename for a todo lint data.
Kind: global function
Param | Description |
---|---|
todoData | The linting data for an individual violation. |
Writes files for todo lint violations. One file is generated for each violation, using a generated hash to identify each.
Given a list of todo lint violations, this function will also delete existing files that no longer have a todo lint violation.
Kind: global function
Param | Description |
---|---|
baseDir | The base directory that contains the .lint-todo storage directory. |
lintResults | The raw linting data. |
filePath? | The absolute file path of the file to update violations for. |
Reads all todo files in the .lint-todo directory.
Kind: global function
Param | Description |
---|---|
todoStorageDir | The .lint-todo storage directory. |
filePath? | The absolute file path of the file to return todo items for. |
Gets 3 maps containing todo items to add, remove, or those that are stable (not to be modified).
Kind: global function
Param | Description |
---|---|
lintResults | The linting data for all violations. |
existing | Existing todo lint data. |
FAQs
![CI Build](https://github.com/ember-template-lint/ember-template-lint-todo-utils/workflows/CI%20Build/badge.svg) [![npm version](https://badge.fury.io/js/%40ember-template-lint%2Ftodo-utils.svg)](https://badge.fury.io/js/%40ember-template-lint%2Ftodo-uti
The npm package @ember-template-lint/todo-utils receives a total of 11,860 weekly downloads. As such, @ember-template-lint/todo-utils popularity was classified as popular.
We found that @ember-template-lint/todo-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.