An open API service indexing awesome lists of open source software.

https://github.com/vanruesc/eslint-config-aether

A custom code style for ESLint.
https://github.com/vanruesc/eslint-config-aether

custom eslint eslint-config

Last synced: 4 months ago
JSON representation

A custom code style for ESLint.

Awesome Lists containing this project

README

          

# Eslint Config Aether

[![npm version](https://badgen.net/npm/v/eslint-config-aether?color=green)](https://www.npmjs.com/package/eslint-config-aether)

A custom code style for [ESLint](https://eslint.org/).

## Preview

```js
const btn = document.getElementById("btn");
let count = 0;

function render() {

btn.innerText = `Count: ${count}`;

}

btn.addEventListener("click", () => {

// Count from 1 to 10.
if(count < 10) {

count += 1;
render();

}

});
```

## Installation

```sh
npm install eslint-config-aether
```

## Usage

#### eslint.config.js

```js
// Minimal config
import aether from "eslint-config-aether";
export default aether;
```

```js
// Custom config
import { defineConfig } from "eslint/config";
import aether from "eslint-config-aether";

export default defineConfig([
{
files: ["**/*.js", "**/*.ts"],
extends: [aether],

// anything from here will override the base config
rules: {
"@stylistic/padded-blocks": "off"
}
}
]);
```