
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
@offchainlabs/eslint-config-typescript
Advanced tools
Provide reusable typescript and react eslint configs
npx install-peerdeps -Y --dev @offchainlabs/eslint-config-typescript
eslintrc.js
require('@offchainlabs/eslint-config-typescript/base');
require('@offchainlabs/eslint-config-typescript/react');
module.exports = {
extends: [
'@offchainlabs/eslint-config-typescript/base',
'@offchainlabs/eslint-config-typescript/react',
],
// Override here
};
.eslintrc.yaml, .eslintrc.yml
extends:
- '@offchainlabs/eslint-config-typescript/base'
- '@offchainlabs/eslint-config-typescript/react'
rules:
# Override here
.eslintrc.json
{
extends: [
'@offchainlabs/eslint-config-typescript/base',
'@offchainlabs/eslint-config-typescript/react'
],
overrides: [...]
}
package.json
"eslintConfig": {
"extends": [
"@offchainlabs/eslint-config-typescript/base",
"@offchainlabs/eslint-config-typescript/react",
],
"overrides": [...]
}
For nextjs based project,
"@offchainlabs/eslint-config-typescript/react" should be removed in favor of "@offchainlabs/eslint-config-typescript/next",. It includes react, react-hooks, jsx-a11y and import configurations already.
If you're using @offchainlabs/eslint-config-typescript/next in a project where Next.js isn't installed in your root directory (such as a monorepo), you need to update your .eslintrc:
{
"extends": "next",
"settings": {
"next": {
"rootDir": "packages/my-app/"
}
}
}
rootDir can be a path (relative or absolute), a glob (i.e. "packages/*/"), or an array of paths and/or globs.
see https://nextjs.org/docs/basic-features/eslint#rootdir
This repo can be linted with itself by running yarn run lint
FAQs
Shareable Offchain labs eslint config
We found that @offchainlabs/eslint-config-typescript 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.