-
Required dependencies: look at the
peerDependencies
section inpackage.json
. -
Install the package:
npm install eslint-config-k8 --save-dev
- Add the following to your
.eslintrc.cjs
file:
/** @type { import("eslint").Linter.Config } */
module.exports = {
extends: ['k8'],
}
- If you want to use the
prettier
plugin, add the following to your.eslintrc.cjs
file:
/** @type { import("eslint").Linter.Config } */
module.exports = {
...require('eslint-config-k8/prettier.config'),
}