Base ESLint configuration without React-specific rules. Note: This configuration is deprecated. Use eslint-config-airbnb-base instead.
Provides Airbnb's ESLint rules without React-specific rules by extending eslint-config-airbnb-base.
/**
* Base Airbnb ESLint configuration (DEPRECATED)
* Usage: extends: ['airbnb/base']
* Recommended: Use 'eslint-config-airbnb-base' directly instead
*/
const baseConfig = {
extends: ['eslint-config-airbnb-base'],
rules: {}
};Usage Examples:
// .eslintrc.js - Deprecated usage
module.exports = {
extends: ['airbnb/base'] // Don't use this
};
// .eslintrc.js - Recommended alternative
module.exports = {
extends: ['airbnb-base'] // Use this instead
};The base configuration is a simple wrapper around eslint-config-airbnb-base. Users should migrate to using the base package directly:
interface MigrationPath {
// Old (deprecated)
oldConfig: {
extends: ['airbnb/base'];
};
// New (recommended)
newConfig: {
extends: ['airbnb-base'];
};
}Migration Steps:
Install eslint-config-airbnb-base directly:
npm install --save-dev eslint-config-airbnb-baseUpdate ESLint configuration:
// Before
module.exports = {
extends: ['airbnb/base']
};
// After
module.exports = {
extends: ['airbnb-base']
};Remove eslint-config-airbnb if not using React rules:
npm uninstall eslint-config-airbnbThe base configuration includes all rules from eslint-config-airbnb-base:
interface BaseRules {
// ECMAScript 6+ features
es6Rules: boolean;
// Import/export statements
importRules: boolean;
// Code style and formatting
styleRules: boolean;
// Best practices and error prevention
bestPracticesRules: boolean;
// Variable declaration and usage
variableRules: boolean;
// Node.js and CommonJS rules
nodeRules: boolean;
}interface BaseConfiguration {
extends: ['eslint-config-airbnb-base'];
rules: Record<string, never>; // Empty rules object
}The base configuration was originally intended for:
interface UseCases {
// Non-React JavaScript projects
vanillaJS: boolean;
// Node.js applications
nodeJS: boolean;
// Libraries without React
libraries: boolean;
// Backend APIs
backendAPIs: boolean;
}However, all these use cases are better served by using eslint-config-airbnb-base directly.