@praha/eslint-config-definer
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@praha/eslint-config-definer

npm version npm download license Github

This is a ESLint config commonly inherited by PrAha products.

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

🚀 Installation

# Install any configs.
npm install -D eslint @praha/eslint-config-common @praha/eslint-config-javascript

# Install this package.
npm install -D @praha/eslint-config-definer

# (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 @praha/eslint-config-style

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

👏 Getting Started

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

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

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

export default config({
  tsconfigPath: './tsconfig.json',
});

🤝 Contributing

Contributions, issues and feature requests are welcome.

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

📝 License

Copyright © 2024 PrAha.

This project is MIT licensed.

Readme

Keywords

Package Sidebar

Install

npm i @praha/eslint-config-definer

Weekly Downloads

2,542

Version

2.0.1

License

MIT

Unpacked Size

7.97 kB

Total Files

7

Last publish

Collaborators

  • karibash