Skip to content

avicenne-studio/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@avicenne-studio/eslint-config

This library contains the ESLint flat configuration used by Avicenne Studio.

Installing the library

npm install --save-dev @avicenne-studio/eslint-config

Using the library

To 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;

Publishing updates

For Avicenne Studio employees, in order to publish an update of the library, you'll need to:

  • Update the version field in the package.json file;
  • 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 --tags

A GitHub Actions workflow will then automatically publish the package to the NPM registry.

About

Avicenne Studio's shareable ESLint configuration

Topics

Resources

Stars

Watchers

Forks

Contributors