This library contains the ESLint flat configuration used by Avicenne Studio.
npm install --save-dev @avicenne-studio/eslint-configTo use the library, you'll need to add the following to your .eslint.config.js file:
For basic configuration:
import { baseConfig } from "@avicenne-studio/eslint-config/base";
/** @type {import("eslint").Linter.Config} */
export default baseConfig;For react configuration:
import { reactConfig } from "@avicenne-studio/eslint-config/react-internal";
/** @type {import("eslint").Linter.Config} */
export default reactConfig;For next configuration:
import { nextJsConfig } from "@avicenne-studio/eslint-config/next";
/** @type {import("eslint").Linter.Config} */
export default nextJsConfig;For Avicenne Studio employees, in order to publish an update of the library, you'll need to:
- Update the version field in the
package.jsonfile; - Stage and commit all changes;
- Tag the new commit with the new version number; and
- Push all changes to the GitHub repository.
This can be done using the following commands:
npm version patch
git push origin main --tagsA GitHub Actions workflow will then automatically publish the package to the NPM registry.