Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Latest commit

 

History

History
 
 

react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@agaroot/eslint-config-react

npm version npm download license Github

This is a ESLint config commonly inherited by AGAROOT products.

Use this setting to ensure consistent code writing and maintain high code quality.

🚀 Installation

# Install peer dependencies.
npm install -D eslint @agaroot/eslint-config-common @agaroot/eslint-config-definer @agaroot/eslint-config-javascript

# Install this package.
npm install -D @agaroot/eslint-config-react

# (Recommended) If you want to use the style guide, install the following package.
# However, this is not necessary if you are using Prettier.
npm install -D @agaroot/eslint-config-style

# (Optional) If you are using TypeScript, install the following package.
npm install -D @agaroot/eslint-config-typescript

👏 Getting Started

Create a eslint.config.js file in the root directory of your project.

import { common } from '@agaroot/eslint-config-common';
import { define } from '@agaroot/eslint-config-definer';
import { javascript } from '@agaroot/eslint-config-javascript';
import { react } from '@agaroot/eslint-config-react';
import { typescript } from '@agaroot/eslint-config-typescript';

const config = define([
  common,
  javascript,
  react,
  // If you are using TypeScript, add the following line.
  typescript,
]);

export default config({
  // If you are using TypeScript, add the following line.
  tsconfigPath: './tsconfig.json',
});

🤝 Contributing

Contributions, issues and feature requests are welcome.

Feel free to check issues page if you want to contribute.

📝 License

Copyright © 2023 AGAROOT TECHNOLOGIES.

This project is MIT licensed.