
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@airhelp/ts-utils-lint
Advanced tools
**ts-utils-lint** wraps ESLint/Prettier-related packages and exposes a single command to lint TypeScript files under `src` directory of your application respecting its `.eslintrc` and `.prettierrc` files.
ts-utils-lint wraps ESLint/Prettier-related packages and exposes a single command to lint TypeScript files under src
directory of your application respecting its .eslintrc
and .prettierrc
files.
./a-lib ➜ yarn add @airhelp/ts-utils-lint
// a-lib/package.json
{
"scripts": {
"lint": "ts-utils-lint"
}
}
ts-utils-lint is a simple wrapper around CLIEngine
API exposed by ESLint. Given lib-a
directory, executing ts-utils-lint
inside means going through the following steps:
.eslintrc
configuration in lib-a
ts-utils-lint
as a current working directory for ESLint in order to resolve the dependencies (namely, ESLint plugins) correctly.lib-a/src
directory.ts-utils-lint has been created to address the needs of two applications developed by a single team within AirHelp. In the next few releases, we will improve its configurability so that others could benefit from it as well. But, in terms of features not much is going to change. ts-utils-lint will stay as a single command to lint TypeScript files respecting .eslintrc and .prettierrc files of your application.
Please, make sure to setup your code editor so that you get instant feedback and auto fixes when you code. Too long line or unused variable errors making you CI pipeline red and being the very last thing preventing you from an important release suck. Don't go that way!
Install ESLint (dbaeumer.vscode-eslint
) extension.
View > Command Pallette...
(⇧ + ⌘ + P)
Go to > Preferences: Open Settings (JSON)
Append the following configuration:
{
"files.autoSave": "onFocusChange", // not required, although highly recommended
"eslint.autoFixOnSave": true,
"eslint.validate": [
{"language": "typescript", "autoFix": true },
{"language": "typescriptreact", "autoFix": true }
]
}
To do
To do
FAQs
A single command to lint TypeScript files of your app.
We found that @airhelp/ts-utils-lint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.