npm install eslint eslint-config-pcp
With "type": "module" in package.json (recommended):
// eslint.config.js
import { buildConfig } from "eslint-config-pcp";
export default buildConfig();
With CJS:
// eslint.config.js
const { buildConfig } = require("eslint-config-pcp");
module.exports = buildConfig();
{
"eslint.experimental.useFlatConfig": true,
// For workspaces
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}