npm.io
3.3.0 • Published 3d ago

eslint-config-aether

Licence
Zlib
Version
3.3.0
Deps
0
Vulns
0
Weekly
0

Eslint Config Aether

npm version

An opinionated code style for ESLint that provides type-aware linting, formatting, common runtime globals, and sensible defaults out of the box.

Installation

npm install eslint-config-aether

Usage

eslint.config.js
export { default } from "eslint-config-aether";

Preview

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();

	}

});

Customization

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"
		}
	}
]);

Keywords