@praha/eslint-config-definer
Version:
64 lines (44 loc) • 2.24 kB
Markdown
# /eslint-config-definer
[](https://www.npmjs.com/package/@praha/eslint-config-definer)
[](https://www.npmjs.com/package/@praha/eslint-config-definer)
[](https://github.com/praha-inc/eslint-config/blob/main/packages/definer/LICENSE)
[](https://github.com/orgs/praha-inc/followers)
This is a ESLint config commonly inherited by PrAha products.
Use this setting to ensure consistent code writing and maintain high code quality.
## 🚀 Installation
```shell
# Install any configs.
npm install -D eslint /eslint-config-common /eslint-config-javascript
# Install this package.
npm install -D /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 /eslint-config-style
# (Optional) If you are using TypeScript, install the following package.
npm install -D /eslint-config-typescript
```
## 👏 Getting Started
Create a `eslint.config.js` file in the root directory of your project.
```js
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](https://github.com/praha-inc/eslint-config/issues) if you want to contribute.
## 📝 License
Copyright © 2024 [PrAha](https://www.praha-inc.com/).
This project is [```MIT```](https://github.com/praha-inc/eslint-config/blob/main/packages/definer/LICENSE) licensed.