@kurrent-ui/configs
Configs for the Kurrent design system
Eslint
A flat config for ESLint 10. The required plugins (typescript-eslint,
@eslint/js) are included as dependencies.
yarn add --dev eslint
Hook up the config by creating an eslint.config.mjs file in the root of your project:
eslint.config.mjs
import kurrentConfig from '@kurrent-ui/configs/eslint';
export default [...kurrentConfig];
Extend it by appending your own entries:
import kurrentConfig from '@kurrent-ui/configs/eslint';
export default [
...kurrentConfig,
{
rules: {
quotes: 'off',
},
},
];
If you extend with configs from your own typescript-eslint install, make sure it resolves to the same version as this package's, otherwise ESLint will reject the duplicate
@typescript-eslint plugin registration.
Prettier
Includes all required dependencies for prettier.
yarn add --dev prettier
Hook up the config adding the following to your package.json:
package.json
"prettier": "@kurrent-ui/configs/prettier"