Common configuration for Contentstack Studio SDKs
npm install @contentstack/common-configCommon configuration files for Contentstack Studio SDK packages. This package provides shared ESLint configurations and other common tooling configurations used across the Studio SDK monorepo.
The common-config package centralizes configuration files to ensure consistency across all packages in the Studio SDK. It provides:
- ESLint configurations for TypeScript and React projects
- Shared linting rules and best practices
- Consistent code style across all packages
This package is a private package within the monorepo and is automatically available to all packages. It's installed as a dev dependency in packages that need ESLint configuration.
To extend these configurations in your package:
1. Import the base configuration
2. Add your package-specific rules
3. Export the extended configuration
Example:
``javascript
import commonEslintConfig from "@contentstack/common-config/eslint.config.mjs";
export default [
...commonEslintConfig,
{
rules: {
// Your custom rules
"no-console": "warn",
},
},
];
``