This is the eslint configuration that Kontent.ai uses for its TypeScript packages.
-
Install the package the eslint configuration.
# optionaly install eslint if you don't already have it # npm i --save-dev eslint npm i --save-dev @kontent-ai/eslint-config
-
Extend your eslint configuration
// showcase of .eslintrc.json { // ... "extends": [ // ... "@kontent-ai", "@kontent-ai/eslint-config/react" ] }
-
Run the lint process based on your project configuration
Available configurations are:
@kontent-ai
(default configuration for any TypeScript file)@kontent-ai/eslint-config/react
(react specific, extends default)@kontent-ai/eslint-config/jest
(jest specific, extends default)
Distributed under the MIT License. See LICENSE.md
for more information.