@contentstack/common-config
v1.1.4
Published
Common configuration for Contentstack Studio SDKs
Downloads
185
Readme
@contentstack/common-config
Common configuration files for Contentstack Studio SDK packages. This package provides shared ESLint configurations and other common tooling configurations used across the Studio SDK monorepo.
Overview
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
Installation
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.
Customization
To extend these configurations in your package:
- Import the base configuration
- Add your package-specific rules
- Export the extended configuration
Example:
import commonEslintConfig from "@contentstack/common-config/eslint.config.mjs";
export default [
...commonEslintConfig,
{
rules: {
// Your custom rules
"no-console": "warn",
},
},
];