ESLint configuration for ILO Design System. These docs are a WIP
npm install -D @ilo-org/eslint-config
You can use @ilo-org/eslint-config
in your project by extending it in your
eslint
configuration. For example, if we had an .eslintrc
file:
{
"extends": ["@ilo-org/eslint-config"]
}
To use this configuration in a project with Typescript, you can add an overrides
property to your .eslintrc
. Here's an example:
// .eslintrc.cjs
module.exports = {
extends: ["@ilo-org/eslint-config"],
ignorePatterns: ["node_modules/"],
overrides: [
/* =================== */
/* TypeScript Settings */
/* =================== */
{
// Which files the override will apply to relative to the package root
files: ["**/*.{ts,tsx}"],
extends: ["@ilo-org/eslint-config/typescript"],
// Your typescript parser options
parserOptions: {
project: ["./tsconfig.json"],
},
},
],
};
Licensed under the Apache 2.0 License.