Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cielsachen/eslint-config
My different ESLint configs.
https://github.com/cielsachen/eslint-config
eslint eslint-config javascript nodejs react typescript
Last synced: about 2 months ago
JSON representation
My different ESLint configs.
- Host: GitHub
- URL: https://github.com/cielsachen/eslint-config
- Owner: CielSachen
- License: mit
- Created: 2024-10-14T16:26:47.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-05T10:49:27.000Z (about 2 months ago)
- Last Synced: 2024-11-05T11:45:29.645Z (about 2 months ago)
- Topics: eslint, eslint-config, javascript, nodejs, react, typescript
- Language: JavaScript
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ESLint Config
[![Node Current](https://img.shields.io/badge/node-%5E18.18.0%20%7C%7C%20%3E%3D20.9.0-brightgreen)](https://github.com/nodejs/node)
[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4)](https://github.com/prettier/prettier)A small Node.js package that contains a collection of different ESLint configs used in my Node.js projects. They have been bundled in this package to reduce repetition and maintain my sanity. The enabled rules stem from my preferences (which are influenced by Google's [style guide](https://google.github.io/styleguide/tsguide.html)).
## Installation
> My packages are available in GitHub packages, **NOT** npm. Therefore, you must define the registry of the `@cielsachen` namespace in a `.npmrc` file.
>
> ```properties
> @cielsachen:registry=https://npm.pkg.github.com
> ``````bash
pnpm add -D @cielsachen/eslint-config
```## Usage
This package contains several configs, and you should only extend the ones that apply to your project.
The configs are:
- **Base**: The base ESLint configuration for my Node.js projects.
- **React**: An additional ESLint configuration for my React.js projects.### Example
Here's a simple example of extending my base configuration in an `eslint.config.{js,mjs}` file:
```js
import cielsachenConfigs from "@cielsachen/eslint-config";export default {
...cielsachenConfigs.base,// Define the rest of your ESLint configuration.
};
```