ESLint plugin for AWS CDK
See here
# npm
npm install -D eslint-cdk-plugin
# yarn
yarn add -D eslint-cdk-plugin
# pnpm
pnpm install -D eslint-cdk-plugin
// eslint.config.mjs
import eslintCdkPlugin from "eslint-cdk-plugin";
export default [
{
plugins: {
cdk: eslintCdkPlugin,
},
rules: {
...eslintCdkPlugin.configs.recommended.rules,
},
},
];
// eslint.config.mjs
import eslintCdkPlugin from "eslint-cdk-plugin";
export default [
{
plugins: {
cdk: eslintCdkPlugin,
},
rules: {
"cdk/no-class-in-interface": "error",
"cdk/no-construct-stack-suffix": "error",
"cdk/no-parent-name-construct-id-match": "error",
},
},
];
If you have any questions or suggestions, please open an issue.
Contributions are welcome! Please see Contribution Guide for more details.