Skip to content

Extensions

Normally, many plugins hide their recommended configs. That means if you want to build a fully custom config, you can’t access everything. Extensions solve this problem.

An extension = rules + parser + settings → combined into a reusable layer. Now, every Extended config is built as rules + extension = config. This makes it easier to create your own base config with full customization.

ExtensionVariantDescription
BaseRecommendedAdds parser, resolver, and import settings for JavaScript. Disables legacy stylistic JS rules.
TypeScriptAdds parser, resolver, and import settings for TypeScript. Also disables JS rules not recommended by the TypeScript team.
ReactRecommendedAdds parser, resolver, and import settings for React. Enables required ESLint and stylistic rules.
TypeScriptAdds parser, resolver, and import settings for TypeScript. Adjusts specific React rules to work better with TypeScript.
Next.jsRecommendedDisables certain import rules based on Next.js best practices and also turns off React rules that are unnecessary in Next.js projects.
NodeRecommendedDetects if the project uses CommonJS or ESM and adjusts rules accordingly.

Example

ts
import { extensions } from 'eslint-config-airbnb-extended';

export default [
  // Recommended base extension
  ...extensions.base.recommended,
  // Recommended Next.js extension
  ...extensions.next.recommended,
];

Released under the MIT License.