
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@matrixai/lint
Advanced tools
A batteries-included, TypeScript-aware linting CLI and ESLint flat config bundle for use in Matrix AI JavaScript/TypeScript projects.
@typescript-eslint using one or more
tsconfig.json filesmatrixai-lint-config.json and extensible with your own
ESLint confignpm install --save-dev @matrixai/lint
matrixai-lint
To run with autofix:
matrixai-lint --fix
| Flag | Description |
|---|---|
| (no flag) | Uses built-in Matrix AI ESLint config |
--fix | Enables auto-fixing via ESLint and Prettier |
--user-config | Uses detected `eslint.config.[js,mjs,cjs,ts] from the project root if found |
--config <path> | Explicitly use a custom ESLint config file |
matrixai-lint --fix
matrixai-lint --user-config
matrixai-lint --config ./eslint.config.js --fix
The linter is TypeScript-aware and requires a tsconfig.json to determine which
files to lint and how to parse them.
By default:
tsconfig.json in the project rootinclude and exclude fields in the tsconfigIf your project uses more than one tsconfig.json or doesn't have one at the
root, you can configure the linter using a matrixai-lint-config.json file at
the root:
{
"tsconfigPaths": ["./tsconfig.base.json", "./packages/core/tsconfig.json"],
"forceInclude": ["scripts", "src/overrides"]
}
| Field | Type | Description |
|---|---|---|
tsconfigPaths | string[] | One or more paths to tsconfig.json files |
forceInclude | string[] | Paths to always include, even if excluded by tsconfig (must be included by at least one) |
⚠ If a path in
forceIncludeis not included in any of thetsconfigPaths, TypeScript will throw a parsing error.
You can use your own ESLint config by one of the following methods:
matrixai-lint --config ./eslint.config.js
--user-configmatrixai-lint --user-config
This will look for a valid eslint.config file in the project root.
Valid config filenames:
eslint.config.jseslint.config.cjseslint.config.mjseslint.config.ts// eslint.config.js
import matrixai from '@matrixai/lint/config';
export default [
...matrixai,
{
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'no-console': 'off',
},
},
];
Run nix develop, and once you're inside, you can use:
# install (or reinstall packages from package.json)
npm install
# build the dist
npm run build
# run the repl (this allows you to import from ./src)
npm run tsx
# run the tests
npm run test
# lint the source code
npm run lint
# automatically fix the source
npm run lintfix
npm run docs
See the docs at: https://matrixai.github.io/js-lint/
Publishing is handled automatically by the staging pipeline.
Prerelease:
# npm login
npm version prepatch --preid alpha # premajor/preminor/prepatch
git push --follow-tags
Release:
# npm login
npm version patch # major/minor/patch
git push --follow-tags
Manually:
# npm login
npm version patch # major/minor/patch
npm run build
npm publish --access public
git push
git push --tags
FAQs
Org wide custom eslint rules
The npm package @matrixai/lint receives a total of 55 weekly downloads. As such, @matrixai/lint popularity was classified as not popular.
We found that @matrixai/lint demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.

Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.